Skip to content

Commit 2f59813

Browse files
Update workflow to use App Auth
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
1 parent 9bfee6d commit 2f59813

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/autoupdate.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ jobs:
1010
pull-requests: write
1111
contents: write
1212
steps:
13-
- uses: CSSUoB/pr-auto-updater@v2.2.2
13+
- name: Generate Access Token
14+
uses: actions/create-github-app-token@v2
15+
id: generate-token
16+
with:
17+
app-id: ${{ secrets.PR_AUTO_UPDATE_CLIENT_ID }}
18+
private-key: ${{ secrets.PR_AUTO_UPDATE_PRIVATE_KEY }}
19+
20+
- uses: CSSUoB/pr-auto-updater@v2.1.2
1421
env:
15-
GITHUB_TOKEN: '${{ secrets.PR_AUTO_UPDATE_TOKEN }}'
22+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
1623
PR_FILTER: 'labelled'
1724
PR_LABELS: 'sync'
1825
MERGE_CONFLICT_ACTION: 'label'

0 commit comments

Comments
 (0)