diff --git a/.github/workflows/dependabot-reviewer.yml b/.github/workflows/dependabot-reviewer.yml index f0169449f..38c752e21 100644 --- a/.github/workflows/dependabot-reviewer.yml +++ b/.github/workflows/dependabot-reviewer.yml @@ -14,14 +14,16 @@ jobs: - name: Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{secrets.DEPENDABOT_TOKEN}}" - name: Enable auto-merge for Dependabot PRs run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.ZOMBIENET_GITHUB_TOKEN}} + github-token: ${{secrets.DEPENDABOT_TOKEN}} - name: Approve patch updates if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}} run: gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch update**" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.ZOMBIENET_GITHUB_TOKEN}} \ No newline at end of file + github-token: ${{secrets.DEPENDABOT_TOKEN}}