Repository navigation
fix(governance): use read-only content token for protected Apply - #108
Merged
Merged
Conversation
Pin the reviewed split-token governance engine, remove the unsupported Contents permission request from the ruleset App, and keep protected manual Apply and onboarding behavior. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
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.
Problem
GitHub governanceApply run #41853388139 failed to mint a token (HTTP 422), because the installed ruleset-management GitHub App grantsAdministration: writebut notContents: read. The missing shared protection onakaunting-field-studioremains unprovisioned.Fix
76fcdc8ae250c81aeb055533c2741385ac9f0b7b(fix(governance): separate public content reads from ruleset administration github-governance#43).permission-administration: writefrom the ruleset App, which is already granted to its installation.github.tokenascontents-tokenonly for public content classification.ruleset-syncenvironment approval, repository-scoped Apply, and the safeonboard_only=truedefault.Validation
53b1791230e536967b3135e768ae5511ecdf4c61.Rollout
GitHub governancewithrepository=akaunting-field-studio,apply=true,onboard_only=true; approve the protected environment after confirming the plan.Future work
Automatic onboarding of future repositories and privileged verification of currently hidden bypass actors remain separate from this immediate incident fix.