From e681efe090b27834dd20445e7e13c303e8f364d7 Mon Sep 17 00:00:00 2001 From: Eric Moore Date: Fri, 27 Nov 2026 12:55:11 -0600 Subject: [PATCH] ci: pin trivy-action to v0.36.0 and an explicit Trivy version trivy-action@master failed on main (run after the next 15.5.29 merge) with "unable to find 'v0.76.2'" while installing Trivy, which failed Build and Test and so skipped the workflow_run deploy. v0.76.2 is a normal release; the lookup failed transiently (the same job passed on the PR). Pin the action to a release commit, set the Trivy version, and cache the DB. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'