Scan CVEs dispatch #21
This file contains hidden or 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: Scan CVEs dispatch | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 1 * * *" | |
| jobs: | |
| read-config: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| ghcr-scanning: ${{ steps.read-ci-config.outputs.ghcr-cve-scan }} | |
| build-matrix: ${{ steps.read-ci-config.outputs.build-matrix }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Read .github/ci.yaml | |
| id: read-ci-config | |
| uses: canonical/rocks-template-actions/actions/read-ci-config@v1 | |
| run-scan: | |
| name: Run scan for released images | |
| needs: [read-config] | |
| uses: canonical/oci-factory/.github/workflows/Vulnerability-Scan.yaml@main | |
| strategy: | |
| matrix: ${{ fromJson(needs.read-config.outputs.build-matrix) }} | |
| with: | |
| oci-image-name: ghcr.io/${{ github.repository }}/${{ matrix.name }}:${{ matrix.tag }} | |
| create-issue: true | |
| trivyignore-path: ${{ matrix.directory }}/.trivyignore | |
| permissions: | |
| contents: read | |
| packages: read |