fix(ci): add owner and repositories params to GitHub App token for cross-repo infra access
The deploy-dev job fails because actions/create-github-app-token@v1 defaults to the current repository. Adding owner + repositories scopes the token to include cartsnitch/infra so the subsequent checkout step succeeds. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -118,6 +118,8 @@ jobs:
|
||||
with:
|
||||
app-id: ${{ secrets.CARTSNITCH_APP_ID }}
|
||||
private-key: ${{ secrets.CARTSNITCH_APP_PRIVATE_KEY }}
|
||||
owner: ${{ github.repository_owner }}
|
||||
repositories: infra
|
||||
|
||||
- name: Checkout infra repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user