diff --git a/.github/workflows/pr-format.yml b/.github/workflows/pr-format.yml index 2e9dd92da8..1fe086e38b 100644 --- a/.github/workflows/pr-format.yml +++ b/.github/workflows/pr-format.yml @@ -19,6 +19,12 @@ jobs: pr-format: runs-on: ubuntu-latest steps: + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 + with: + app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }} + private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }} - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 if: github.event_name != 'pull_request' || github.event.action != 'closed' with: @@ -26,6 +32,7 @@ jobs: # submodule: 'recursive' fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + token: ${{steps.generate_token.outputs.token}} - name: Get uv version id: get_uv_version if: github.event_name != 'pull_request' || github.event.action != 'closed' @@ -48,7 +55,7 @@ jobs: - uses: dev-hato/actions-diff-pr-management@cc201e3df74a342983025c4e97b7216b4e77f9f1 # v2.0.0 if: success() || failure() with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{steps.generate_token.outputs.token}} branch-name-prefix: fix-format pr-title-prefix: formatが間違ってたので直してあげたよ! concurrency: