Skip to content

Commit 88de19e

Browse files
committed
add permissions to github actions
1 parent f221c38 commit 88de19e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci_cron.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
cron-tests:
1313
name: Tox env ${{ matrix.python }}-${{ matrix.toxenv }}
1414
runs-on: ${{ matrix.os }}
15+
permissions:
16+
contents: read
1517
strategy:
1618
matrix:
1719
os: [ubuntu-latest]

.github/workflows/ci_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
ci-tests:
1515
name: Tox env ${{ matrix.python }}-${{ matrix.toxenv }}
1616
runs-on: ${{ matrix.os }}
17+
permissions:
18+
contents: read
1719
strategy:
1820
matrix:
1921
os: [ubuntu-latest]
@@ -43,6 +45,8 @@ jobs:
4345
os-tests:
4446
name: Python ${{ matrix.python }} on ${{ matrix.os }}
4547
runs-on: ${{ matrix.os }}
48+
permissions:
49+
contents: read
4650
strategy:
4751
# set this to false for now so windows failures don't prevent macos test from finishing
4852
fail-fast: false
@@ -66,6 +70,8 @@ jobs:
6670
6771
conda:
6872
runs-on: ubuntu-latest
73+
permissions:
74+
contents: read
6975
steps:
7076
- uses: actions/checkout@v3
7177
- name: Conda environment check
@@ -81,6 +87,8 @@ jobs:
8187
8288
codestyle:
8389
runs-on: ubuntu-latest
90+
permissions:
91+
contents: read
8492
steps:
8593
- uses: actions/checkout@v3
8694
- name: Python codestyle check

0 commit comments

Comments
 (0)