Scan released #105
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
| # Every night, scan the latest released container images (ARM64 and AMD64) | |
| # and fail the CI if critical vulnerabilities are found. | |
| name: Scan released | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Run every day at 00:00 UTC. | |
| workflow_dispatch: | |
| jobs: | |
| security-scan-released: | |
| strategy: | |
| matrix: | |
| include: | |
| - runs-on: ubuntu-24.04 | |
| arch: i686 | |
| - runs-on: ubuntu-24.04-arm | |
| arch: arm64 | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # NOTE: Scan first without failing, else we won't be able to read the scan | |
| # report. | |
| - name: Scan container image (no fail) | |
| uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0 | |
| id: scan_container | |
| with: | |
| image: "ghcr.io/freedomofpress/dangerzone/v1:latest" | |
| fail-build: false | |
| only-fixed: false | |
| severity-cutoff: critical | |
| - name: Inspect container scan report | |
| run: cat ${{ steps.scan_container.outputs.sarif }} | |
| - name: Scan container image | |
| uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0 | |
| with: | |
| image: "ghcr.io/freedomofpress/dangerzone/v1:latest" | |
| fail-build: true | |
| only-fixed: false | |
| severity-cutoff: critical |