Skip to content

Commit d2c40bc

Browse files
authored
feat: initial permissions to main.yml
Signed-off-by: Joyce <[email protected]>
1 parent db6fa5e commit d2c40bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: tests
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
concurrency:
69
group: >-
710
${{ github.workflow }}-
@@ -230,6 +233,8 @@ jobs:
230233
release:
231234
needs:
232235
- check
236+
permissions:
237+
contents: write
233238
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
234239
runs-on: ubuntu-latest
235240
timeout-minutes: 75

0 commit comments

Comments
 (0)