1
1
name : CI
2
2
on : workflow_call
3
- permissions :
4
- contents : read
3
+ permissions : {}
5
4
jobs :
6
5
lint :
7
6
name : Lint source files
8
7
runs-on : ubuntu-latest
8
+ permissions :
9
+ contents : read # for actions/checkout
9
10
steps :
10
11
- name : Checkout repo
11
12
uses : actions/checkout@v3
41
42
checkForCommonlyIgnoredFiles :
42
43
name : Check for commonly ignored files
43
44
runs-on : ubuntu-latest
45
+ permissions :
46
+ contents : read # for actions/checkout
44
47
steps :
45
48
- name : Checkout repo
46
49
uses : actions/checkout@v3
64
67
checkPackageLock :
65
68
name : Check health of package-lock.json file
66
69
runs-on : ubuntu-latest
70
+ permissions :
71
+ contents : read # for actions/checkout
67
72
steps :
68
73
- name : Checkout repo
69
74
uses : actions/checkout@v3
92
97
integrationTests :
93
98
name : Run integration tests
94
99
runs-on : ubuntu-latest
100
+ permissions :
101
+ contents : read # for actions/checkout
95
102
steps :
96
103
- name : Checkout repo
97
104
uses : actions/checkout@v3
@@ -114,6 +121,8 @@ jobs:
114
121
fuzz :
115
122
name : Run fuzzing tests
116
123
runs-on : ubuntu-latest
124
+ permissions :
125
+ contents : read # for actions/checkout
117
126
steps :
118
127
- name : Checkout repo
119
128
uses : actions/checkout@v3
@@ -138,6 +147,8 @@ jobs:
138
147
strategy :
139
148
matrix :
140
149
node_version_to_setup : [14, 16, 18]
150
+ permissions :
151
+ contents : read # for actions/checkout
141
152
steps :
142
153
- name : Checkout repo
143
154
uses : actions/checkout@v3
@@ -160,7 +171,7 @@ jobs:
160
171
name : Run CodeQL security scan
161
172
runs-on : ubuntu-latest
162
173
permissions :
163
- contents : read
174
+ contents : read # for actions/checkout
164
175
security-events : write
165
176
steps :
166
177
- name : Checkout repo
@@ -179,6 +190,8 @@ jobs:
179
190
build-npm-dist :
180
191
name : Build 'npmDist' artifact
181
192
runs-on : ubuntu-latest
193
+ permissions :
194
+ contents : read # for actions/checkout
182
195
steps :
183
196
- name : Checkout repo
184
197
uses : actions/checkout@v3
@@ -206,6 +219,8 @@ jobs:
206
219
build-deno-dist :
207
220
name : Build 'denoDist' artifact
208
221
runs-on : ubuntu-latest
222
+ permissions :
223
+ contents : read # for actions/checkout
209
224
steps :
210
225
- name : Checkout repo
211
226
uses : actions/checkout@v3
@@ -233,6 +248,8 @@ jobs:
233
248
build-website-dist :
234
249
name : Build website
235
250
runs-on : ubuntu-latest
251
+ permissions :
252
+ contents : read # for actions/checkout
236
253
steps :
237
254
- name : Checkout repo
238
255
uses : actions/checkout@v3
0 commit comments