Skip to content

ci(bump): sign bump commits by creating them through the API - #5

Merged
igorjs merged 1 commit into
mainfrom
ci/signed-bump
Oct 9, 2026
Merged

igorjs merged 1 commit into
mainfrom
ci/signed-bump

Conversation

@igorjs

@igorjs igorjs commented Oct 9, 2026

Copy link
Copy Markdown
Member

Summary

Bump commits were pushed with plain git, so they landed on main unsigned. We want every commit on main to show as verified, and commits created through the GitHub API are signed by GitHub.

What Changed

  • The bump step now creates its commit with the createCommitOnBranch GraphQL mutation instead of git commit and git push.
  • The mutation sends the new marketplace.json contents and uses the current head of main as expectedHeadOid.
  • If main moved during the run, the API refuses the commit, the step fails with an error, and the next daily run retries.
  • Checkout no longer persists credentials. BUMP_TOKEN is only passed to the commit step, with no fallback to github.token.
  • The README section on the pin describes the new flow.

Notes for reviewers

  • There's no automated test for a workflow change. A manual workflow_dispatch run after a new release is the way to check it, and the resulting commit should show as verified.

- Replace git push with a createCommitOnBranch GraphQL call so GitHub signs the commit.
- Stop persisting checkout credentials and use BUMP_TOKEN only for the API call.
- Update the README to describe the API commit and its verified status.

Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
@igorjs
igorjs marked this pull request as ready for review October 9, 2026 04:41
@igorjs
igorjs merged commit 22480fc into main Oct 9, 2026
1 check passed
@igorjs
igorjs deleted the ci/signed-bump branch October 9, 2026 04:43
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