Skip to content

Commit 44264a3

Browse files
d3vzer0ktstrader
andauthored
BED-8357 Add enterprise + multi-org collection support (#6)
* Added enterprise resources, nodes and edges * Split org and enterprise resource collection --------- Co-authored-by: Katie Strader <kstrader@specterops.io>
1 parent e42fdf3 commit 44264a3

68 files changed

Lines changed: 8932 additions & 3014 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

extension/schema.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,38 @@
66
"namespace": "GH"
77
},
88
"node_kinds": [
9+
{
10+
"name": "GH_Enterprise",
11+
"display_name": "GitHub Enterprise",
12+
"description": "A GitHub Enterprise account that contains organizations, enterprise teams, roles, and managed users",
13+
"is_display_kind": true,
14+
"icon": "globe",
15+
"color": "#6EA8FE"
16+
},
17+
{
18+
"name": "GH_EnterpriseTeam",
19+
"display_name": "GitHub Enterprise Team",
20+
"description": "A team managed at the GitHub Enterprise level and assignable across organizations",
21+
"is_display_kind": true,
22+
"icon": "users-between-lines",
23+
"color": "#9B8CFF"
24+
},
25+
{
26+
"name": "GH_EnterpriseRole",
27+
"display_name": "GitHub Enterprise Role",
28+
"description": "The role a user or team has at the GitHub Enterprise level",
29+
"is_display_kind": true,
30+
"icon": "user-tie",
31+
"color": "#B8D7FF"
32+
},
33+
{
34+
"name": "GH_EnterpriseManagedUser",
35+
"display_name": "GitHub Enterprise Managed User",
36+
"description": "A GitHub Enterprise managed user account linked to an enterprise identity provider",
37+
"is_display_kind": true,
38+
"icon": "user-lock",
39+
"color": "#7DD3FC"
40+
},
941
{
1042
"name": "GH_Organization",
1143
"display_name": "GitHub Organization",
@@ -150,6 +182,30 @@
150182
"icon": "lock-open",
151183
"color": "#E89B5C"
152184
},
185+
{
186+
"name": "GH_RunnerGroup",
187+
"display_name": "GitHub Runner Group",
188+
"description": "A GitHub self-hosted runner group that controls runner access and visibility",
189+
"is_display_kind": true,
190+
"icon": "server",
191+
"color": "#94A3B8"
192+
},
193+
{
194+
"name": "GH_OrgRunner",
195+
"display_name": "GitHub Org Runner",
196+
"description": "An organization-scoped GitHub self-hosted runner available to selected repositories or workflows",
197+
"is_display_kind": true,
198+
"icon": "microchip",
199+
"color": "#22C55E"
200+
},
201+
{
202+
"name": "GH_RepoRunner",
203+
"display_name": "GitHub Repo Runner",
204+
"description": "A repository-scoped GitHub self-hosted runner available to jobs in a single repository",
205+
"is_display_kind": true,
206+
"icon": "microchip",
207+
"color": "#38BDF8"
208+
},
153209
{
154210
"name": "GH_EnvironmentVariable",
155211
"display_name": "GitHub Environment Variable",

justfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
set dotenv-load := true
22

3-
collect +args:
3+
collect +args='github /tmp/output/raw/':
44
@echo "Collecting data"
5-
uv run src/main.py collect github {{args}}
5+
uv run src/main.py collect {{args}}
66

7-
preprocess +args:
8-
@echo "Collecting data"
9-
uv run src/main.py preprocess github {{args}}
7+
preprocess +args='github /tmp/output/raw/github':
8+
@echo "Preprocessing data"
9+
uv run openhound preprocess {{args}}
1010

11-
convert +args:
11+
convert +args='github /tmp/output/raw/github /tmp/output/graph/github':
1212
@echo "Converting data"
13-
uv run src/main.py convert github {{args}}
13+
uv run openhound convert {{args}}
1414

1515
sync:
1616
@echo "Syncing dependencies"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Github collector for OpenHound"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"cryptography>=46.0.6",
8+
"joserfc>=1.6.5",
99
"requests>=2.33.0",
1010
]
1111
authors = [
@@ -28,7 +28,7 @@ local_scheme = "no-local-version"
2828

2929
[dependency-groups]
3030
dev = [
31-
"openhound",
31+
"openhound==0.1.4",
3232
"pre-commit>=4.5.1",
3333
"pytest>=9.0.1",
3434
"ruff>=0.15.5",

0 commit comments

Comments
 (0)