Repository navigation
fix(security): scan each image with one Trivy action and SARIF - #6488
Conversation
Add the composite action .github/actions/image-scan. It runs the Trivy image, pinned by tag and digest, as a docker:// step with HIGH and CRITICAL fixed findings, an ignore file and an exit code. It writes SARIF, prints the findings as a table from the cache of the scan, and uploads the SARIF to code scanning under the category of the caller. The six image jobs of ci.yml and release.yml and the third-party scan call the action. The jobs lose the uv toolchain and the Trivy install, and get security-events: write. .trivyignore.yaml holds each image finding for one binary, with paths and purls, and the three legacy ignore files go. The kubectl CVE-2026-56851 entry expired on 2026-11-20 with no released fix, so it goes to 2026-11-22 (#6084). The tests of trivy-action inputs, of release-equals-CI and of the legacy ignore format go: they asserted values of config files.
Test recordRead on 2026-11-20 against Local checks on the final code
Scoped ignore entries (live check)
With the four kubectl With the three legacy files on 2026-11-20, the MCP server image fails on CVE-2026-56851 in kubectl: its Measured times
Ignore entries (SECURITY.md, A Finding with No Fix)Each entry moved from a legacy file keeps its date, except one renewal.
Proof of the renewal, read on 2026-11-20:
Notes
|
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
09f6203 to
24f1e8b
Compare
CI record of head 24f1e8bAll 31 checks that ran passed (4 skipped), the required checks Static Analysis, Tests & Coverage and Semantic PR title included. The
The SARIF upload of each job ends with "Analysis upload status is complete". The table pass prints no line on a clean image ( The title type is |
The table pass gets a 30 s timeout, so the scan (3 min), the table pass and the SARIF upload end before the 4 min step timeout. docs/SDLC.md names the action path in the trigger of the Third-Party Image Scan. .trivyignore.yaml is a config root, not a prefix. The proposal says 'no longer name'.
🤖 I have created a release *beep* *boop* --- ## [0.182.1](v0.182.0...v0.182.1) (2026-11-20) ### Bug Fixes * **devcontainer:** build the devcontainer image FROM devtools ([#6472](#6472)) ([58e7b0d](58e7b0d)) * **security:** scan each image with one Trivy action and SARIF ([#6488](#6488)) ([26e2a99](26e2a99)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Six image jobs installed Trivy (25-28 s each), wrote no SARIF, and read three ignore files with no path scope, so an OpenTofu entry also hid the same ID in kubectl.
The action .github/actions/image-scan runs the digest-pinned Trivy image as a docker:// step, writes SARIF, prints a table of the findings from its cache, and uploads the SARIF under the category of the caller. The six image jobs call it with exit code 1 and get security-events: write; the third-party scan calls it with exit code 0.
.trivyignore.yaml holds each image finding for one binary, and the three legacy files go. The expired kubectl CVE-2026-56851 entry goes to 2026-11-22 (SECURITY.md, #6084). The coupled trivy Renovate group and the tests of config values go.
Closes #6405
Change:
openspec/changes/archive/2026-11-20-6405-image-scan-action-sarif/