diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index fbb167f3..492e37e6 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -5,6 +5,10 @@ on: branches: - canary +permissions: + contents: write + pull-requests: write + jobs: create-pr: runs-on: ubuntu-latest @@ -48,8 +52,8 @@ jobs: - name: Create Pull Request if: env.VERSION_CHANGED == 'true' && env.PR_EXISTS == '0' run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git fetch origin main git checkout -b release/${{ env.VERSION }} @@ -65,4 +69,4 @@ jobs: --reviewer siumauricio \ --assignee siumauricio env: - GH_TOKEN: ${{ secrets.GH_PAT }} + GH_TOKEN: ${{ github.token }}