Skip to content

Commit 2321b0c

Browse files
tylergohlclaude
andcommitted
Fix GitHub App token scope for internal repository access
The workflow was failing because the GitHub App token generated by actions/create-github-app-token@v1 was only scoped to the current repository (kernel-src-tree) by default. When it tried to checkout kernel-container-build (which has INTERNAL visibility), the token didn't have access, resulting in "Repository not found" errors. Added explicit repositories parameter to all token generation steps to grant access to all required repositories: - kernel-tools - kernel-src-tree - kernel-src-tree-tools - kernel-container-build This fix applies to all 5 token generation steps in the workflow: - build job - boot job - test-kselftest job - compare-results job - create-pr job Fixes: https://github.com/ctrliq/kernel-src-tree/actions/runs/19970287958 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 53bad78 commit 2321b0c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
with:
2828
app-id: ${{ secrets.APP_ID }}
2929
private-key: ${{ secrets.APP_PRIVATE_KEY }}
30+
repositories: |
31+
kernel-tools
32+
kernel-src-tree
33+
kernel-src-tree-tools
34+
kernel-container-build
3035
3136
- name: Checkout kernel source
3237
uses: actions/checkout@v4
@@ -110,6 +115,11 @@ jobs:
110115
with:
111116
app-id: ${{ secrets.APP_ID }}
112117
private-key: ${{ secrets.APP_PRIVATE_KEY }}
118+
repositories: |
119+
kernel-tools
120+
kernel-src-tree
121+
kernel-src-tree-tools
122+
kernel-container-build
113123
114124
- name: Checkout kernel-container-build (test branch)
115125
uses: actions/checkout@v4
@@ -171,6 +181,11 @@ jobs:
171181
with:
172182
app-id: ${{ secrets.APP_ID }}
173183
private-key: ${{ secrets.APP_PRIVATE_KEY }}
184+
repositories: |
185+
kernel-tools
186+
kernel-src-tree
187+
kernel-src-tree-tools
188+
kernel-container-build
174189
175190
- name: Checkout kernel-container-build (test branch)
176191
uses: actions/checkout@v4
@@ -258,6 +273,11 @@ jobs:
258273
with:
259274
app-id: ${{ secrets.APP_ID }}
260275
private-key: ${{ secrets.APP_PRIVATE_KEY }}
276+
repositories: |
277+
kernel-tools
278+
kernel-src-tree
279+
kernel-src-tree-tools
280+
kernel-container-build
261281
262282
- name: Determine base branch for comparison
263283
id: base_branch
@@ -526,6 +546,11 @@ jobs:
526546
with:
527547
app-id: ${{ secrets.APP_ID }}
528548
private-key: ${{ secrets.APP_PRIVATE_KEY }}
549+
repositories: |
550+
kernel-tools
551+
kernel-src-tree
552+
kernel-src-tree-tools
553+
kernel-container-build
529554
530555
- name: Create Pull Request
531556
env:

0 commit comments

Comments
 (0)