Skip to content

Commit 0f69c73

Browse files
committed
restrict the permission in check workflow
Signed-off-by: fixedpoint <961750412@qq.com>
1 parent c8a2646 commit 0f69c73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
branches: [ master, dev ]
55
pull_request:
66
branches: [dev]
7+
8+
permissions:
9+
contents: read
10+
711
jobs:
812
check:
913
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1016
strategy:
1117
matrix:
1218
node: [ 12, 14, 16, 18 ]

0 commit comments

Comments
 (0)