Skip to content

Commit

Permalink
Move permissions to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 6, 2024
1 parent 825690d commit d474340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
concurrency:
group: github-pages-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
needs: Linux
runs-on: ubuntu-latest
steps:
Expand All @@ -122,8 +124,6 @@ jobs:
- name: Upload Documentation
if: github.event_name == 'push' && github.repository == 'junit-team/junit5' && github.ref == 'refs/heads/main'
uses: ./.github/actions/run-gradle
permissions:
contents: write
with:
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
arguments: |
Expand Down

0 comments on commit d474340

Please sign in to comment.