Commit 4474285
committed
fix(audit): scope to GitHub-only and bundle CLI with esbuild
Narrow the posture audit to GitHub posture only. warden governs GitHub,
so multi-domain IaC auditing (aws/azure/k8s/docker/gcp/helm/gitlab/forgejo)
belongs to the separate blacklight app. The engine now wires only the
github CI lexicon (path-detected .github/workflows/*, github postSynthChecks).
Drop the 8 non-github lexicon dependencies; keep @intentius/chant and
@intentius/chant-lexicon-github.
Bundle the CLI with esbuild so chant's .ts source is transpiled and inlined
at build time. This fixes ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING when
running dist/cli.js under plain Node. chant packages export .ts by default,
which only worked under vitest's transpiler. Convert the engine's dynamic
chant imports to static top-level imports so esbuild inlines them.1 parent 3f731cc commit 4474285
4 files changed
Lines changed: 34 additions & 277 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 17 | + | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
| 21 | + | |
29 | 22 | | |
30 | 23 | | |
31 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 30 | | |
44 | 31 | | |
45 | 32 | | |
| |||
0 commit comments