Skip to content

Use GitHub App for cross-repo workflow dispatch#139

Merged
lex57ukr merged 2 commits intomainfrom
99-investigate-github-app-for-cross-repo-dispatch
Feb 4, 2026
Merged

Use GitHub App for cross-repo workflow dispatch#139
lex57ukr merged 2 commits intomainfrom
99-investigate-github-app-for-cross-repo-dispatch

Conversation

@lex57ukr
Copy link
Contributor

@lex57ukr lex57ukr commented Feb 4, 2026

Summary

  • Replace PAT-based authentication with GitHub App token for triggering workflows in apt and homebrew-tap repos
  • Use actions/create-github-app-token@v2 to generate short-lived tokens on demand
  • Update release troubleshooting docs for GitHub App authentication

Test plan

  • Merge corresponding PRs in homebrew-tap and apt repos first
  • Verify release workflow triggers both downstream workflows on next release
  • Remove deprecated secrets after verification: APT_REPO_TOKEN, HOMEBREW_TAP_REPO_TOKEN

Fixes #99

🤖 Generated with Claude Code

lex57ukr and others added 2 commits February 4, 2026 04:23
Replace PAT-based authentication with GitHub App token generation
using actions/create-github-app-token. This eliminates the need for
APT_REPO_TOKEN and HOMEBREW_TAP_REPO_TOKEN secrets.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace PAT-based troubleshooting with GitHub App guidance for
cross-repo workflow dispatch issues.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 4, 2026 11:33
Copy link

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 migrates cross-repository workflow dispatch authentication from Personal Access Tokens (PATs) to GitHub App tokens for improved security and maintainability.

Changes:

  • Replaced PAT-based authentication with GitHub App token generation using actions/create-github-app-token@v2
  • Updated release troubleshooting documentation to reflect GitHub App authentication
  • Removed deprecated PAT secret references from workflow

Reviewed changes

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

File Description
.github/workflows/release.yml Added GitHub App token generation step and updated workflow dispatch steps to use App token instead of PAT secrets
docs/how-to/how-to-release.md Updated troubleshooting guide to document GitHub App authentication issues and resolution steps instead of PAT renewal

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

@lex57ukr lex57ukr added the enhancement New feature or request label Feb 4, 2026
@lex57ukr lex57ukr merged commit f3123e1 into main Feb 4, 2026
5 checks passed
@lex57ukr lex57ukr deleted the 99-investigate-github-app-for-cross-repo-dispatch branch February 4, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from PATs to GitHub App for cross-repo workflows

1 participant