diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 54abe36..a8bf875 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -23,10 +23,10 @@ jobs: - name: Auto-approve PRs by other users as team-tf-cdk if: github.event.pull_request.user.login != 'team-tf-cdk' && (contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) || github.actor == 'dependabot[bot]') env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} # NOTE: Replace this with the name of your token associated with the team-tf-cdk user + GH_TOKEN: ${{ secrets.GH_COMMENT_TOKEN }} run: gh pr review ${{ github.event.pull_request.number }} --approve - name: Auto-approve PRs by team-tf-cdk as github-actions[bot] if: github.event.pull_request.user.login == 'team-tf-cdk' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token does not need to be replaced + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh pr review ${{ github.event.pull_request.number }} --approve