Skip to content

fix: use GitHub API for Cargo.lock commit to get Verified badge#50

Merged
quiet-node merged 1 commit intomainfrom
worktree-structured-floating-stearns
Apr 6, 2026
Merged

fix: use GitHub API for Cargo.lock commit to get Verified badge#50
quiet-node merged 1 commit intomainfrom
worktree-structured-floating-stearns

Conversation

@quiet-node
Copy link
Copy Markdown
Owner

Summary

  • `release-please.yml`: replaces the `git commit` + `git push` shell commands with a `gh api PUT` call to the GitHub Contents API. Commits made via the REST API with `GITHUB_TOKEN` are automatically verified by GitHub, no GPG keys or extra secrets needed.
  • `release-please-config.json`: removes the `signoff` field. The `chore(main): release X.Y.Z` commit is authored by `github-actions[bot]`, not you, so attaching a `Signed-off-by: Logan Nguyen` trailer was inaccurate. The release-please commit already gets the Verified badge on its own via the GitHub API.

Why the API approach works

GitHub auto-verifies commits made through its REST API because it signs them internally with the `github-actions[bot]` key. The git CLI bypasses this, creating unverified commits even when the author is set to `github-actions[bot]`.

Test plan

  • Merge this PR
  • Confirm the release PR (chore(main): release 0.2.2 #46) gets a new `chore: sync Cargo.lock to version bump` commit with a green Verified badge
  • Confirm that commit has no spurious `Signed-off-by: Logan Nguyen` trailer

🤖 Generated with Claude Code

Commits made via the git CLI in Actions are unverified. Commits made
via the GitHub REST API with GITHUB_TOKEN are automatically verified
by GitHub. Switching to 'gh api PUT /contents/...' gives the sync
commit the green Verified badge without any extra secrets or GPG setup.

Also removes the signoff field from release-please-config.json. The
chore(main): release X.Y.Z commit is authored by github-actions[bot],
not Logan, so attaching a Logan Nguyen Signed-off-by was inaccurate.

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
@quiet-node quiet-node merged commit cf09593 into main Apr 6, 2026
3 checks passed
@quiet-node quiet-node deleted the worktree-structured-floating-stearns branch April 6, 2026 00:36
quiet-node added a commit that referenced this pull request Apr 10, 2026
Commits made via the git CLI in Actions are unverified. Commits made
via the GitHub REST API with GITHUB_TOKEN are automatically verified
by GitHub. Switching to 'gh api PUT /contents/...' gives the sync
commit the green Verified badge without any extra secrets or GPG setup.

Also removes the signoff field from release-please-config.json. The
chore(main): release X.Y.Z commit is authored by github-actions[bot],
not Logan, so attaching a Logan Nguyen Signed-off-by was inaccurate.

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
quiet-node added a commit that referenced this pull request Apr 10, 2026
Commits made via the git CLI in Actions are unverified. Commits made
via the GitHub REST API with GITHUB_TOKEN are automatically verified
by GitHub. Switching to 'gh api PUT /contents/...' gives the sync
commit the green Verified badge without any extra secrets or GPG setup.

Also removes the signoff field from release-please-config.json. The
chore(main): release X.Y.Z commit is authored by github-actions[bot],
not Logan, so attaching a Logan Nguyen Signed-off-by was inaccurate.

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
quiet-node added a commit that referenced this pull request Apr 11, 2026
Commits made via the git CLI in Actions are unverified. Commits made
via the GitHub REST API with GITHUB_TOKEN are automatically verified
by GitHub. Switching to 'gh api PUT /contents/...' gives the sync
commit the green Verified badge without any extra secrets or GPG setup.

Also removes the signoff field from release-please-config.json. The
chore(main): release X.Y.Z commit is authored by github-actions[bot],
not Logan, so attaching a Logan Nguyen Signed-off-by was inaccurate.

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
This was referenced Apr 11, 2026
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