S35: hook lint-secret-logs into make ci
- SHA
baa7e442730dd45e0011dcec5cac8fa3988c8201- Parents
-
a894fbb - Tree
2380be2
baa7e44
baa7e442730dd45e0011dcec5cac8fa3988c8201a894fbb
2380be2| Status | File | + | - |
|---|---|---|---|
| M |
Makefile
|
5 | 2 |
Makefilemodified@@ -2,7 +2,7 @@ | ||
| 2 | 2 | # Targets mirror what CI runs. The Makefile is the source of truth. |
| 3 | 3 | |
| 4 | 4 | .DEFAULT_GOAL := help |
| 5 | -.PHONY: help dev build test test-race lint lint-policy fmt tidy clean ci assets install-tools version | |
| 5 | +.PHONY: help dev build test test-race lint lint-policy lint-markdown lint-secret-logs fmt tidy clean ci assets install-tools version | |
| 6 | 6 | |
| 7 | 7 | # Build metadata embedded into the binary via -ldflags. |
| 8 | 8 | VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev) |
@@ -70,7 +70,7 @@ assets: ## Copy Primer CSS into internal/web/static/ for embedding. | ||
| 70 | 70 | echo "warn: .refs/primer-css/dist not found; run 'git clone https://github.com/primer/css .refs/primer-css' first"; \ |
| 71 | 71 | fi |
| 72 | 72 | |
| 73 | -ci: lint lint-policy lint-markdown test build ## Full CI pipeline (matches .github/workflows/ci.yml). | |
| 73 | +ci: lint lint-policy lint-markdown lint-secret-logs test build ## Full CI pipeline (matches .github/workflows/ci.yml). | |
| 74 | 74 | @echo "ci: ok" |
| 75 | 75 | |
| 76 | 76 | lint-policy: ## Enforce policy-package boundary (no inline auth checks in handlers/git/cmd). |
@@ -79,6 +79,9 @@ lint-policy: ## Enforce policy-package boundary (no inline auth checks in handle | ||
| 79 | 79 | lint-markdown: ## Enforce markdown-package boundary (no goldmark/bluemonday outside internal/markdown). |
| 80 | 80 | @scripts/lint-markdown-boundary.sh |
| 81 | 81 | |
| 82 | +lint-secret-logs: ## Fail when source emits log lines containing token-prefix patterns. | |
| 83 | + @scripts/lint-secret-logs.sh | |
| 84 | + | |
| 82 | 85 | install-tools: ## Install development tools via 'go install'. |
| 83 | 86 | go install mvdan.cc/gofumpt@latest |
| 84 | 87 | go install golang.org/x/tools/cmd/goimports@latest |