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:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8+ permissions :
9+ contents : read
10+
711on :
812 push :
913 branches :
@@ -143,6 +147,9 @@ jobs:
143147
144148 release :
145149 runs-on : ubuntu-latest
150+ permissions :
151+ # required to create GitHub release
152+ contents : write
146153 needs :
147154 - artifact
148155 - test
@@ -183,6 +190,11 @@ jobs:
183190
184191 image :
185192 runs-on : ubuntu-latest
193+ permissions :
194+ # same as global permissions
195+ contents : read
196+ # required to push to GHCR
197+ packages : write
186198 needs :
187199 - artifact
188200 - test
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8+ permissions :
9+ contents : read
10+
711on :
812 push :
913 branches :
1923jobs :
2024 codeql :
2125 runs-on : ubuntu-latest
26+ permissions :
27+ # same as global permissions
28+ contents : read
29+ # required for code scanning
30+ security-events : write
2231 steps :
2332 -
2433 name : Checkout
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8+ permissions :
9+ contents : read
10+
711on :
812 workflow_dispatch :
913 push :
1822jobs :
1923 publish :
2024 runs-on : ubuntu-latest
25+ permissions :
26+ # required to push to gh-pages
27+ contents : write
2128 steps :
2229 -
2330 name : Checkout
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8+ permissions :
9+ contents : read
10+
711on :
812 push :
913 branches :
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
8+ permissions :
9+ contents : read
10+
711on :
812 push :
913 branches :
1923jobs :
2024 labeler :
2125 runs-on : ubuntu-latest
26+ permissions :
27+ # same as global permissions
28+ contents : read
29+ # required to update labels
30+ issues : write
2231 steps :
2332 -
2433 name : Checkout
You can’t perform that action at this time.
0 commit comments