From 88ff2acc4f25698ce4ffeb3157d85977042919ac Mon Sep 17 00:00:00 2001 From: Katsuhiko YOSHIDA Date: Thu, 30 Nov 2023 21:32:47 +0900 Subject: [PATCH] Use GitHub App Token --- .github/workflows/tagpr.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index 6e9de6e..1381edb 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -6,9 +6,14 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: Songmu/tagpr@main - env: - GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} + - uses: actions/checkout@v4 + with: + token: ${{ steps.app-token.outputs.token }} + - uses: Songmu/tagpr@v1 + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}