Skip to content

muninn: scan only the PR path filter on pull_request (Part of #5499) - #5612

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5499-20261018T1941Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5499-20261018T1941Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Part of #5499 (does not close it: the after-time needs this PR's own CI run, see Open items).

Owner decisions

Owner OK (2026-10-19) to edit workflows.

Note: the queue item carries no allow_workflows; the OK above came in the launch brief. This PR edits .github/workflows/muninn.yml, so the owner must confirm it before merge.

What

.github/workflows/muninn.yml: on pull_request the checkout is a non-cone sparse checkout of exactly the paths the workflow's own filter triggers on (gitgalaxy/, .github/, .claude/, ci/, templates/, pyproject.toml, requirements*.txt, action.yml) plus the scanners' root configs (muninn.yml, zizmor.yml). Schedule and workflow_dispatch use a separate full-tree checkout step, unchanged. Paths are kept at their real locations, so SARIF locations and muninn.yml suppressions still match.

Why: per the issue investigation, checkov is 6m18s of the 7m28s step (84%) and walks all ~5,100 files; ~480 are in the PR filter. The action has no changed-files mode, and target would rewrite SARIF paths. Two steps, not one expression, because a multi-line string inside ${{ }} is folded to spaces by YAML.

tests/tools/test_muninn_scope.py pins that every PR path-filter entry is covered by the sparse list and that the full-tree step stays for schedule/dispatch. (It also caught my first YAML error: a colon in a step name.)

Coverage

No loss: every file the PR filter matches is still scanned on the PR; the weekly full scan is untouched. Caveat: a PR touching only gitgalaxy/** is not scanned against tests//docs/ content, but tests/ is fully suppressed in muninn.yml and docs/ is not in the PR filter.

"Run Muninn" step time

Before (last 6 PR runs, 2026-10-19, step started->completed): 7m31s, 4m00s, 5m18s, 4m25s, 7m24s, 5m12s (median ~5m15s; the issue measured 7m28s on run 39159017208).
After: TBD, filled in from this PR's own run once it is ready (a draft skips Muninn, #5104). Equal-findings check: gh workflow run muninn.yml --ref churn/5499-20261018T1941Z (full tree, same SHA) vs the PR run.

Class sweep

Class: PR-time CI scan walks the whole tree although the workflow's path filter covers a small part. Sibling gaps: none found for Muninn; other workflows (main-watch.yml mentions Muninn) not audited.

Gates: pr_gates.py --fast 6/6 pass; new test + test_workflow_inputs.py + test_tested_tree_workflows.py 19 passed. --ratchets not run (no engine/golden input touched).

🤖 Generated with Claude Code

…hedule/dispatch (Part of #5499)

checkov is 84% of the "Run Muninn" step and walks the whole checkout. On a PR, sparse-check-out
only the paths the workflow's own filter triggers on; schedule and dispatch keep the full tree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 11:38
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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