Skip to content

Commit 2bef62f

Browse files
authored
ci: use actions-github-app-token
1 parent 2c04d6b commit 2bef62f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/labeler.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
name: "Pull Request Labeler"
2-
# https://github.com/actions/labeler
32

43
on:
5-
- pull_request_target
4+
pull_request_target:
65

76
jobs:
87
triage:
98
runs-on: ubuntu-22.04
9+
timeout-minutes: 1
10+
permissions: {}
1011
steps:
11-
- uses: actions/labeler@v4
12-
with:
13-
repo-token: "${{ secrets.GH_PAT }}"
12+
# https://github.com/peaceiris/actions-github-app-token
13+
- uses: peaceiris/[email protected]
14+
id: app
15+
with:
16+
app_id: ${{ secrets.GH_APP_ID }}
17+
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
18+
19+
# https://github.com/actions/labeler
20+
- uses: actions/labeler@v4
21+
with:
22+
repo-token: "${{ steps.app.outputs.token }}"

0 commit comments

Comments
 (0)