Repository navigation
Muninn: dispatch scope input + SARIF diff tool for the same-SHA check (Part of #5499) - #6622
Merged
Merged
Conversation
… (Part of #5499) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Oct 25, 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.
Part of #5499. Checklist: partial [c:736e44f0] -- the two same-SHA
workflow_dispatchruns (scope: full,scope: pr) and themuninn_scope_diff.pyresult are still to be run after merge (CI runs, not edits)What changed
muninn.yml:workflow_dispatchgets ascopeinput (fulldefault,pr).pruses the PR's sparse checkout, so one SHA can be scanned both ways. A dispatch uploadsmuninn.sarifasmuninn-sarif-<scope>. PR and schedule behaviour are unchanged (schedule has no input, so!= 'pr'keeps the full tree).tests/tools/muninn_scope_diff.py: diffs two SARIFs after cutting both to the sparse-checkout paths (read from the workflow); exit 0 only if equal, and lists full-scan-only findings outside the scope by top-level directory.test_muninn_scope.py: new tests (input, equal / missing / extra cases, default scope);docs/ci.md: the procedure.docs_read_by_tests.txtregenerated.Measurement (existing runs, not a controlled A/B)
PR run 40178708473 (519 files): gitleaks 0, zizmor 69, poutine 3, semgrep 0, osv-scanner 0, trivy 0, checkov 9. Last schedule run 39240475714 (different SHA, full tree): gitleaks 20, zizmor 33, poutine 3, semgrep 0, osv-scanner 0, trivy 0, checkov 29. Not comparable per file, hence the SARIF tool. Workflow cost: no extra jobs on PRs; dispatch only.
Class / Sibling gaps
Class: a PR-time scanner scope reduction needs a same-SHA proof that findings inside the kept paths are unchanged. Handled: Muninn (this PR). Sibling gaps:
codeql.ymlhas a path filter but no sparse checkout (not audited here, no burned-estate program involved);main-watch.ymlonly names the Muninn check (no change needed).After merge
Dispatch
muninn.ymltwice on the same SHA, thenpython tests/tools/muninn_scope_diff.py FULL.sarif PR.sarif. Match: tick; difference: the sparse list needs an entry.Cross-repo: none. Overlap: PR #6618 also edits
docs/ci.md(one sentence added here).🤖 Generated with Claude Code