Skip to content

Commit 24ddd31

Browse files
authored
Update subtree.yml
Switch Personal Access Token (PAT) to GitHub App token.
1 parent 96eb6cd commit 24ddd31

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/subtree.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ jobs:
1919
name: Subtree for Common
2020
runs-on: ubuntu-latest
2121
steps:
22+
- uses: actions/create-github-app-token@v1
23+
id: app-token
24+
with:
25+
app-id: ${{ vars.SUBTREE_APP_ID }}
26+
private-key: ${{ secrets.SUBTREE_APP_PRIVATE_KEY }}
2227
- uses: actions/checkout@v4
2328
with:
24-
token: ${{ secrets.SUBTREE_GITHUB_TOKEN }}
29+
token: ${{ steps.app-token.outputs.token }}
2530
fetch-depth: 0
2631
- name: Subtree Split
2732
uses: ./.github/actions/subtree
@@ -33,9 +38,14 @@ jobs:
3338
name: Subtree for Http
3439
runs-on: ubuntu-latest
3540
steps:
41+
- uses: actions/create-github-app-token@v1
42+
id: app-token
43+
with:
44+
app-id: ${{ vars.SUBTREE_APP_ID }}
45+
private-key: ${{ secrets.SUBTREE_APP_PRIVATE_KEY }}
3646
- uses: actions/checkout@v4
3747
with:
38-
token: ${{ secrets.SUBTREE_GITHUB_TOKEN }}
48+
token: ${{ steps.app-token.outputs.token }}
3949
fetch-depth: 0
4050
- name: Subtree Split
4151
uses: ./.github/actions/subtree

0 commit comments

Comments
 (0)