Skip to content

Commit 2968664

Browse files
committed
Added permissions required by actions
1 parent 3192ea6 commit 2968664

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ jobs:
2828
runs-on: ubuntu-20.04
2929

3030
permissions:
31-
# Needed to deploy your static files to GitHub Pages
31+
# Needed to cancel any previous runs that are not completed for a given workflow
32+
actions: write
33+
# Needed to deploy static files to GitHub Pages
3234
contents: write
35+
# Needed to add a comment to a pull request's issue
36+
pull-requests: write
3337

3438
env:
3539
python-ver: '3.9'

.github/workflows/conda-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
python: ['3.9', '3.10', '3.11']
6161
os: [ubuntu-20.04, windows-latest]
6262

63+
permissions:
64+
# Needed to cancel any previous runs that are not completed for a given workflow
65+
actions: write
66+
6367
runs-on: ${{ matrix.os }}
6468

6569
defaults:

.github/workflows/generate_coverage.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
name: Generate coverage and push to Coveralls.io
1212
runs-on: ubuntu-20.04
1313

14+
permissions:
15+
# Needed to cancel any previous runs that are not completed for a given workflow
16+
actions: write
17+
1418
defaults:
1519
run:
1620
shell: bash -l {0}

0 commit comments

Comments
 (0)