🚀 ci: push beta bump via deploy key to bypass develop ruleset#125
Merged
Conversation
develop's required-checks ruleset rejects GITHUB_TOKEN pushes since the bump commit can never carry a passing "Run tests" run. Use a repo deploy key (DEVELOP_DEPLOY_KEY secret), which is an explicit bypass actor on the ruleset.
andycreed0x
marked this pull request as ready for review
July 21, 2026 19:19
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.
Purpose
Fix the auto beta-bump CI job, which was failing to push its commit back to
developbecause the branch's required-checks ruleset rejects any push whose commit never had a passing "Run tests" run — which the bump commit can never have.Description
develop's branch protection was migrated from a classic rule to a ruleset (protect-develop) so that a bypass actor could be configured.GITHUB_TOKENcannot be added as a bypass actor in this org (GitHub Actions app bypass requires an org owner to register the app at the org level, which we don't have). A repo deploy key can be added as a bypass actor, so the push-back now authenticates over SSH with a dedicated deploy key instead ofGITHUB_TOKEN.Main Changes
secrets.DEVELOP_DEPLOY_KEY(a write-access deploy key registered as a bypass actor on thedevelopruleset) instead of the defaultGITHUB_TOKEN, so the bump commit push isn't blocked by the required "Run tests" checkpermissions: contents: writetocontents: read, since the token is no longer used for the pushGITHUB_TOKENpushes) do re-trigger workflows, so[skip ci]is now the only anti-loop guardDEVELOP_DEPLOY_KEYrepo secret to exist (already provisioned) and the corresponding deploy key to remain registered with write access on the repodevelopbranch protection is now enforced via a repository ruleset (protect-develop) instead of classic branch protection; equivalent rules (required "Run tests" check, no force-push, no deletion) with admin + deploy-key bypassChecklist