Repository navigation
feat(workflows)!: step 11, upload govulncheck findings as SARIF - #53
Closed
seantronsen wants to merge 1 commit into
Closed
seantronsen wants to merge 1 commit into
seantronsen wants to merge 1 commit into
Conversation
seantronsen
added this pull request to stack #40
October 22, 2026 14:28
Signed-off-by: Sean Tronsen <sean.tronsen@gmail.com>
seantronsen
force-pushed
the
seantronsen/feat/sarif-govulncheck
branch
from
October 22, 2026 14:33
1806d80 to
9aa4f9e
Compare
12 of 17 tasks
Contributor
Author
|
failed experiment. I would prefer if the behavior for this was more like |
Contributor
Author
|
do not delete this branch or the PR. just closing for now to lessen noise. |
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.
Description
govulnchecknow writes its findings as SARIF and uploads them to GitHub Advanced Security, liketrivy-image-scan,scorecard, zizmor (lint-ci) andlint-docsalready do. Findings appear as code scanning alerts in the Security tab, and as annotations on PRs where they land on changed lines.govulncheck.yml:output-format: sarif, plus anupload-sarifstep (categorygovulncheck) andsecurity-events: write. SARIF mode exits 0 on findings, so ajqstep after the upload fails the job on called vulnerabilities (SARIF levelerror), as text mode did before.contents: readandsecurity-events: write.Stacked on #52.
Breaking changes
security-events: writeto thegovulncheckjob, or the run fails to start.Caveats
pull_requestruns from forks, the token is read-only and the SARIF upload fails.trivy-image-scanhas the same gap.Testing
Testbed: OpenCHAMI/github-actions-testbed#16 (a follow-up commit there calls a known-vulnerable symbol).
Locally: govulncheck v1.9.0
-format sarifin agolang:1.26container. On a module that calls a vulnerable symbol it exits 0 and reports the finding at levelerror, and thejqcheck fails; on a clean module it reports only stdlibnotefindings, and the check passes. Text mode exits non-zero and zero on the same two modules. The workflow itself has not run on GitHub yet: still to check are the action'soutput-format/output-fileinputs, the upload, and the PR display.Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryType of Change