ci: use actions-github-app-token

This commit is contained in:
Shohei Ueda 2022-10-23 11:31:21 +09:00 committed by GitHub
parent 2c04d6b595
commit 2bef62f818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,22 @@
name: "Pull Request Labeler"
# https://github.com/actions/labeler
on:
- pull_request_target
pull_request_target:
jobs:
triage:
runs-on: ubuntu-22.04
timeout-minutes: 1
permissions: {}
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GH_PAT }}"
# https://github.com/peaceiris/actions-github-app-token
- uses: peaceiris/actions-github-app-token@v1.1.4
id: app
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
# https://github.com/actions/labeler
- uses: actions/labeler@v4
with:
repo-token: "${{ steps.app.outputs.token }}"