From dedbacbc3c5052dd2e02eb73fe12718bf569084f Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Tue, 21 Jul 2026 17:07:20 +0000 Subject: [PATCH] :construction_worker: Support Dependabot in automerge workflow --- .github/workflows/automerge.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 3e657b3..b34973d 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -12,6 +12,12 @@ on: pull_request_review: types: - submitted +permissions: + checks: read + contents: write + issues: write + pull-requests: write + statuses: read jobs: automerge: runs-on: ubuntu-latest @@ -19,7 +25,7 @@ jobs: - name: Automerge uses: pascalgn/automerge-action@v0.13.1 env: - GITHUB_TOKEN: "${{ secrets.GH_PAT }}" + GITHUB_TOKEN: "${{ secrets.GH_PAT || github.token }}" MERGE_LABELS: "merge,!work in progress,!wip" MERGE_REMOVE_LABELS: "merge" MERGE_METHOD: "merge" @@ -32,4 +38,4 @@ jobs: with: branches: "!master, !production, *" env: - GITHUB_TOKEN: "${{ secrets.GH_PAT }}" + GITHUB_TOKEN: "${{ secrets.GH_PAT || github.token }}"