File tree Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
@@ -143,6 +147,9 @@ jobs:
143
147
144
148
release :
145
149
runs-on : ubuntu-latest
150
+ permissions :
151
+ # required to create GitHub release
152
+ contents : write
146
153
needs :
147
154
- artifact
148
155
- test
@@ -183,6 +190,11 @@ jobs:
183
190
184
191
image :
185
192
runs-on : ubuntu-latest
193
+ permissions :
194
+ # same as global permissions
195
+ contents : read
196
+ # required to push to GHCR
197
+ packages : write
186
198
needs :
187
199
- artifact
188
200
- test
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
19
23
jobs :
20
24
codeql :
21
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ # same as global permissions
28
+ contents : read
29
+ # required for code scanning
30
+ security-events : write
22
31
steps :
23
32
-
24
33
name : Checkout
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
workflow_dispatch :
9
13
push :
18
22
jobs :
19
23
publish :
20
24
runs-on : ubuntu-latest
25
+ permissions :
26
+ # required to push to gh-pages
27
+ contents : write
21
28
steps :
22
29
-
23
30
name : Checkout
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : true
6
6
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8
+ permissions :
9
+ contents : read
10
+
7
11
on :
8
12
push :
9
13
branches :
19
23
jobs :
20
24
labeler :
21
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ # same as global permissions
28
+ contents : read
29
+ # required to update labels
30
+ issues : write
22
31
steps :
23
32
-
24
33
name : Checkout
You can’t perform that action at this time.
0 commit comments