fix: use cloudsmith-bot for automated binding PRs - #106
Merged
cloudsmith-iduffy merged 1 commit intoSep 9, 2026
Conversation
cloudsmith-iduffy
deleted the
cloudsmith-iduffy-cloudsmith-bot-authentication
branch
September 9, 2026 09:51
There was a problem hiding this comment.
Pull request overview
Updates the scheduled Update API bindings GitHub Actions workflow to use cloudsmith-bot credentials (instead of GITHUB_TOKEN) for repo operations and PR creation, aligning with the Go bindings workflow and working around the restriction that GITHUB_TOKEN can’t open PRs in this context.
Changes:
- Reduces default workflow
GITHUB_TOKENpermissions tocontents: read, and switches checkout/PR operations to useCLOUDSMITH_BOT_TOKEN. - Adds early failure if required bot secrets are missing, and configures local SSH commit signing using the bot’s signing key.
- Enforces that created PR commits are marked “Verified” by GitHub, and always cleans up temporary signing material.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The scheduled bindings update failed because GitHub Actions is not permitted to create pull requests using
GITHUB_TOKEN.Match the Go bindings workflow by using
cloudsmith-botcredentials for checkout, stale PR cleanup, and PR creation, while reducing the default token permissions to read-only contents.Commits use the bot's author/committer identity and are signed locally with its SSH key, since API signing does not support PATs. The workflow fails early if bot credentials are missing, requires GitHub to verify commit signatures, and always removes the temporary signing files. The required Actions secrets have been added.