Skip to content

Use cloudsmith-bot for signed binding update PRs - #72

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

Use cloudsmith-bot for signed binding update PRs#72
cloudsmith-iduffy merged 1 commit into
masterfrom
cloudsmith-iduffy-bot-pr-automation

Conversation

@cloudsmith-iduffy

Copy link
Copy Markdown
Collaborator

Organization policy now prevents the Actions token from writing to repositories, blocking automated binding updates. Use the existing cloudsmith-bot account for repository writes while keeping GITHUB_TOKEN read-only.

  • Use the bot's classic PAT for checkout, branch pushes, PR creation and updates, and stale-PR cleanup.
  • Set bot author and committer identity using the email secret, and sign commits locally with a dedicated SSH key. The PR action's API signing option does not support PATs.
  • Fail when required credentials are missing or GitHub does not report the PR head commit as verified. Keep signing files outside the checkout with owner-only permissions and remove them even after failures.

The required Actions secrets have been added: CLOUDSMITH_BOT_TOKEN, CLOUDSMITH_BOT_SSH_SIGNING_KEY, and CLOUDSMITH_BOT_EMAIL. The email is no longer hardcoded in workflow source, but remains part of Git commit metadata. Changes are limited to the bindings workflow.

Copilot AI lite review requested due to automatic review settings September 9, 2026 08:25

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 update-bindings GitHub Actions workflow to comply with new org policy by keeping GITHUB_TOKEN read-only and performing all repository write operations (push/PR/cleanup) via the existing cloudsmith-bot PAT, while adding local SSH-based commit signing and enforcing “Verified” status for the PR’s head commits.

Changes:

  • Downgrade workflow GITHUB_TOKEN permissions to contents: read, and switch checkout/PR/stale-PR cleanup to use CLOUDSMITH_BOT_TOKEN.
  • Add a credentials guard step to hard-fail if required bot secrets are missing.
  • Configure local SSH commit signing for the bot, require GitHub to report commits as verified, and always clean up signing material from $RUNNER_TEMP.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cloudsmith-iduffy
cloudsmith-iduffy merged commit 80eb543 into master Sep 9, 2026
6 checks passed
@cloudsmith-iduffy
cloudsmith-iduffy deleted the cloudsmith-iduffy-bot-pr-automation branch September 9, 2026 08:28
cloudsmith-iduffy added a commit that referenced this pull request Sep 9, 2026
…ot-pr-automation

* origin/master:
  Use cloudsmith bot credentials for binding update automation (#72)
  Update Go API bindings to version 0.0.63 (#71)
  Update Go API bindings to version 0.0.62 (#69)
  add signing to workflow (#68)
  Update Go API bindings to version 0.0.61 (#65)
  chore(no-ticket): updating go version (#64)
  Update Go API bindings to version 0.0.60 (#63)
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