diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6d0ec8..9ca2b6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,8 +107,13 @@ jobs: - uses: actions/checkout@v4 - name: Run Trivy vulnerability scanner in repo mode - uses: aquasecurity/trivy-action@master + # Pinned to a release commit, not @master (a moving branch). The Trivy + # binary version is explicit and its DB is cached, so a failed lookup or + # download from GitHub doesn't fail the build and skip the deploy. + uses: aquasecurity/trivy-action@a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8 # v0.36.0 with: + version: 'v0.76.2' + cache: 'true' scan-type: 'fs' scan-ref: '.' format: 'sarif'