diff --git a/.github/workflows/npm-check-updates.yml b/.github/workflows/npm-check-updates.yml index e162109..b5a9143 100644 --- a/.github/workflows/npm-check-updates.yml +++ b/.github/workflows/npm-check-updates.yml @@ -41,6 +41,11 @@ jobs: git commit -m 'npm-check-updates' git push --force --set-upstream origin npm-check-updates if: steps.diff.outcome == 'failure' + - id: generate_token + uses: tibdex/github-app-token@v2.1.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create PR run: | set -x @@ -48,5 +53,5 @@ jobs: gh pr create --base ${GITHUB_REF_NAME} --head npm-check-updates --title 'npm-check-updates' --body '' --label dependencies --assignee ${GITHUB_ACTOR} fi env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ steps.generate_token.outputs.token }} if: steps.diff.outcome == 'failure'