Skip to content

Commit fec7c7e

Browse files
authored
fix: add owner param to GitHub App token for cross-repo access (#182)
The app token needs `owner: aws` to generate a token scoped to all repos the app is installed on, not just the current repo. Without this, the token can't clone the CDK repo.
1 parent 8435a43 commit fec7c7e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/e2e-tests-full.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
with:
6565
app-id: ${{ vars.APP_ID }}
6666
private-key: ${{ secrets.APP_PRIVATE_KEY }}
67+
owner: aws
6768
- name: Build CDK package from main
6869
if: matrix.cdk-source == 'main'
6970
run: |

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
with:
8383
app-id: ${{ vars.APP_ID }}
8484
private-key: ${{ secrets.APP_PRIVATE_KEY }}
85+
owner: aws
8586
- name: Build CDK package from main
8687
run: |
8788
git clone --depth 1 "https://x-access-token:${CDK_REPO_TOKEN}@github.com/${CDK_REPO}.git" /tmp/cdk-repo

0 commit comments

Comments
 (0)