-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathboard.json
342 lines (342 loc) · 8.97 KB
/
board.json
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
332
333
334
335
336
337
338
339
340
341
342
{
"widgets": [
{
"id": "f79dc362-b563-4eac-a80a-a588aa8056bf",
"title": "Which GitHub repos are accessible to outside collaborators?",
"type": "table",
"config": {
"queries": [
{
"name": "query 1",
"query": "FIND github_repo AS repo\nTHAT ALLOWS AS perms\n github_user WITH role=\"OUTSIDE\" AS user\nRETURN\n user.displayName,\n repo.displayName,\n perms.adminPermission,\n perms.maintainPermission,\n perms.pullPermission,\n perms.pushPermission,\n perms.triagePermission\n"
}
]
}
},
{
"id": "678ee1cb-050a-4ba0-bb5c-be9714d7a6f4",
"title": "Which GitHub repos are accessible to outside collaborators?",
"type": "graph",
"config": {
"queries": [
{
"name": "query1",
"query": "FIND github_repo AS repo\nTHAT ALLOWS AS perms\n github_user WITH role=\"OUTSIDE\" AS user\nRETURN\n tree"
}
]
}
},
{
"id": "7191dec5-e9e1-4c7b-abdb-efb0f3eeaef4",
"title": "What GitHub Apps are installed in my Organization with administration write permissions?",
"type": "table",
"config": {
"queries": [
{
"name": "query 1",
"query": "FIND github_app WITH permissions.administration='write'"
}
]
}
},
{
"id": "9390fcba-2bf3-4428-b06d-f0e7ff844d32",
"title": "Users that opened PRs during the last 30 days",
"type": "table",
"config": {
"queries": [
{
"name": "query 1",
"query": "find User as u that OPENED PR\n with _createdOn > date.now - 30days\nreturn u.displayName, PR.displayName, PR.name"
}
]
}
},
{
"id": "c74f5a92-5c69-48d9-bf54-d19bcc71eb3b",
"title": "Users that manage a team that are allowed access to a repo",
"type": "graph",
"config": {
"queries": [
{
"name": "query1",
"query": "Find User that MANAGES github_team that allows github_repo return tree"
}
]
}
},
{
"id": "c1c0fbe2-b343-46f6-bf6e-97087b3c4987",
"title": "GitHub users that approved a merged pull request",
"type": "graph",
"config": {
"queries": [
{
"name": "query 1",
"query": "find github_user that approved github_pullrequest with merged=true return tree"
}
]
}
},
{
"id": "f784c4e3-016a-4902-9fe7-835257b2271b",
"title": "GitHub users that reviewed a merged pull request",
"type": "graph",
"config": {
"queries": [
{
"name": "query1",
"query": "find github_user that reviewed github_pullrequest with merged=true return tree"
}
]
}
},
{
"id": "f63c8ebb-5dc8-4441-815a-e38fc4b791fc",
"title": "GitHub repos with issues",
"type": "graph",
"config": {
"queries": [
{
"name": "query 1",
"query": "find github_repo that has github_issue return tree"
}
]
}
},
{
"id": "d4bd2df1-f0d3-4dd8-bb82-b3e3f8fc7216",
"title": "Medium or greater findings merged by developers with uncompleted security training",
"type": "table",
"config": {
"queries": [
{
"name": "query 1",
"query": "Find Finding with numericSeverity > 5\n that has CodeRepo\n that has PR with merged = true\n that opened User\n that is Person\n that is knowbe4_user\n that assigned as task Training\n where task.completedOn = undefined"
}
]
}
},
{
"id": "e935407f-e6f6-40f0-8db1-79700e56c01b",
"title": "Which developers have not completed security awareness training and have code merged in the last year?",
"type": "table",
"config": {
"queries": [
{
"name": "query 1",
"query": "Find CodeRepo\n that has PR with merged = true\n and updatedOn > date.now - 1 year\n that opened User\n that is Person\n that is knowbe4_user\n that assigned as task Training\n where task.completedOn = undefined"
}
]
}
},
{
"id": "2e55fcfa-3793-4b89-82ef-c1d719aa4872",
"title": "Public Code Repos",
"type": "table",
"config": {
"queries": [
{
"name": "query1",
"query": "Find CodeRepo with public=true"
}
]
}
},
{
"id": "9c91dcd3-946a-44b3-a0b9-59e1d81b8c34",
"title": "Outside Collaborators and their Repos",
"type": "table",
"config": {
"queries": [
{
"name": "query1",
"query": "find github_repo as Repo\nthat ALLOWS github_user with role = ('OUTSIDE' or 'EXTERNAL') as User\nRETURN User.displayName as \"Name\", User.login as \"Login\", Repo.displayName as \"Repo\"\nORDER BY User.displayName ASC"
}
]
}
},
{
"id": "5e97998e-667a-40fa-b532-591dde7168b2",
"title": "Total Outside Collaborators",
"type": "number",
"config": {
"queries": [
{
"name": "query1",
"query": "find github_user with role = ('OUTSIDE' or 'EXTERNAL')\nreturn count(github_user) as value"
}
]
}
},
{
"id": "5a80606c-fb22-4f16-af98-5975c51555e6",
"title": "Repos with Outside Collaborators",
"type": "table",
"config": {
"queries": [
{
"name": "query1",
"query": "find Unique github_repo as Repo\nthat ALLOWS github_user with role = ('OUTSIDE' or 'EXTERNAL') as User\nRETURN Repo.name as \"Repo\"\nORDER BY Repo.name ASC"
}
]
}
},
{
"id": "62c626aa-b258-4488-a41b-2892a269d909",
"title": "GitHub users with admin permissions to repos",
"type": "table",
"config": {
"queries": [
{
"name": "query1",
"query": "Find github_user as u that allows as a github_repo as r where a.adminPermission = true \nreturn u.displayName, r.displayName, r.public, r.securityPolicyEnabled"
}
]
}
}
],
"layouts": {
"sm": [],
"xs": [],
"lg": [
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 0,
"i": "f79dc362-b563-4eac-a80a-a588aa8056bf"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 0,
"i": "678ee1cb-050a-4ba0-bb5c-be9714d7a6f4"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 2,
"i": "7191dec5-e9e1-4c7b-abdb-efb0f3eeaef4"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 2,
"i": "9390fcba-2bf3-4428-b06d-f0e7ff844d32"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 4,
"i": "c74f5a92-5c69-48d9-bf54-d19bcc71eb3b"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 6,
"i": "c1c0fbe2-b343-46f6-bf6e-97087b3c4987"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 6,
"i": "f784c4e3-016a-4902-9fe7-835257b2271b"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 4,
"i": "f63c8ebb-5dc8-4441-815a-e38fc4b791fc"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 8,
"i": "d4bd2df1-f0d3-4dd8-bb82-b3e3f8fc7216"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 8,
"i": "e935407f-e6f6-40f0-8db1-79700e56c01b"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 10,
"i": "2e55fcfa-3793-4b89-82ef-c1d719aa4872"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 10,
"i": "9c91dcd3-946a-44b3-a0b9-59e1d81b8c34"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 6,
"y": 12,
"i": "5e97998e-667a-40fa-b532-591dde7168b2"
},
{
"static": false,
"w": 6,
"moved": false,
"h": 2,
"x": 0,
"y": 12,
"i": "5a80606c-fb22-4f16-af98-5975c51555e6"
},
{
"static": false,
"w": 12,
"moved": false,
"h": 2,
"x": 0,
"y": 14,
"i": "62c626aa-b258-4488-a41b-2892a269d909"
}
],
"xl": [],
"md": []
}
}