From 2bef62f8180c000cd3b5bf97e30f4cdde119adfb Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 23 Oct 2022 11:31:21 +0900 Subject: [PATCH] ci: use actions-github-app-token --- .github/workflows/labeler.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 78ea17930..2f41e0da0 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 }}"