Skip to content

Commit d682227

Browse files
committed
Add explicit permissions for GitHub workflows
1 parent 9071d81 commit d682227

8 files changed

Lines changed: 30 additions & 3 deletions

File tree

.github/workflows/deps.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [pull_request]
1+
on:
2+
pull_request:
3+
4+
permissions:
5+
contents: read
26

37
jobs:
48
check-dependency-availability:

.github/workflows/docs-tutorials.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
on:
22
pull_request:
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
check-doc-build:
69
name: netCDF-Java Documentation Code Deprecation Check

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- 'docs/build.gradle'
66
- 'gradle/**'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check-doc-build:
1013
name: netCDF-Java Documentation Build Check

.github/workflows/libaec.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ name: libaec build using CMake on multiple platforms
1313
on:
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
build:
1821
strategy:

.github/workflows/libblosc2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: C-Blosc2 build using CMake on multiple platforms
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
strategy:

.github/workflows/style.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [pull_request]
1+
on:
2+
pull_request:
3+
4+
permissions:
5+
contents: read
26

37
jobs:
48
check-style:

.github/workflows/test-native-compression.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 'native-compression/build.gradle'
88
- '.github/workflows/test-native-compression.yml'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
tests:
1215
strategy:

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [pull_request]
1+
on:
2+
pull_request:
3+
4+
permissions:
5+
contents: read
26

37
jobs:
48
netcdf-java-tests:

0 commit comments

Comments
 (0)