Skip to content

Commit

Permalink
Moved permissions to be job specific as to not interfere with analyze…
Browse files Browse the repository at this point in the history
… job permissions
  • Loading branch information
1eyewonder committed Dec 29, 2024
1 parent ea3a6bb commit 0f25f75
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ on:
- main
types: [ opened, synchronize, reopened ]

# We need some permissions to publish to Github Pages
permissions:
contents: write
pages: write
id-token: write

jobs:
build:
strategy:
Expand Down Expand Up @@ -55,6 +49,11 @@ jobs:
upload-docs:
runs-on: ubuntu-latest
needs: build
# We need some permissions to publish to Github Pages
permissions:
contents: write
pages: write
id-token: write
# ensures that the job only runs when the workflow is triggered by a push event to the main branch
if: github.ref == 'refs/heads/main'
steps:
Expand Down

0 comments on commit 0f25f75

Please sign in to comment.