Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 17, 2025

Description

Switches release workflow from default GITHUB_TOKEN to GitHub App Token for repository checkout. Enables fine-grained permissions and follows recommended automation practices.

Changes:

  • Added Generate GitHub App Token step using actions/create-github-app-token@v1
  • Updated Checkout repository step to use generated token instead of secrets.GITHUB_TOKEN

Resolves #(issue)

Checklist:

  • Public methods are documented
  • Public methods are tested
  • New and existing tests pass when run locally
  • There are no new warnings or errors
Original prompt

This section details on the original issue you should resolve

<issue_title>[Chore]: Update release workflow to use GitHub App Token for checkout</issue_title>
<issue_description>### What

Edit .github/workflows/release.yml:

  1. Add this step after line 56 (after "Determine target branch"):
- name: Generate GitHub App Token
  id: generate_token
  uses: actions/create-github-app-token@v1
  with:
    app-id: ${{ secrets.APP_ID }}
    private-key: ${{ secrets.APP_PRIVATE_KEY }}
  1. Update line 63 (in "Checkout repository" step):

Replace the token: field with:

token: ${{ steps.generate_token.outputs.token }}

Why

This is necessary to ensure the release workflow uses a GitHub App Token for repository checkout, increasing security and enabling fine-grained repo access management. It fits recommended GitHub best practices for workflow automation.

Notes

Estimated time to complete: 3 minutes.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Copilot AI changed the title [WIP] Update release workflow to use GitHub App Token Update release workflow to use GitHub App Token for checkout Nov 17, 2025
Copilot AI requested a review from thomasturrell November 17, 2025 23:42
@thomasturrell thomasturrell marked this pull request as ready for review November 17, 2025 23:50
@sonarqubecloud
Copy link

@thomasturrell thomasturrell merged commit 5fcc8c7 into main Nov 17, 2025
5 checks passed
@thomasturrell thomasturrell deleted the copilot/update-release-workflow-token branch November 17, 2025 23:53
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.

[Chore]: Update release workflow to use GitHub App Token for checkout

2 participants