STAC-25082: add skip-files input to scan-image action#19
Merged
Conversation
Andreagit97
approved these changes
Jun 22, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an optional
skip-filesinput to thescan-imagecomposite action socallers can exclude in-image paths from vulnerability scanning when the
artefact is an upstream binary they ship but don't audit per-CVE.
--skip-files <path>and Grype as--exclude <path>for the vulnerability scans only.Why
Mirrors the precedent in
StackVista/stackstate-ci-images.github/workflows/ci.yml, which already usestrivy --skip-filesfor theterraformbinary instackstate-devopsandgcc-7inpython-cli-builder.The immediate consumer is
o11y-tooling: its image bundles upstreamgetsops/sopsv3.13.1, which contributes ~22 CVEs instdlib,golang.org/x/crypto, andgolang.org/x/net. They're not reachable fromo11y-tooling's own code, fixes depend on getsops cutting a new release, and
holding 22 per-CVE exception YAMLs is the wrong shape — the upstream binary
should simply be out of scope for our gate. See STAC-25082.
Test plan
Action unit tests(local-clean,known-vuln, × amd64/arm64) still pass — no skip-files used, behaviour unchanged.Workflow Security Audit) passes — runs locally clean.skip-files: /usr/bin/sopsagainst the published consumer image.