Skip to content

Commit

Permalink
github-actions: Allow RW permissions for jobs updating the online docs (
Browse files Browse the repository at this point in the history
#2160)

Per [0] this should also work with dependabot triggered runs on devel.
Closes: #2144

Tested by setting default GITHUB_TOKEN permissions to RO at repo scope.

[0] https://github.blog/changelog/2021-10-06-github-actions-workflows-triggered-by-dependabot-prs-will-respect-permissions-key-in-workflows/

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely authored Oct 30, 2021
1 parent 34d67c1 commit c3024f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pnl-ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
python-version: [3.7]
os: [ubuntu-latest]

permissions:
contents: write
runs-on: ${{ matrix.os }}
needs: [docs-build]
if: github.event_name == 'push' &&
Expand Down

0 comments on commit c3024f1

Please sign in to comment.