Skip to content

Commit 8f29b7c

Browse files
authored
FileSyncer.yml: Create app derived token for all repos (#432)
Allow file syncer to access all repos in the owning repo's installation and use the `GH_INSTALLATION_TOKEN` parameter to provide the token as the action differentiates between PATs using `GH_PAT` and apps using `GH_INSTALLATION_TOKEN`. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
1 parent c176479 commit 8f29b7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/FileSyncer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
app-id: ${{ vars.MU_ACCESS_APP_ID }}
3838
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
39+
owner: ${{ github.repository_owner }}
3940

4041
- name: Run GitHub File Sync
4142
uses: BetaHuhn/repo-file-sync-action@v1
@@ -47,7 +48,7 @@ jobs:
4748
CONFIG_PATH: .sync/Files.yml
4849
DRY_RUN: false
4950
FORK: false
50-
GH_PAT: ${{ steps.app-token.outputs.token }}
51+
GH_INSTALLATION_TOKEN: ${{ steps.app-token.outputs.token }}
5152
GIT_EMAIL: uefibot@microsoft.com
5253
GIT_USERNAME: uefibot
5354
ORIGINAL_MESSAGE: true

0 commit comments

Comments
 (0)