Skip to content

fix: use cloudsmith-bot for automated binding PRs - #106

Merged
cloudsmith-iduffy merged 1 commit into
masterfrom
cloudsmith-iduffy-cloudsmith-bot-authentication
Sep 9, 2026
Merged

fix: use cloudsmith-bot for automated binding PRs#106
cloudsmith-iduffy merged 1 commit into
masterfrom
cloudsmith-iduffy-cloudsmith-bot-authentication

Conversation

@cloudsmith-iduffy

Copy link
Copy Markdown
Contributor

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-bot credentials 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.

Copilot AI lite review requested due to automatic review settings September 9, 2026 09:48
@cloudsmith-iduffy
cloudsmith-iduffy merged commit 6faaa27 into master Sep 9, 2026
11 checks passed
@cloudsmith-iduffy
cloudsmith-iduffy deleted the cloudsmith-iduffy-cloudsmith-bot-authentication branch September 9, 2026 09:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_TOKEN permissions to contents: read, and switches checkout/PR operations to use CLOUDSMITH_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants