Skip to content

ci: fail zizmor job when SARIF contains findings - #54

Merged
blimmer merged 2 commits into
mainfrom
ci/zizmor-fail-on-findings
Sep 8, 2026
Merged

blimmer merged 2 commits into
mainfrom
ci/zizmor-fail-on-findings

Conversation

@blimmer

@blimmer blimmer commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

zizmor always exits 0 in SARIF mode, so findings only ever showed up in the code scanning tab and never failed the check. Adds a step after the SARIF upload that fails the job when the SARIF has any results, so findings still reach code scanning but also block the PR. The first run on this PR failed as expected on self-repository findings; the second commit fixes them and the check went green. Same change as contextbridge/planbridge#288.

Review focus

Ordering: the fail step runs after the upload on purpose so results still land in code scanning on failure.

Commits

  • ceed936 — fail zizmor job when SARIF contains findings
  • bff8c34 — use $/ self-repository syntax for local action references

@blimmer
blimmer marked this pull request as ready for review September 4, 2026 14:16
@blimmer
blimmer requested a review from jcarver989 as a code owner September 4, 2026 14:16
@blimmer
blimmer merged commit 58c27e9 into main Sep 8, 2026
10 checks passed
@blimmer
blimmer deleted the ci/zizmor-fail-on-findings branch September 8, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant