From 796b77b83775da183d77da6e7d9a91ea189cdab1 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Fri, 12 Jul 2024 08:55:19 -0700 Subject: [PATCH] ci: pr auto approve: Via @liceoa --- .github/workflows/00_pr_auto_approve.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/00_pr_auto_approve.yml b/.github/workflows/00_pr_auto_approve.yml index d4c75138a2..2b8164a687 100644 --- a/.github/workflows/00_pr_auto_approve.yml +++ b/.github/workflows/00_pr_auto_approve.yml @@ -33,8 +33,6 @@ jobs: approve-pr: runs-on: ubuntu-latest - permissions: - pull-requests: write if: ${{ github.event_name == 'repository_dispatch' && contains(fromJson('["github-actions[bot]", "pdxjohnny"]'), github.event.sender.login) && contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.event.client_payload.actor) }} steps: - name: Harden Runner @@ -46,9 +44,10 @@ jobs: with: review-message: "LGTM" pull-request-number: ${{ github.event.client_payload.pull_request.number }} + github-token: ${{ secrets.LICEOA_PAT }} - env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.LICEOA_PAT }} PULL_REQUEST_NUMBER: ${{ github.event.client_payload.pull_request.number }} run: | set -x