File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : workflow_call
3
+ permissions : {}
3
4
jobs :
4
5
test :
5
6
runs-on : ubuntu-latest
7
+ permissions :
8
+ contents : read # for actions/checkout
6
9
steps :
7
10
- name : Checkout repo
8
11
uses : actions/checkout@v3
30
33
lint :
31
34
name : Lint source files
32
35
runs-on : ubuntu-latest
36
+ permissions :
37
+ contents : read # for actions/checkout
33
38
steps :
34
39
- name : Checkout repo
35
40
uses : actions/checkout@v3
65
70
checkForCommonlyIgnoredFiles :
66
71
name : Check for commonly ignored files
67
72
runs-on : ubuntu-latest
73
+ permissions :
74
+ contents : read # for actions/checkout
68
75
steps :
69
76
- name : Checkout repo
70
77
uses : actions/checkout@v3
89
96
checkPackageLock :
90
97
name : Check health of package-lock.json file
91
98
runs-on : ubuntu-latest
99
+ permissions :
100
+ contents : read # for actions/checkout
92
101
steps :
93
102
- name : Checkout repo
94
103
uses : actions/checkout@v3
@@ -114,7 +123,8 @@ jobs:
114
123
name : Run CodeQL security scan
115
124
runs-on : ubuntu-latest
116
125
permissions :
117
- security-events : write
126
+ contents : read # for actions/checkout
127
+ security-events : write # for codeql-action
118
128
steps :
119
129
- name : Checkout repo
120
130
uses : actions/checkout@v3
@@ -132,6 +142,8 @@ jobs:
132
142
buildDemo :
133
143
name : Build Demo
134
144
runs-on : ubuntu-latest
145
+ permissions :
146
+ contents : read # for actions/checkout
135
147
steps :
136
148
- name : Checkout repo
137
149
uses : actions/checkout@v3
@@ -162,6 +174,8 @@ jobs:
162
174
buildRelease :
163
175
name : Build release
164
176
runs-on : ubuntu-latest
177
+ permissions :
178
+ contents : read # for actions/checkout
165
179
steps :
166
180
- name : Checkout repo
167
181
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
name : PullRequest
2
2
on : pull_request
3
+ permissions : {}
3
4
jobs :
4
5
ci :
6
+ permissions :
7
+ contents : read # for actions/checkout
8
+ security-events : write # for codeql-action
5
9
uses : ./.github/workflows/ci.yml
6
10
7
11
dependency-review :
8
12
name : Security check of added dependencies
9
13
runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : read # for actions/checkout
10
16
steps :
11
17
- name : Checkout repo
12
18
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
name : Push
2
2
on : push
3
+ permissions : {}
3
4
jobs :
4
5
ci :
6
+ permissions :
7
+ contents : read # for actions/checkout
8
+ security-events : write # for codeql-action
5
9
uses : ./.github/workflows/ci.yml
10
+
6
11
deploy-to-gh-pages :
7
12
name : Deploy to `npm` branch
8
13
needs : ci
11
16
name : github-pages
12
17
url : ${{ github.server_url }}/${{ github.repository }}/tree/gh-pages
13
18
runs-on : ubuntu-latest
19
+ permissions :
20
+ contents : read # for actions/checkout
14
21
steps :
15
22
- name : Checkout `gh-pages` branch
16
23
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments