-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathtest.sarif
331 lines (331 loc) · 13.1 KB
/
test.sarif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
{
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "GitHub Actions lint",
"version": "",
"informationUri": "https://github.com/rhysd/actionlint",
"rules": [
{
"id": "action",
"name": "Action",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for popular actions released on GitHub, local actions, and action calls at \"uses:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for popular actions released on GitHub, local actions, and action calls at \"uses:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "credentials",
"name": "Credentials",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for credentials in \"services:\" configuration",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for credentials in \"services:\" configuration"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "deprecated-commands",
"name": "DeprecatedCommands",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for deprecated \"set-output\", \"save-state\", \"set-env\", and \"add-path\" commands at \"run:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for deprecated \"set-output\", \"save-state\", \"set-env\", and \"add-path\" commands at \"run:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "env-var",
"name": "EnvVar",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for environment variables configuration at \"env:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for environment variables configuration at \"env:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "events",
"name": "Events",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for workflow trigger events at \"on:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for workflow trigger events at \"on:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "expression",
"name": "Expression",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Syntax and semantics checks for expressions embedded with ${{ }} syntax",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Syntax and semantics checks for expressions embedded with ${{ }} syntax"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "glob",
"name": "Glob",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for glob syntax used in branch names, tags, and paths",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for glob syntax used in branch names, tags, and paths"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "id",
"name": "Id",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for duplication and naming convention of job/step IDs",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for duplication and naming convention of job/step IDs"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "if-cond",
"name": "IfCond",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for if: conditions which are always true/false",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for if: conditions which are always true/false"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "job-needs",
"name": "JobNeeds",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for job IDs in \"needs:\". Undefined IDs and cyclic dependencies are checked",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for job IDs in \"needs:\". Undefined IDs and cyclic dependencies are checked"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "matrix",
"name": "Matrix",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for matrix combinations in \"matrix:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for matrix combinations in \"matrix:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "permissions",
"name": "Permissions",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for permissions configuration in \"permissions:\". Permission names and permission scopes are checked",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for permissions configuration in \"permissions:\". Permission names and permission scopes are checked"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "runner-label",
"name": "RunnerLabel",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for GitHub-hosted and preset self-hosted runner labels in \"runs-on:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for GitHub-hosted and preset self-hosted runner labels in \"runs-on:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "shell-name",
"name": "ShellName",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for shell names used for scripts in \"run:\"",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for shell names used for scripts in \"run:\""
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "syntax-check",
"name": "SyntaxCheck",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for GitHub Actions workflow syntax",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for GitHub Actions workflow syntax"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
{
"id": "workflow-call",
"name": "WorkflowCall",
"defaultConfiguration": {
"level": "error"
},
"properties": {
"description": "Checks for reusable workflow calls. Inputs and outputs of called reusable workflow are checked",
"queryURI": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
},
"fullDescription": {
"text": "Checks for reusable workflow calls. Inputs and outputs of called reusable workflow are checked"
},
"helpUri": "https://github.com/rhysd/actionlint/blob/main/docs/checks.md"
}
]
}
},
"results": [
{
"ruleId": "syntax-check",
"message": {
"text": "unexpected key \"branch\" for \"push\" section. expected one of \"branches\", \"branches-ignore\", \"paths\", \"paths-ignore\", \"tags\", \"tags-ignore\", \"types\", \"workflows\""
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testdata/format/test.yaml",
"uriBaseId": "%SRCROOT%"
},
"region": {
"startLine": 3,
"startColumn": 5,
"endColumn": 11,
"snippet": {
"text": " branch: main\n ^~~~~~~"
}
}
}
}
]
},
{
"ruleId": "expression",
"message": {
"text": "property \"msg\" is not defined in object type {}"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testdata/format/test.yaml",
"uriBaseId": "%SRCROOT%"
},
"region": {
"startLine": 9,
"startColumn": 23,
"endColumn": 32,
"snippet": {
"text": " - run: echo ${{ matrix.msg }}\n ^~~~~~~~~~"
}
}
}
}
]
},
{
"ruleId": "syntax-check",
"message": {
"text": "this step is for running shell command since it contains at least one of \"run\", \"shell\" keys, but also contains \"with\" key which is used for running action"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testdata/format/test.yaml",
"uriBaseId": "%SRCROOT%"
},
"region": {
"startLine": 10,
"startColumn": 9,
"endColumn": 13,
"snippet": {
"text": " with:\n ^~~~~"
}
}
}
}
]
}
]
}
]
}