From c1669aefdf84b81c57d84db7b180b5b0d2f02cd5 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Thu, 11 Jul 2024 11:32:29 -0700 Subject: [PATCH] ci: pr auto approve: Add dispatch permission via contents write --- .github/workflows/00_pr_auto_approve.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/00_pr_auto_approve.yml b/.github/workflows/00_pr_auto_approve.yml index ba8167db53..37c92064f0 100644 --- a/.github/workflows/00_pr_auto_approve.yml +++ b/.github/workflows/00_pr_auto_approve.yml @@ -13,6 +13,8 @@ on: jobs: trigger-approve-pr: runs-on: ubuntu-latest + permissions: + contents: write if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.event.actor) }} steps: - name: 'Repository Dispatch: approve-pr'