feat(identity): confirm registration email atomically

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 09:12:15 +03:00
1 parent 8e7ce8d71c
commit fade4e76e4
75 files changed
+4188 -403

No files matched your search

+2 -7
View File
@@ -8,6 +8,7 @@ REPORTS := $(CURDIR)/reports
CACHE := $(CURDIR)/.cache
TRIVY ?= $(BIN)/trivy
GITLEAKS ?= $(BIN)/gitleaks
GITLEAKS_CONFIG ?= $(CURDIR)/gitleaks/gitleaks.toml
SEMGREP ?= $(BIN)/semgrep
GOVULNCHECK ?= $(BIN)/govulncheck
UV ?= uv
@@ -60,13 +61,7 @@ filesystem: | $(REPORTS) $(CACHE) ## Scan dependency manifests and infrastructur
secrets: | $(REPORTS) ## Scan current files and full Git history with redacted output.
@rm -f "$(REPORTS)/gitleaks-files.json" "$(REPORTS)/gitleaks-history.json" "$(REPORTS)/gitleaks-version.txt"
@test -d "$(ROOT)/.git" -o -f "$(ROOT)/.git" || { echo 'Secret history scanning requires a Git checkout.' >&2; exit 2; }
@test "$$(git -C "$(ROOT)" rev-parse --is-shallow-repository)" = false || { echo 'Fetch full Git history before scanning secrets.' >&2; exit 2; }
$(GITLEAKS) version > "$(REPORTS)/gitleaks-version.txt"
@cd "$(ROOT)"; status=0; \
$(GITLEAKS) dir --config security/gitleaks/gitleaks.toml --redact=100 --no-banner --ignore-gitleaks-allow --report-format json --report-path "$(REPORTS)/gitleaks-files.json" . || status=1; \
$(GITLEAKS) git --config security/gitleaks/gitleaks.toml --redact=100 --no-banner --ignore-gitleaks-allow --log-opts="--all" --report-format json --report-path "$(REPORTS)/gitleaks-history.json" . || status=1; \
exit "$$status"
$(PYTHON) "$(CURDIR)/scan_inputs.py" --root "$(ROOT)" --scanner "$(GITLEAKS)" --config "$(GITLEAKS_CONFIG)" --reports "$(REPORTS)"
go: | $(REPORTS) ## Scan reachable vulnerable Go symbols; preserve the native failing exit status.
@rm -f "$(REPORTS)/govulncheck.txt" "$(REPORTS)/govulncheck-version.txt"