Skip to content

Commit 229e771

Browse files
authored
Use the Primer GitHub App for auth instead of the GPR_AUTH_TOKEN_SHARED (#2512)
1 parent b542f33 commit 229e771

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
- name: Install dependencies
2828
run: npm ci
2929

30+
- id: get-access-token
31+
uses: camertron/github-app-installation-auth-action@v1
32+
with:
33+
app-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID }}
34+
private-key: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY }}
35+
client-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_CLIENT_ID }}
36+
client-secret: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_CLIENT_SECRET }}
37+
installation-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_INSTALLATION_ID }}
38+
3039
- name: Create release pull request or publish to npm
3140
id: changesets
3241
uses: changesets/action@master
@@ -35,5 +44,5 @@ jobs:
3544
# This expects you to have a script called release which does a build for your packages and calls changeset publish
3645
publish: npm run release
3746
env:
38-
GITHUB_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
47+
GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }}
3948
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}

0 commit comments

Comments
 (0)