Skip to content

Commit 612ad49

Browse files
Add token-based checkout to sync-branches workflow (#4)
1 parent 9270525 commit 612ad49

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/sync-branches.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v5
1817
- name: Get PAT for app
1918
uses: actions/create-github-app-token@v2
2019
id: app-token
2120
with:
2221
app-id: ${{ secrets.APP_ID }}
2322
private-key: ${{ secrets.APP_SECRET }}
23+
24+
- uses: actions/checkout@v5
25+
with:
26+
token: ${{ steps.app-token.outputs.token }}
2427
- name: Push changes
2528
uses: ad-m/github-push-action@master
2629
with:

0 commit comments

Comments
 (0)