.github: open nvchecker issues with the autobump app token

Since 2026-11-26 every issues-bumper job that creates an issue fails
with "Resource not accessible by personal access token", while reads
with the same GENTOO_ZH_NVCHECKER_PAT still succeed, so the PAT has
lost write access. The gentoo-zh-autobump app already holds issues
write on overlay and has its own API rate limit.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-11-28 00:49:52 +11:00
1 parent 2d00224917
commit fca88d909f
1 file changed
+12 -2
+12 -2
View File
@@ -119,13 +119,23 @@ jobs:
with:
path: 'gentoo-zh'
# the app installation has its own API rate limit, which the shared GITHUB_TOKEN kept hitting
- name: mint app token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: gentoo-zh
repositories: overlay
permission-issues: write
- name: update issues
timeout-minutes: 1
env:
NAME: ${{ matrix.name }}
NEWVER: ${{ matrix.newver }}
OLDVER: ${{ matrix.oldver }}
# a personal token has its own API rate limit, which the shared GITHUB_TOKEN kept hitting
GITHUB_TOKEN: ${{ secrets.GENTOO_ZH_NVCHECKER_PAT }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
go run . --file gentoo-zh/.github/workflows/overlay.toml --name "$NAME" --newver "$NEWVER" --oldver "$OLDVER"