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 }}"