Skip to content

Commit 6bb8d3a

Browse files
authored
ci(update): use app token instead of obsolete PAT (#1013)
1 parent b2b91aa commit 6bb8d3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/update.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ jobs:
1717
- run: npm run update
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: actions/create-github-app-token@v1
21+
id: app-token
22+
with:
23+
app-id: ${{ vars.OCTOKIT_APP_ID }}
24+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
2025
- name: create pull request
2126
uses: gr2m/create-or-update-pull-request-action@v1.x
2227
env:
23-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
28+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2429
with:
2530
title: 🚧 🤖📯 GraphQL Schema changed
2631
body: >

0 commit comments

Comments
 (0)