Skip to content

Commit

Permalink
Declare write permissions only for jobs that require them
Browse files Browse the repository at this point in the history
  • Loading branch information
n-peugnet committed Jul 28, 2024
1 parent 457e0ac commit 7a42dd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ jobs:
runs-on: ubuntu-latest
needs: html
concurrency: preview-${{ github.ref }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency: preview-${{ github.ref }}
jobs:
preview:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down

0 comments on commit 7a42dd8

Please sign in to comment.