Skip to content

chore(release): separate out comment step#168

Merged
kruton merged 1 commit into
connectbot:mainfrom
kruton:release-comment
May 23, 2026
Merged

chore(release): separate out comment step#168
kruton merged 1 commit into
connectbot:mainfrom
kruton:release-comment

Conversation

@kruton
Copy link
Copy Markdown
Member

@kruton kruton commented May 23, 2026

This helps me scope the permissions more narrowly.

This helps me scope the permissions more narrowly.
Copilot AI review requested due to automatic review settings May 23, 2026 05:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the release automation workflows to better scope credentials/permissions by moving the “prepared release” issue comment out of the PR-upsert script and into the workflow, and by explicitly requesting specific permissions for the GitHub App installation token.

Changes:

  • Add explicit requested permissions to the GitHub App token creation step in release workflows.
  • Move the “Prepared release PR…” issue comment from .github/scripts/upsert-release-pr.sh into the release-prepare workflow.
  • Remove the now-redundant issue comment logic from the PR upsert script.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/release-publish.yml Requests contents: write on the GitHub App token used for publishing.
.github/workflows/release-prepare.yml Requests contents/pull-requests: write on the GitHub App token and adds a separate workflow step to comment on the prepared release.
.github/workflows/release-branch.yml Requests contents: write on the GitHub App token used for branch creation.
.github/scripts/upsert-release-pr.sh Removes the issue comment side-effect so the script only manages the PR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kruton kruton merged commit b126d9a into connectbot:main May 23, 2026
15 checks passed
@kruton kruton deleted the release-comment branch May 23, 2026 05:33
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.

2 participants