fix: use kernel-internal GitHub App token in workflows#109
Merged
Conversation
- Add app token generation step using actions/create-github-app-token@v1 - Replace GITHUB_TOKEN/GH_PAT references with app token - Update git identity to kernel-internal[bot] - Add token to checkout action for fix-ci workflow This aligns with the kernel repo's pattern of using the kernel-internal GitHub App for automated commits and releases.
|
Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.
Or push these changes by commenting: Preview (d312379d71)diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -19,6 +19,7 @@
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
+ repositories: cli,homebrew-tap
- name: Checkout
uses: actions/checkout@v4 |
Contributor
Author
The actions/create-github-app-token action scopes tokens to the current repository by default. Since .goreleaser.yaml pushes a homebrew formula to kernel/homebrew-tap, the token needs explicit access to that repo. Add 'repositories: cli,homebrew-tap' to ensure the generated token can access both the current repo (for releases) and the homebrew-tap repo (for formula updates). Applied via @cursor push command
ulziibay-kernel
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Switches workflows from using
GITHUB_TOKEN/GH_PATto the kernel-internal GitHub App token, aligning with the pattern used in the main kernel repo.Changes
fix-ci.yaml
actions/create-github-app-token@v1secrets.GITHUB_TOKENwithsteps.app-token.outputs.tokenin GH_TOKEN env varkernel-internal[bot]/260533166+kernel-internal[bot]@users.noreply.github.comrelease.yaml
actions/create-github-app-token@v1secrets.GH_PATwithsteps.app-token.outputs.tokenin GITHUB_TOKEN env var for GoReleaserBenefits
Testing
The workflows will use the existing
ADMIN_APP_IDandADMIN_APP_PRIVATE_KEYsecrets already configured in the repository.Note
Medium Risk
Changes release and automation credentials/permissions; misconfiguration could break CI auto-fix pushes or tagged releases/publishing even though no product code changes.
Overview
Switches the
Fix CI FailuresandRelease CLIGitHub Actions workflows to authenticate via a generated GitHub App token (actions/create-github-app-token@v1) instead ofGITHUB_TOKEN/PATs.The CI-fix workflow now checks out/pushes and runs
ghusing the app token and updates commit attribution tokernel-internal[bot]; the release workflow similarly feeds the app token to GoReleaser (scoped tocliandhomebrew-tap).Written by Cursor Bugbot for commit 92b320a. This will update automatically on new commits. Configure here.