diff --git a/.github/workflows/format-pr.yml b/.github/workflows/format-pr.yml index 4ac9047a8..d7139ee1a 100644 --- a/.github/workflows/format-pr.yml +++ b/.github/workflows/format-pr.yml @@ -7,6 +7,9 @@ on: jobs: format: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - uses: julia-actions/setup-julia@v1 with: @@ -26,7 +29,7 @@ jobs: format(["src", "ext", "test"]) - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Format code