From e7693fb46a0162808a5720548770ed92ed467aa8 Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Fri, 13 Sep 2024 14:40:47 +0200 Subject: [PATCH] fix: add write permissions --- .github/workflows/verify_formatting.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify_formatting.yaml b/.github/workflows/verify_formatting.yaml index 93cfdeec..201a7641 100644 --- a/.github/workflows/verify_formatting.yaml +++ b/.github/workflows/verify_formatting.yaml @@ -8,6 +8,9 @@ on: jobs: formatting: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - name: Generate COG token @@ -28,8 +31,6 @@ jobs: - name: Checkout without token uses: actions/checkout@v4 if: steps.create_token.outcome == 'failure' - # with: - # ref: ${{ github.event.pull_request.head.ref }} with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }}