Skip to content

Muninn: dispatch scope input + SARIF diff tool for the same-SHA check (Part of #5499) - #6622

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5499-20261025T0935Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5499-20261025T0935Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5499. Checklist: partial [c:736e44f0] -- the two same-SHA workflow_dispatch runs (scope: full, scope: pr) and the muninn_scope_diff.py result are still to be run after merge (CI runs, not edits)

What changed

  • muninn.yml: workflow_dispatch gets a scope input (full default, pr). pr uses the PR's sparse checkout, so one SHA can be scanned both ways. A dispatch uploads muninn.sarif as muninn-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.txt regenerated.

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.yml has a path filter but no sparse checkout (not audited here, no burned-estate program involved); main-watch.yml only names the Muninn check (no change needed).

After merge

Dispatch muninn.yml twice on the same SHA, then python 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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 09:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 09:48
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 2a8ab16 into main Oct 25, 2026
68 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5499-20261025T0935Z branch October 25, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant