From 7e544189b9b703ab71395cb28288bb827c62eafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Tue, 28 May 2024 20:36:17 +0200 Subject: [PATCH] Fix permissions of formatter workflow --- .github/workflows/format-pr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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