From bc6b723a948f1de4ccb28de4d6784ba0f635ad27 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 5 Jul 2026 19:32:14 +0300 Subject: [PATCH] chore: Add permissions to open pull request action --- .github/workflows/open_pull_request.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 }}.'