Skip to content

Commit a4dc2ae

Browse files
authored
Merge pull request #1050 from dfinity/replace-token-with-app
chore(IDX): replace PAT with GitHub App
2 parents b64644e + 666dea4 commit a4dc2ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-ic-commit.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ jobs:
1111
ic-update:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Create GitHub App Token
15+
uses: actions/create-github-app-token@v1
16+
id: app-token
17+
with:
18+
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
19+
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
20+
1421
- uses: actions/checkout@v4
1522

1623
# First, check if there is a newer version and update the file referencing the version
@@ -68,7 +75,7 @@ jobs:
6875
if: ${{ steps.update.outputs.updated == '1' }}
6976
uses: peter-evans/create-pull-request@v6
7077
with:
71-
token: ${{ secrets.GIX_CREATE_PR_PAT }}
78+
token: ${{ steps.app-token.outputs.token }}
7279
base: master
7380
add-paths: ./.ic-commit
7481
commit-message: Update commit of IC artifacts

0 commit comments

Comments
 (0)