Skip to content

Commit 61e3bf4

Browse files
committed
[ci]add the explict permissions in workflows
1 parent 9c14a42 commit 61e3bf4

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
pull_request:
66
branches: [dev]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check:
1013
uses: ./.github/workflows/lint-test.yml
14+
permissions:
15+
contents: read
1116
secrets:
1217
inherit

.github/workflows/lint-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
CODECOV_TOKEN:
55
required: false
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
lint-and-test:
912
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v3

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ on:
33
push:
44
branches: [master]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
lint-and-test:
11+
permissions:
12+
contents: read
813
uses: ./.github/workflows/lint-test.yml
914
secrets:
1015
inherit

0 commit comments

Comments
 (0)