From 227bc3b6e981717cf65f60e7df35811ae5f91d6c Mon Sep 17 00:00:00 2001 From: massongit Date: Sat, 10 Feb 2024 15:00:11 +0900 Subject: [PATCH] =?UTF-8?q?CI=E3=81=ABGitHub=20App=E3=81=AEToken=E3=82=92?= =?UTF-8?q?=E4=B8=8E=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/format-json-yml.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-json-yml.yml b/.github/workflows/format-json-yml.yml index 7c2ead16c..9b841ee30 100644 --- a/.github/workflows/format-json-yml.yml +++ b/.github/workflows/format-json-yml.yml @@ -17,15 +17,21 @@ jobs: format-json-yml: runs-on: ubuntu-latest steps: + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@v1.7.0 + with: + app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }} + private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }} - uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' || github.event.action != 'closed' with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - token: ${{secrets.CREATE_WORKFLOW_CI_TOKEN}} + token: ${{ steps.generate_token.outputs.token }} - uses: dev-hato/actions-format-json-yml@v0.0.59 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ steps.generate_token.outputs.token }} concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: true