Skip to content

Sign the commits the SDK bump workflow pushes - #106

Merged
ritz078 merged 1 commit into
mainfrom
ritz078/signed-commits
Sep 2, 2026
Merged

Sign the commits the SDK bump workflow pushes#106
ritz078 merged 1 commit into
mainfrom
ritz078/signed-commits

Conversation

@ritz078

@ritz078 ritz078 commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Why

main requires signed commits. The bump workflow committed with a plain
git commit as github-actions[bot], and a runner has no signing key — so
every automated bump PR arrived unmergeable. #105 was the first to hit it.

What changed

The bump commit is now created through the createCommitOnBranch GraphQL
mutation, which GitHub signs itself using the job's GITHUB_TOKEN. No key, no
secret, and the commit is still attributed to the bot.

HUSKY: "0" guarded a git commit that no longer runs, so it goes too.

Verification

The new script produced the commit now on #105 (ec0cc45): tree identical to
the bot's original 1db9719, and verification.verified: true /
reason: "valid" from the API. That PR went from BLOCKED to mergeable.

https://claude.ai/code/session_01RuhGJYRA4xYosiqnKv7qpB

`main` requires signed commits, so every bump the workflow opened was
blocked on merge: the runner has no signing key, and a plain `git commit`
as `github-actions[bot]` cannot produce one.

The commit is now created through the `createCommitOnBranch` GraphQL
mutation, which GitHub signs itself with the job's `GITHUB_TOKEN`. That
needs no key or secret, and still attributes the commit to the bot.

`HUSKY: "0"` guarded a `git commit` that no longer runs, so it goes too.

Claude-Session: https://claude.ai/code/session_01RuhGJYRA4xYosiqnKv7qpB
@ritz078
ritz078 requested a review from a team as a code owner September 2, 2026 11:41
@ritz078
ritz078 merged commit 812da55 into main Sep 2, 2026
3 checks passed
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.

2 participants