-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (47 loc) · 1.91 KB
/
Copy pathMakefile
File metadata and controls
68 lines (47 loc) · 1.91 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
.DEFAULT_GOAL := help
SHELL := /bin/bash
# Load .env if present so SCAN_TARGET_DIR / DAST_TARGET_URL etc. are available.
ifneq (,$(wildcard .env))
include .env
export
endif
.PHONY: help install dev build scan scan-sast scan-sca scan-iac scan-dast lint format test integration e2e typecheck clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}'
install: ## Install workspace dependencies
pnpm install
dev: ## Start the dashboard (Vite dev server)
pnpm --filter @devsec/web dev
build: ## Build all packages
pnpm -r build
scan: ## Run all scanners and write the unified report
pnpm --filter @devsec/cli scan
scan-sast: ## Run SAST only (Semgrep)
pnpm --filter @devsec/cli scan -- --only sast
scan-sca: ## Run SCA only (Trivy fs)
pnpm --filter @devsec/cli scan -- --only sca
scan-iac: ## Run IaC only (Checkov)
pnpm --filter @devsec/cli scan -- --only iac
scan-dast: ## Run DAST only (OWASP ZAP baseline)
pnpm --filter @devsec/cli scan -- --only dast
scan-supply: ## Run supply-chain analysis only (OSV-Scanner)
pnpm --filter @devsec/cli scan -- --only supply
scan-socket: ## Run supply-chain risk only (local heuristics; Socket.dev with SOCKET_API_KEY)
pnpm --filter @devsec/cli scan -- --only socket
scan-image: ## Scan a container image (set SCAN_IMAGE_REF or IMAGE=...)
pnpm --filter @devsec/cli scan -- --only image --image $(or $(IMAGE),$(SCAN_IMAGE_REF))
lint: ## Lint and check formatting
pnpm lint
format: ## Auto-format the codebase
pnpm format
test: ## Run the unit test suite
pnpm test
integration: ## Run real-scanner integration tests (needs Docker)
pnpm test:integration
e2e: ## Run the Playwright browser tests
pnpm test:e2e
typecheck: ## Type-check all packages
pnpm typecheck
clean: ## Remove build output and caches
rm -rf packages/*/dist packages/web/dist coverage **/*.tsbuildinfo