Skip to content

Commit d2e10e2

Browse files
[generate_manifest] use GitHub app instead of token (#237)
1 parent bd91fc5 commit d2e10e2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/generate-manifest.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
pull-requests: write
1919

2020
steps:
21+
- name: Generate GitHub App token
22+
id: app-token
23+
uses: actions/create-github-app-token@v1
24+
with:
25+
app-id: ${{ secrets.BOT_APP_ID }}
26+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
27+
2128
- name: Checkout repository
2229
uses: actions/checkout@v4
2330
with:
24-
token: ${{ secrets.GITHUB_TOKEN }}
31+
token: ${{ steps.app-token.outputs.token }}
2532

2633
- name: Set up Python
2734
uses: actions/setup-python@v4
@@ -51,7 +58,7 @@ jobs:
5158
- name: Create Pull Request
5259
uses: peter-evans/create-pull-request@v5
5360
with:
54-
token: ${{ secrets.GITHUB_TOKEN }}
61+
token: ${{ steps.app-token.outputs.token }}
5562
commit-message: |
5663
feat: add manifest for ${{ steps.repo-info.outputs.repo_name }}
5764

0 commit comments

Comments
 (0)