Skip to content

Changes goreleaser to use generate app token - #498

Merged
bomoko merged 2 commits into
mainfrom
chore-move-from-PAT-to-ghapp
Aug 14, 2026
Merged

Changes goreleaser to use generate app token#498
bomoko merged 2 commits into
mainfrom
chore-move-from-PAT-to-ghapp

Conversation

@bomoko

@bomoko bomoko commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR moves us from using a github PAT to generating a token via a github app

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

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

This PR updates the release workflow to stop using a long-lived GitHub PAT and instead generate a short-lived GitHub App installation token for GoReleaser, aligning the release process with app-based authentication.

Changes:

  • Added a “Generate App Token” step using actions/create-github-app-token@v3.
  • Switched GoReleaser to use the generated token (steps.app-token.outputs.token) instead of secrets.GH_ACTION_PAT.

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

Comment thread .github/workflows/goreleaser.yaml Outdated
@bomoko
bomoko requested a review from rocketeerbkw August 13, 2026 19:16

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

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

Suppressed comments (1)

.github/workflows/goreleaser.yaml:56

  • This job currently relies on the repository’s default GITHUB_TOKEN permissions. Since the release/publish operations are now done via the GitHub App token, it’s safer to explicitly scope the workflow GITHUB_TOKEN for this job to the minimum needed (typically contents: read for actions/checkout).
        name: Generate App Token
        id: app-token
        uses: actions/create-github-app-token@v3

@rocketeerbkw rocketeerbkw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actions config matches app.

@bomoko
bomoko merged commit 7a55c0c into main Aug 14, 2026
9 checks passed
@bomoko
bomoko deleted the chore-move-from-PAT-to-ghapp branch August 14, 2026 02:36
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.

4 participants