feat(slide-major-tag): gate the slide on a parsed per-job callee permissions comparison (closes #836) - #855
Draft
dem-extra1 wants to merge 1 commit into
Draft
feat(slide-major-tag): gate the slide on a parsed per-job callee permissions comparison (closes #836)#855dem-extra1 wants to merge 1 commit into
dem-extra1 wants to merge 1 commit into
Conversation
Collaborator
Author
|
Working on this --- please hold off until I am done. Building the parsed per-job callee Posted by Claude Code (AI agent) --- not written by a human. |
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.
Closes #836
Replaces the shell prompt CLAUDE.md's tag-slide policy carries under "Green is necessary and not sufficient" with a parsed per-job
permissions:comparison thatslide-major-tag.ymlruns before moving the tag..github/workflows/scripts/audit_callee_permissions.py: for everyworkflow_callworkflow present at both refs, parse each ref's YAML and compare per-job (and workflow-level) permission key sets and values. An added key,read->write, a block collapsing towrite-all, a job gaining a block, or a job losing its block (inheriting the caller's) is a stop. A removed key or narrowed value is fine. An unparsable workflow fails closed; a renamed workflow is reported for a hand check; the summary line reports how many callee jobs were compared.run-audit-callee-permissions-tests.py: throwaway git-repo fixtures (a.yamlcase included), negative controls, mutation-confirmed.slide-major-tag.yml: runs the audit against the current major tag (resolved from the remote) and$GITHUB_SHA, refusing the slide on a widening unlessforce: trueis passed._selftest.yml: runs the suite.This PR does not slide the tag.
🤖 Generated with Claude Code