Skip to content

Commit 50dbc21

Browse files
fix(actions) restrict permission of action configuration files
1 parent 05e1d5e commit 50dbc21

File tree

7 files changed

+23
-1
lines changed

7 files changed

+23
-1
lines changed

.github/workflows/checksum_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
release:
66
types: [created]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
get-sha256:
1013
runs-on: ubuntu-latest

.github/workflows/doc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: '0 0 * * *' # Every day at 00:00 UTC
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
doc:
1114
runs-on: ubuntu-latest

.github/workflows/draft-pdf.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Draft JOSS PDF
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
push:
48
paths:

.github/workflows/lint-format-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint, format and type check
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
branches: [main]

.github/workflows/pr-title-checker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: PR Title Checker
22

3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
37
on:
48
pull_request:
59
types: [opened, edited, synchronize, reopened]

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
test:
99
name: test
10+
permissions:
11+
contents: read
1012
runs-on: ${{ matrix.os }}
1113
strategy:
1214
matrix:
@@ -56,9 +58,9 @@ jobs:
5658
build:
5759
name: Build wheels for multiple Python versions
5860
needs: test
59-
runs-on: ubuntu-latest
6061
permissions:
6162
contents: read
63+
runs-on: ubuntu-latest
6264

6365
steps:
6466
- uses: actions/checkout@v4

.github/workflows/testing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests and Examples
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:

0 commit comments

Comments
 (0)