Skip to content

feat: protect main; push version bump with deploy key - #42

Open
kr0ggg wants to merge 1 commit into
mainfrom
chore/protect-main-deploy-key
Open

kr0ggg wants to merge 1 commit into
mainfrom
chore/protect-main-deploy-key

Conversation

@kr0ggg

@kr0ggg kr0ggg commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Same change already proven on Bounteous.Data.SQLite (published 0.0.2, and the version bump landed on protected main via deploy key).

  • main is now protected by a ruleset: require a PR (0 approvals), require ci-build / build-and-test, block force-push and deletion. Only deploy keys are exempt.
  • update-version passes this repo's write deploy key (UPDATE_VERSION_DEPLOY_KEY) to the shared workflow, so the post-publish version bump can still push to main. Needs bounteous-dotnet-common-workflows#2 (merged).
  • ci-build.yml gets security-events: write where it was missing, so the Trivy SARIF upload in the now-required CI check doesn't fail.

After merge

Merging publishes a new patch version (no library code change). Expect a [skip ci] Update version to x.y.z after NuGet publish commit on main, pushed via the deploy key.

🤖 Generated with Claude Code

main gets a ruleset that requires a PR and a passing ci-build check and
exempts only deploy keys. Pass this repo's write deploy key to the shared
update-version workflow so the post-publish version bump still reaches
main. Also grants security-events: write to CI for the Trivy upload,
where it was missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant