gitabu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +33 -0
  4. data/CHANGELOG.md +3 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +65 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +42 -0
  9. data/Rakefile +12 -0
  10. data/gitabu.gemspec +41 -0
  11. data/lib/gitabu/api/v3/actions.rb +3724 -0
  12. data/lib/gitabu/api/v3/activity.rb +835 -0
  13. data/lib/gitabu/api/v3/apps.rb +961 -0
  14. data/lib/gitabu/api/v3/billing.rb +217 -0
  15. data/lib/gitabu/api/v3/branches.rb +1098 -0
  16. data/lib/gitabu/api/v3/checks.rb +384 -0
  17. data/lib/gitabu/api/v3/code_scanning.rb +315 -0
  18. data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
  19. data/lib/gitabu/api/v3/codespaces.rb +650 -0
  20. data/lib/gitabu/api/v3/collaborators.rb +341 -0
  21. data/lib/gitabu/api/v3/commits.rb +428 -0
  22. data/lib/gitabu/api/v3/dependabot.rb +419 -0
  23. data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
  24. data/lib/gitabu/api/v3/deployments.rb +356 -0
  25. data/lib/gitabu/api/v3/emojis.rb +67 -0
  26. data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
  27. data/lib/gitabu/api/v3/gists.rb +552 -0
  28. data/lib/gitabu/api/v3/git.rb +409 -0
  29. data/lib/gitabu/api/v3/gitignore.rb +92 -0
  30. data/lib/gitabu/api/v3/interactions.rb +275 -0
  31. data/lib/gitabu/api/v3/issues.rb +1119 -0
  32. data/lib/gitabu/api/v3/licenses.rb +118 -0
  33. data/lib/gitabu/api/v3/markdown.rb +94 -0
  34. data/lib/gitabu/api/v3/meta.rb +142 -0
  35. data/lib/gitabu/api/v3/metrics.rb +302 -0
  36. data/lib/gitabu/api/v3/migrations.rb +631 -0
  37. data/lib/gitabu/api/v3/orgs.rb +1291 -0
  38. data/lib/gitabu/api/v3/packages.rb +686 -0
  39. data/lib/gitabu/api/v3/pages.rb +282 -0
  40. data/lib/gitabu/api/v3/projects.rb +693 -0
  41. data/lib/gitabu/api/v3/pulls.rb +816 -0
  42. data/lib/gitabu/api/v3/rate_limit.rb +67 -0
  43. data/lib/gitabu/api/v3/reactions.rb +734 -0
  44. data/lib/gitabu/api/v3/releases.rb +411 -0
  45. data/lib/gitabu/api/v3/repos.rb +1136 -0
  46. data/lib/gitabu/api/v3/scim.rb +214 -0
  47. data/lib/gitabu/api/v3/search.rb +217 -0
  48. data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
  49. data/lib/gitabu/api/v3/teams.rb +1963 -0
  50. data/lib/gitabu/api/v3/users.rb +851 -0
  51. data/lib/gitabu/api/v3/webhooks.rb +379 -0
  52. data/lib/gitabu/builder.rb +37 -0
  53. data/lib/gitabu/client.rb +8 -0
  54. data/lib/gitabu/generator.rb +75 -0
  55. data/lib/gitabu/http_client.rb +96 -0
  56. data/lib/gitabu/items.rb +110 -0
  57. data/lib/gitabu/public/api/v3/actions.json +5779 -0
  58. data/lib/gitabu/public/api/v3/activity.json +1248 -0
  59. data/lib/gitabu/public/api/v3/apps.json +1174 -0
  60. data/lib/gitabu/public/api/v3/billing.json +183 -0
  61. data/lib/gitabu/public/api/v3/branches.json +1886 -0
  62. data/lib/gitabu/public/api/v3/checks.json +856 -0
  63. data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
  64. data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
  65. data/lib/gitabu/public/api/v3/codespaces.json +884 -0
  66. data/lib/gitabu/public/api/v3/collaborators.json +464 -0
  67. data/lib/gitabu/public/api/v3/commits.json +830 -0
  68. data/lib/gitabu/public/api/v3/dependabot.json +596 -0
  69. data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
  70. data/lib/gitabu/public/api/v3/deployments.json +698 -0
  71. data/lib/gitabu/public/api/v3/emojis.json +18 -0
  72. data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
  73. data/lib/gitabu/public/api/v3/gists.json +689 -0
  74. data/lib/gitabu/public/api/v3/git.json +735 -0
  75. data/lib/gitabu/public/api/v3/gitignore.json +41 -0
  76. data/lib/gitabu/public/api/v3/interactions.json +265 -0
  77. data/lib/gitabu/public/api/v3/issues.json +2359 -0
  78. data/lib/gitabu/public/api/v3/licenses.json +100 -0
  79. data/lib/gitabu/public/api/v3/markdown.json +59 -0
  80. data/lib/gitabu/public/api/v3/meta.json +69 -0
  81. data/lib/gitabu/public/api/v3/metrics.json +342 -0
  82. data/lib/gitabu/public/api/v3/migrations.json +960 -0
  83. data/lib/gitabu/public/api/v3/orgs.json +1989 -0
  84. data/lib/gitabu/public/api/v3/packages.json +1078 -0
  85. data/lib/gitabu/public/api/v3/pages.json +373 -0
  86. data/lib/gitabu/public/api/v3/projects.json +966 -0
  87. data/lib/gitabu/public/api/v3/pulls.json +1768 -0
  88. data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
  89. data/lib/gitabu/public/api/v3/reactions.json +1425 -0
  90. data/lib/gitabu/public/api/v3/releases.json +753 -0
  91. data/lib/gitabu/public/api/v3/repos.json +2314 -0
  92. data/lib/gitabu/public/api/v3/scim.json +412 -0
  93. data/lib/gitabu/public/api/v3/search.json +408 -0
  94. data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
  95. data/lib/gitabu/public/api/v3/teams.json +3126 -0
  96. data/lib/gitabu/public/api/v3/users.json +956 -0
  97. data/lib/gitabu/public/api/v3/webhooks.json +667 -0
  98. data/lib/gitabu/run.rb +237 -0
  99. data/lib/gitabu/scraper.rb +86 -0
  100. data/lib/gitabu/templates/template.rb.erb +70 -0
  101. data/lib/gitabu/version.rb +6 -0
  102. data/lib/gitabu.rb +57 -0
  103. data/sig/gitabu.rbs +4 -0
  104. metadata +177 -0
@@ -0,0 +1,666 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List code scanning alerts for an organization",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/code-scanning/alerts",
7
+ "field_0": {
8
+ "field_type": "header",
9
+ "fields": {
10
+ "name": "accept",
11
+ "type": "string",
12
+ "in": "header",
13
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
14
+ }
15
+ },
16
+ "field_1": {
17
+ "field_type": "path",
18
+ "fields": {
19
+ "name": "org",
20
+ "type": "string",
21
+ "in": "path",
22
+ "description": ""
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "before",
29
+ "type": "string",
30
+ "in": "query",
31
+ "description": "A cursor, as given in the Link header. If specified, the query only searches for events before this cursor."
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "after",
38
+ "type": "string",
39
+ "in": "query",
40
+ "description": "A cursor, as given in the Link header. If specified, the query only searches for events after this cursor."
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "page",
47
+ "type": "integer",
48
+ "in": "query",
49
+ "description": "Page number of the results to fetch.Default: 1"
50
+ }
51
+ },
52
+ "field_5": {
53
+ "field_type": "query",
54
+ "fields": {
55
+ "name": "per_page",
56
+ "type": "integer",
57
+ "in": "query",
58
+ "description": "Results per page (max 100)Default: 30"
59
+ }
60
+ },
61
+ "field_6": {
62
+ "field_type": "query",
63
+ "fields": {
64
+ "name": "direction",
65
+ "type": "string",
66
+ "in": "query",
67
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
68
+ }
69
+ },
70
+ "field_7": {
71
+ "field_type": "query",
72
+ "fields": {
73
+ "name": "state",
74
+ "type": "string",
75
+ "in": "query",
76
+ "description": "Set to open, closed, fixed, or dismissed` to list code scanning alerts in a specific state."
77
+ }
78
+ },
79
+ "field_8": {
80
+ "field_type": "query",
81
+ "fields": {
82
+ "name": "sort",
83
+ "type": "string",
84
+ "in": "query",
85
+ "description": "Can be one of created, updated.Default: created"
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "namespace_description": "List code scanning alerts for a repository",
91
+ "method": "get",
92
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/alerts",
93
+ "field_0": {
94
+ "field_type": "header",
95
+ "fields": {
96
+ "name": "accept",
97
+ "type": "string",
98
+ "in": "header",
99
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
100
+ }
101
+ },
102
+ "field_1": {
103
+ "field_type": "path",
104
+ "fields": {
105
+ "name": "owner",
106
+ "type": "string",
107
+ "in": "path",
108
+ "description": ""
109
+ }
110
+ },
111
+ "field_2": {
112
+ "field_type": "path",
113
+ "fields": {
114
+ "name": "repo",
115
+ "type": "string",
116
+ "in": "path",
117
+ "description": ""
118
+ }
119
+ },
120
+ "field_3": {
121
+ "field_type": "query",
122
+ "fields": {
123
+ "name": "tool_name",
124
+ "type": "string",
125
+ "in": "query",
126
+ "description": "The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both."
127
+ }
128
+ },
129
+ "field_4": {
130
+ "field_type": "query",
131
+ "fields": {
132
+ "name": "tool_guid",
133
+ "type": "stringnull",
134
+ "in": "query",
135
+ "description": "The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both."
136
+ }
137
+ },
138
+ "field_5": {
139
+ "field_type": "query",
140
+ "fields": {
141
+ "name": "page",
142
+ "type": "integer",
143
+ "in": "query",
144
+ "description": "Page number of the results to fetch.Default: 1"
145
+ }
146
+ },
147
+ "field_6": {
148
+ "field_type": "query",
149
+ "fields": {
150
+ "name": "per_page",
151
+ "type": "integer",
152
+ "in": "query",
153
+ "description": "Results per page (max 100)Default: 30"
154
+ }
155
+ },
156
+ "field_7": {
157
+ "field_type": "query",
158
+ "fields": {
159
+ "name": "ref",
160
+ "type": "string",
161
+ "in": "query",
162
+ "description": "The Git reference for the results you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge."
163
+ }
164
+ },
165
+ "field_8": {
166
+ "field_type": "query",
167
+ "fields": {
168
+ "name": "direction",
169
+ "type": "string",
170
+ "in": "query",
171
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
172
+ }
173
+ },
174
+ "field_9": {
175
+ "field_type": "query",
176
+ "fields": {
177
+ "name": "sort",
178
+ "type": "string",
179
+ "in": "query",
180
+ "description": "Can be one of created, updated, number.Default: number"
181
+ }
182
+ },
183
+ "field_10": {
184
+ "field_type": "query",
185
+ "fields": {
186
+ "name": "state",
187
+ "type": "string",
188
+ "in": "query",
189
+ "description": "Set to open, closed, fixed, or dismissed` to list code scanning alerts in a specific state."
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "namespace_description": "Get a code scanning alert",
195
+ "method": "get",
196
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
197
+ "field_0": {
198
+ "field_type": "header",
199
+ "fields": {
200
+ "name": "accept",
201
+ "type": "string",
202
+ "in": "header",
203
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
204
+ }
205
+ },
206
+ "field_1": {
207
+ "field_type": "path",
208
+ "fields": {
209
+ "name": "owner",
210
+ "type": "string",
211
+ "in": "path",
212
+ "description": ""
213
+ }
214
+ },
215
+ "field_2": {
216
+ "field_type": "path",
217
+ "fields": {
218
+ "name": "repo",
219
+ "type": "string",
220
+ "in": "path",
221
+ "description": ""
222
+ }
223
+ },
224
+ "field_3": {
225
+ "field_type": "path",
226
+ "fields": {
227
+ "name": "alert_number",
228
+ "type": "integer",
229
+ "in": "path",
230
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation."
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "namespace_description": "Update a code scanning alert",
236
+ "method": "patch",
237
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
238
+ "field_0": {
239
+ "field_type": "header",
240
+ "fields": {
241
+ "name": "accept",
242
+ "type": "string",
243
+ "in": "header",
244
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
245
+ }
246
+ },
247
+ "field_1": {
248
+ "field_type": "path",
249
+ "fields": {
250
+ "name": "owner",
251
+ "type": "string",
252
+ "in": "path",
253
+ "description": ""
254
+ }
255
+ },
256
+ "field_2": {
257
+ "field_type": "path",
258
+ "fields": {
259
+ "name": "repo",
260
+ "type": "string",
261
+ "in": "path",
262
+ "description": ""
263
+ }
264
+ },
265
+ "field_3": {
266
+ "field_type": "path",
267
+ "fields": {
268
+ "name": "alert_number",
269
+ "type": "integer",
270
+ "in": "path",
271
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation."
272
+ }
273
+ },
274
+ "field_4": {
275
+ "field_type": "body",
276
+ "fields": {
277
+ "name": "state",
278
+ "type": "string",
279
+ "in": "body",
280
+ "description": "Required. Sets the state of the code scanning alert. Can be one of open or dismissed. You must provide dismissed_reason when you set the state to dismissed."
281
+ }
282
+ },
283
+ "field_5": {
284
+ "field_type": "body",
285
+ "fields": {
286
+ "name": "dismissed_reason",
287
+ "type": "string or null",
288
+ "in": "body",
289
+ "description": "Required when the state is dismissed. The reason for dismissing or closing the alert. Can be one of: false positive, won't fix, and used in tests."
290
+ }
291
+ }
292
+ },
293
+ {
294
+ "namespace_description": "List instances of a code scanning alert",
295
+ "method": "get",
296
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
297
+ "field_0": {
298
+ "field_type": "header",
299
+ "fields": {
300
+ "name": "accept",
301
+ "type": "string",
302
+ "in": "header",
303
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
304
+ }
305
+ },
306
+ "field_1": {
307
+ "field_type": "path",
308
+ "fields": {
309
+ "name": "owner",
310
+ "type": "string",
311
+ "in": "path",
312
+ "description": ""
313
+ }
314
+ },
315
+ "field_2": {
316
+ "field_type": "path",
317
+ "fields": {
318
+ "name": "repo",
319
+ "type": "string",
320
+ "in": "path",
321
+ "description": ""
322
+ }
323
+ },
324
+ "field_3": {
325
+ "field_type": "path",
326
+ "fields": {
327
+ "name": "alert_number",
328
+ "type": "integer",
329
+ "in": "path",
330
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation."
331
+ }
332
+ },
333
+ "field_4": {
334
+ "field_type": "query",
335
+ "fields": {
336
+ "name": "page",
337
+ "type": "integer",
338
+ "in": "query",
339
+ "description": "Page number of the results to fetch.Default: 1"
340
+ }
341
+ },
342
+ "field_5": {
343
+ "field_type": "query",
344
+ "fields": {
345
+ "name": "per_page",
346
+ "type": "integer",
347
+ "in": "query",
348
+ "description": "Results per page (max 100)Default: 30"
349
+ }
350
+ },
351
+ "field_6": {
352
+ "field_type": "query",
353
+ "fields": {
354
+ "name": "ref",
355
+ "type": "string",
356
+ "in": "query",
357
+ "description": "The Git reference for the results you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge."
358
+ }
359
+ }
360
+ },
361
+ {
362
+ "namespace_description": "List code scanning analyses for a repository",
363
+ "method": "get",
364
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/analyses",
365
+ "field_0": {
366
+ "field_type": "header",
367
+ "fields": {
368
+ "name": "accept",
369
+ "type": "string",
370
+ "in": "header",
371
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
372
+ }
373
+ },
374
+ "field_1": {
375
+ "field_type": "path",
376
+ "fields": {
377
+ "name": "owner",
378
+ "type": "string",
379
+ "in": "path",
380
+ "description": ""
381
+ }
382
+ },
383
+ "field_2": {
384
+ "field_type": "path",
385
+ "fields": {
386
+ "name": "repo",
387
+ "type": "string",
388
+ "in": "path",
389
+ "description": ""
390
+ }
391
+ },
392
+ "field_3": {
393
+ "field_type": "query",
394
+ "fields": {
395
+ "name": "tool_name",
396
+ "type": "string",
397
+ "in": "query",
398
+ "description": "The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both."
399
+ }
400
+ },
401
+ "field_4": {
402
+ "field_type": "query",
403
+ "fields": {
404
+ "name": "tool_guid",
405
+ "type": "stringnull",
406
+ "in": "query",
407
+ "description": "The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both."
408
+ }
409
+ },
410
+ "field_5": {
411
+ "field_type": "query",
412
+ "fields": {
413
+ "name": "page",
414
+ "type": "integer",
415
+ "in": "query",
416
+ "description": "Page number of the results to fetch.Default: 1"
417
+ }
418
+ },
419
+ "field_6": {
420
+ "field_type": "query",
421
+ "fields": {
422
+ "name": "per_page",
423
+ "type": "integer",
424
+ "in": "query",
425
+ "description": "Results per page (max 100)Default: 30"
426
+ }
427
+ },
428
+ "field_7": {
429
+ "field_type": "query",
430
+ "fields": {
431
+ "name": "ref",
432
+ "type": "string",
433
+ "in": "query",
434
+ "description": "The Git reference for the analyses you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge."
435
+ }
436
+ },
437
+ "field_8": {
438
+ "field_type": "query",
439
+ "fields": {
440
+ "name": "sarif_id",
441
+ "type": "string",
442
+ "in": "query",
443
+ "description": "Filter analyses belonging to the same SARIF upload."
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "namespace_description": "Get a code scanning analysis for a repository",
449
+ "method": "get",
450
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}",
451
+ "field_0": {
452
+ "field_type": "header",
453
+ "fields": {
454
+ "name": "accept",
455
+ "type": "string",
456
+ "in": "header",
457
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
458
+ }
459
+ },
460
+ "field_1": {
461
+ "field_type": "path",
462
+ "fields": {
463
+ "name": "owner",
464
+ "type": "string",
465
+ "in": "path",
466
+ "description": ""
467
+ }
468
+ },
469
+ "field_2": {
470
+ "field_type": "path",
471
+ "fields": {
472
+ "name": "repo",
473
+ "type": "string",
474
+ "in": "path",
475
+ "description": ""
476
+ }
477
+ },
478
+ "field_3": {
479
+ "field_type": "path",
480
+ "fields": {
481
+ "name": "analysis_id",
482
+ "type": "integer",
483
+ "in": "path",
484
+ "description": "The ID of the analysis, as returned from the GET /repos/{owner}/{repo}/code-scanning/analyses operation."
485
+ }
486
+ }
487
+ },
488
+ {
489
+ "namespace_description": "Delete a code scanning analysis from a repository",
490
+ "method": "delete",
491
+ "endpoint": "\"deletable\": true\n",
492
+ "field_0": {
493
+ "field_type": "header",
494
+ "fields": {
495
+ "name": "accept",
496
+ "type": "string",
497
+ "in": "header",
498
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
499
+ }
500
+ },
501
+ "field_1": {
502
+ "field_type": "path",
503
+ "fields": {
504
+ "name": "owner",
505
+ "type": "string",
506
+ "in": "path",
507
+ "description": ""
508
+ }
509
+ },
510
+ "field_2": {
511
+ "field_type": "path",
512
+ "fields": {
513
+ "name": "repo",
514
+ "type": "string",
515
+ "in": "path",
516
+ "description": ""
517
+ }
518
+ },
519
+ "field_3": {
520
+ "field_type": "path",
521
+ "fields": {
522
+ "name": "analysis_id",
523
+ "type": "integer",
524
+ "in": "path",
525
+ "description": "The ID of the analysis, as returned from the GET /repos/{owner}/{repo}/code-scanning/analyses operation."
526
+ }
527
+ },
528
+ "field_4": {
529
+ "field_type": "query",
530
+ "fields": {
531
+ "name": "confirm_delete",
532
+ "type": "stringnull",
533
+ "in": "query",
534
+ "description": "Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to true, you'll get a 400 response with the message: Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete."
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "namespace_description": "Upload an analysis as SARIF data",
540
+ "method": "post",
541
+ "endpoint": "gzip -c analysis-data.sarif | base64 -w0\n",
542
+ "field_0": {
543
+ "field_type": "header",
544
+ "fields": {
545
+ "name": "accept",
546
+ "type": "string",
547
+ "in": "header",
548
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
549
+ }
550
+ },
551
+ "field_1": {
552
+ "field_type": "path",
553
+ "fields": {
554
+ "name": "owner",
555
+ "type": "string",
556
+ "in": "path",
557
+ "description": ""
558
+ }
559
+ },
560
+ "field_2": {
561
+ "field_type": "path",
562
+ "fields": {
563
+ "name": "repo",
564
+ "type": "string",
565
+ "in": "path",
566
+ "description": ""
567
+ }
568
+ },
569
+ "field_3": {
570
+ "field_type": "body",
571
+ "fields": {
572
+ "name": "commit_sha",
573
+ "type": "string",
574
+ "in": "body",
575
+ "description": "Required. The SHA of the commit to which the analysis you are uploading relates."
576
+ }
577
+ },
578
+ "field_4": {
579
+ "field_type": "body",
580
+ "fields": {
581
+ "name": "ref",
582
+ "type": "string",
583
+ "in": "body",
584
+ "description": "Required. The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head."
585
+ }
586
+ },
587
+ "field_5": {
588
+ "field_type": "body",
589
+ "fields": {
590
+ "name": "sarif",
591
+ "type": "string",
592
+ "in": "body",
593
+ "description": "Required. A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\""
594
+ }
595
+ },
596
+ "field_6": {
597
+ "field_type": "body",
598
+ "fields": {
599
+ "name": "checkout_uri",
600
+ "type": "string",
601
+ "in": "body",
602
+ "description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository."
603
+ }
604
+ },
605
+ "field_7": {
606
+ "field_type": "body",
607
+ "fields": {
608
+ "name": "started_at",
609
+ "type": "string",
610
+ "in": "body",
611
+ "description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
612
+ }
613
+ },
614
+ "field_8": {
615
+ "field_type": "body",
616
+ "fields": {
617
+ "name": "tool_name",
618
+ "type": "string",
619
+ "in": "body",
620
+ "description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts."
621
+ }
622
+ }
623
+ },
624
+ {
625
+ "namespace_description": "Get information about a SARIF upload",
626
+ "method": "get",
627
+ "endpoint": "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}",
628
+ "field_0": {
629
+ "field_type": "header",
630
+ "fields": {
631
+ "name": "accept",
632
+ "type": "string",
633
+ "in": "header",
634
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
635
+ }
636
+ },
637
+ "field_1": {
638
+ "field_type": "path",
639
+ "fields": {
640
+ "name": "owner",
641
+ "type": "string",
642
+ "in": "path",
643
+ "description": ""
644
+ }
645
+ },
646
+ "field_2": {
647
+ "field_type": "path",
648
+ "fields": {
649
+ "name": "repo",
650
+ "type": "string",
651
+ "in": "path",
652
+ "description": ""
653
+ }
654
+ },
655
+ "field_3": {
656
+ "field_type": "path",
657
+ "fields": {
658
+ "name": "sarif_id",
659
+ "type": "string",
660
+ "in": "path",
661
+ "description": "The SARIF ID obtained after uploading."
662
+ }
663
+ }
664
+ }
665
+ ]
666
+ }