diff --git a/.github/workflows/add-to-task-list.yml b/.github/workflows/add-to-task-list.yml index 8bd1e0d67..e1f6667bd 100644 --- a/.github/workflows/add-to-task-list.yml +++ b/.github/workflows/add-to-task-list.yml @@ -13,8 +13,13 @@ jobs: runs-on: ubuntu-latest if: 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