diff --git a/.github/workflows/open_pull_request.yml b/.github/workflows/open_pull_request.yml index 113a91cf1..779734e11 100644 --- a/.github/workflows/open_pull_request.yml +++ b/.github/workflows/open_pull_request.yml @@ -6,6 +6,10 @@ on: - dev workflow_dispatch: +permissions: + pull-requests: write + contents: read + env: MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main` @@ -20,6 +24,7 @@ jobs: - name: Open pull request uses: repo-sync/pull-request@v2 with: + github_token: ${{ secrets.GITHUB_TOKEN }} destination_branch: 'main' pr_title: 'chore: ${{ env.MESSAGE }}' pr_body: 'This pull request will ${{ env.MESSAGE }}.'