Skip to content

fix(ci): push release commits over SSH using a deploy key - #9

Merged
Mearman merged 1 commit into
mainfrom
fix/release-push-via-deploy-key
Sep 12, 2026
Merged

fix(ci): push release commits over SSH using a deploy key#9
Mearman merged 1 commit into
mainfrom
fix/release-push-via-deploy-key

Conversation

@Mearman

@Mearman Mearman commented Sep 12, 2026

Copy link
Copy Markdown
Member

main's own ruleset now requires a passing "Required Checks" status on every push to main, including the release job's own direct push of the version-bump commit and tag. The default GITHUB_TOKEN has no documented way to bypass a repository ruleset (confirmed against GitHub's own docs and community discussions), so that push started failing with GH013 rule violations.

A write-access deploy key (id 163076140, added to this repo) registered as a DeployKey bypass actor on the ruleset lets the release job authenticate its push over SSH instead. The private key is stored as the RELEASE_DEPLOY_KEY repo secret; actions/checkout's ssh-key input wires it in.

The release job's git push to main was rejected once main's own ruleset
started requiring a passing "Required Checks" status on every push,
including direct ones -- the default GITHUB_TOKEN has no documented way
to bypass a repository ruleset. A write-access deploy key, registered as
a DeployKey bypass actor on the ruleset, lets actions/checkout
authenticate the push over SSH instead, without introducing a GitHub App
installation or an org-admin personal token.
@Mearman
Mearman force-pushed the fix/release-push-via-deploy-key branch from 30de3ce to 2922ea7 Compare September 12, 2026 12:23
@Mearman
Mearman marked this pull request as ready for review September 12, 2026 12:25
@Mearman
Mearman merged commit 7f3beb0 into main Sep 12, 2026
6 checks passed
@Mearman
Mearman deleted the fix/release-push-via-deploy-key branch September 12, 2026 12:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-12T12:34:38.300326Z 2922ea7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant