fix: enforce owner-controlled releases - #4
Merged
Conversation
I limited push-triggered CI to main so pull requests run one authoritative suite while merged commits still receive the release-gating main check.
I made publication require a GitHub secret that authenticates as my account and added CODEOWNERS so only my review can satisfy the main-branch policy.
I removed write permission from the built-in GitHub token so only my verified RELEASE_TOKEN can mutate main, tags, or releases.
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.
Summary
main, so each pull request runs one authoritative suite instead of duplicate branch and pull-request suites..github/, for@aarikmudgal.RELEASE_TOKENto exist and authenticate exactly asaarikmudgalbefore release preparation begins.github.token, keeping release commits, tags, assets, and publication under the authenticated account.Rationale
Public contributions remain available through pull requests while repository ownership and release publication stay account-controlled. Weekly grouped dependency maintenance reduces update lag and duplicate CI usage without combining higher-risk major upgrades.
Validation
RELEASE_TOKENis configured as a GitHub Actions secret without exposing or storing its value in the repository.v0.2.0, build 2.github.token.