From b0131eec91b28243f0c637d830f020dab4e783f7 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Sat, 10 Feb 2024 17:31:47 +0900 Subject: [PATCH] =?UTF-8?q?CI=20Add=20to=20Task=20List:=20GitHub=20App?= =?UTF-8?q?=E3=81=AE=E3=83=88=E3=83=BC=E3=82=AF=E3=83=B3=E3=81=AE=E6=B8=A1?= =?UTF-8?q?=E3=81=97=E6=96=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `dev-hato/actions-add-to-projects` へのGitHub Appのトークンの渡し方を修正します。 --- .github/workflows/add-to-task-list.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-to-task-list.yml b/.github/workflows/add-to-task-list.yml index 2166eb078a..900f4d07d4 100644 --- a/.github/workflows/add-to-task-list.yml +++ b/.github/workflows/add-to-task-list.yml @@ -12,8 +12,13 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'issues' || github.repository == github.event.pull_request.head.repo.full_name steps: + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@v1.8.0 + with: + app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }} + private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }} - uses: dev-hato/actions-add-to-projects@v0.0.60 with: - github_app_id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }} - github_app_private_key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }} + github-token: ${{steps.generate_token.outputs.token}} project-url: https://github.com/orgs/dev-hato/projects/1