Skip to content

Commit

Permalink
Added permissions required by actions
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed Feb 3, 2024
1 parent 3192ea6 commit 2968664
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
runs-on: ubuntu-20.04

permissions:
# Needed to deploy your static files to GitHub Pages
# Needed to cancel any previous runs that are not completed for a given workflow
actions: write
# Needed to deploy static files to GitHub Pages
contents: write
# Needed to add a comment to a pull request's issue
pull-requests: write

env:
python-ver: '3.9'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
python: ['3.9', '3.10', '3.11']
os: [ubuntu-20.04, windows-latest]

permissions:
# Needed to cancel any previous runs that are not completed for a given workflow
actions: write

runs-on: ${{ matrix.os }}

defaults:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/generate_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
name: Generate coverage and push to Coveralls.io
runs-on: ubuntu-20.04

permissions:
# Needed to cancel any previous runs that are not completed for a given workflow
actions: write

defaults:
run:
shell: bash -l {0}
Expand Down

0 comments on commit 2968664

Please sign in to comment.