Scheduled vulnerability scan #348
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Scheduled vulnerability scan" | |
on: | |
schedule: | |
- cron: "20 3 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
latest-release-version: | |
name: Get latest release tag | |
runs-on: ubuntu-latest | |
outputs: | |
tag_name: ${{ steps.tag-name.outputs.value }} | |
steps: | |
- id: tag-name | |
run: echo "value=$(curl --location --silent --fail "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest" | jq --raw-output '.tag_name')" >> "${GITHUB_OUTPUT}" | |
scan: | |
name: Scan ${{ needs.latest-release-version.outputs.tag_name }} | |
needs: latest-release-version | |
uses: ./.github/workflows/scan.yml | |
with: | |
ref: ${{ needs.latest-release-version.outputs.tag_name }} |