Skip to content

Commit 82a1258

Browse files
authored
[CI] Add top-level/run-level permissions (#560)
Signed-off-by: Yilong Guo <[email protected]>
1 parent 60df7bc commit 82a1258

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/patch-release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Generate patch releases
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
schedule:
@@ -37,6 +40,9 @@ jobs:
3740
| xargs -0 -d"\n" printf 'branches_json={"branch":[%s]}' \
3841
>> $GITHUB_OUTPUT
3942
release:
43+
permissions:
44+
# required by softprops/action-gh-release to create a release
45+
contents: write
4046
runs-on: ubuntu-latest
4147
needs: setup
4248
strategy:

0 commit comments

Comments
 (0)