-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (63 loc) · 3.48 KB
/
Makefile
File metadata and controls
82 lines (63 loc) · 3.48 KB
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
.PHONY: no-silent-skips no-silent-skips-warn demo-all demo-all-warn demo-one ci-validate-all \
scan-sonarqube scan-snyk scan-all scan-gosec scan-trivy scan-secrets scan-secrets-root \
verify-llmsverifier-pin-parity verify-governance-cascade bluff-detector verify-foundation
no-silent-skips:
@bash scripts/no-silent-skips.sh
no-silent-skips-warn:
@NO_SILENT_SKIPS_WARN_ONLY=1 bash scripts/no-silent-skips.sh
demo-all:
@bash scripts/demo-all.sh
demo-all-warn:
@DEMO_ALL_WARN_ONLY=1 DEMO_ALLOW_TODO=1 bash scripts/demo-all.sh
demo-one:
@DEMO_MODULES="$(MOD)" bash scripts/demo-all.sh
ci-validate-all: no-silent-skips-warn demo-all-warn verify-foundation
@echo "ci-validate-all: all gates executed"
# ---------------------------------------------------------------------------
# Top-level scan convenience targets (P0-T08.7)
# These cd into helix_code/ and invoke the inner Makefile security targets.
# Usage: make scan-sonarqube (from root)
# ---------------------------------------------------------------------------
scan-sonarqube: ## Run SonarQube analysis (requires SONAR_TOKEN in helix_code/.env)
$(MAKE) -C helix_code security-scan-sonarqube
scan-snyk: ## Run Snyk vulnerability scan (requires SNYK_TOKEN in helix_code/.env)
$(MAKE) -C helix_code security-scan-snyk
scan-all: ## Run all HelixCode security scanners
$(MAKE) -C helix_code security-scan-all
scan-gosec: ## Run gosec on HelixCode
$(MAKE) -C helix_code security-scan-gosec
scan-trivy: ## Run trivy on HelixCode
$(MAKE) -C helix_code security-scan-trivy
scan-secrets: ## Run scan-secrets.sh credential scanner
$(MAKE) -C helix_code secrets-scan
# ---------------------------------------------------------------------------
# Phase-0 Foundation Gates (P0-15)
# Individual verification gates wired from scripts/
# Usage: make verify-foundation
# ---------------------------------------------------------------------------
verify-llmsverifier-pin-parity: ## Verify LLMsVerifier submodule pins are in parity
@bash scripts/verify-llmsverifier-pin-parity.sh
verify-governance-cascade: ## Verify governance cascade (CONST-042/043) across owned submodules
@bash scripts/verify-governance-cascade.sh
bluff-detector: ## Run bluff-detector (Phase 4 deliverable; stub-tolerant)
@if [ -x scripts/bluff-detector.sh ]; then \
bash scripts/bluff-detector.sh; \
else \
echo "bluff-detector.sh not yet implemented (Phase 4 deliverable); skipping"; \
fi
# scan-secrets-root: run the root-level credential scanner (scripts/scan-secrets.sh).
# Used by verify-foundation. Distinct from scan-secrets which runs the inner
# helix_code/scripts/scan-secrets.sh targeting only the Go app subdirectory.
scan-secrets-root: ## Run root scripts/scan-secrets.sh (whole-repo credential scan)
@bash scripts/scan-secrets.sh
# Composite Phase-0 foundation gate.
# Depends on: no-silent-skips-warn, scan-secrets-root, verify-llmsverifier-pin-parity,
# verify-governance-cascade, bluff-detector.
#
# NOTE: The historical P0-15 LLMsVerifier dual-pin divergence was RESOLVED in
# P1.5-WP2 (the duplicate transitive submodule was eliminated; the single
# canonical pin lives at submodules/llms_verifier). verify-llmsverifier-pin-parity.sh
# now passes (exit 0), so this composite no longer carries that known failure.
# bluff-detector is now a real gate (scripts/bluff-detector.sh), not a stub.
verify-foundation: no-silent-skips-warn scan-secrets-root verify-llmsverifier-pin-parity verify-governance-cascade bluff-detector
@echo "verify-foundation: all gates passed"