Skip to content

ci: push the release over SSH with a deploy key - #7

Merged
Mearman merged 1 commit into
mainfrom
ci/release-deploy-key
Oct 2, 2026
Merged

Mearman merged 1 commit into
mainfrom
ci/release-deploy-key

Conversation

@Mearman

@Mearman Mearman commented Oct 2, 2026

Copy link
Copy Markdown
Member

Switches the release to the deploy-key model eslint-config already uses. The Release job's checkout takes the RELEASE_DEPLOY_KEY secret with persist-credentials true, and release.config.ts sets the SSH repositoryUrl, so semantic-release pushes the release commit and tag over SSH instead of embedding the default token, which cannot bypass the main ruleset. The job stays on a GitHub-hosted runner with id-token: write for npm trusted publishing, and no other job changes.

A ci: commit is a patch release under release.config.ts, so merging triggers the release run that proves the change: with main still unprotected it must push the release commit and tag over SSH and publish with provenance. The ruleset is created afterwards by the owner.

The default GITHUB_TOKEN cannot bypass a branch ruleset, so the release
commit and tag push needs a bypass identity.
The Release job checks out with the RELEASE_DEPLOY_KEY deploy key and
release.config.ts uses the SSH repositoryUrl so semantic-release does not
embed the token.
@Mearman
Mearman marked this pull request as ready for review October 2, 2026 05:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-10-02T05:20:41.358772Z 2f24170 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.

@Mearman
Mearman merged commit 9e60fb9 into main Oct 2, 2026
12 checks passed
@Mearman
Mearman deleted the ci/release-deploy-key branch October 2, 2026 05:24
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.1 🎉

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