ci(security): add Trivy filesystem vulnerability scan#1262
Open
MukundaKatta wants to merge 1 commit intoanthropics:mainfrom
Open
ci(security): add Trivy filesystem vulnerability scan#1262MukundaKatta wants to merge 1 commit intoanthropics:mainfrom
MukundaKatta wants to merge 1 commit intoanthropics:mainfrom
Conversation
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.
Why
Closes #1231. Several teams using this action need a vulnerability scan in CI to satisfy internal security policies. The issue lists 12 + 5 + 9 + 14 = 40 outstanding HIGH/MEDIUM findings across
bun.lock,base-action/bun.lock,base-action/package-lock.json, andbase-action/test/mcp-test/bun.lock— there's currently no automated check to surface these on PRs.What
Adds
.github/workflows/trivy.yml:main, every pull request, andworkflow_dispatch.aquasecurity/trivy-action@0.36.0infsmode against the repo root, scanning all four lockfiles in one pass.HIGH/CRITICALfindings withignore-unfixed: true(so unactionable advisories don't block merges).github/codeql-action/upload-sarif@v3.35.2, even when the gate step fails — so findings show up under Code scanning either way.permissions:scoped tocontents: read+security-events: write.Tested
exit-code: "1"to"0"in a follow-up — the SARIF upload still works..github/workflows/.