File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,33 @@ test-acc-all: env-check ## Run all acceptance tests including optional ones
111111 ORY_SCHEMA_TESTS_ENABLED=true \
112112 ./scripts/run-acceptance-tests.sh -p 1 -v -timeout 30m ./...
113113
114+ # ==============================================================================
115+ # SECURITY SCANNING
116+ # ==============================================================================
117+
118+ .PHONY : sec
119+ sec : sec-vuln sec-gosec sec-gitleaks # # Run all security scans
120+
121+ .PHONY : sec-vuln
122+ sec-vuln : # # Run govulncheck for Go vulnerability scanning
123+ @command -v govulncheck > /dev/null 2>&1 || { echo " Installing govulncheck..." ; go install golang.org/x/vuln/cmd/govulncheck@latest; }
124+ govulncheck ./...
125+
126+ .PHONY : sec-gosec
127+ sec-gosec : # # Run gosec for Go security analysis
128+ @command -v gosec > /dev/null 2>&1 || { echo " Installing gosec..." ; go install github.com/securego/gosec/v2/cmd/gosec@latest; }
129+ gosec ./...
130+
131+ .PHONY : sec-gitleaks
132+ sec-gitleaks : # # Run gitleaks for secret detection
133+ @command -v gitleaks > /dev/null 2>&1 || { echo " gitleaks not found. Install: brew install gitleaks (macOS) or download from https://github.com/gitleaks/gitleaks/releases" ; exit 1; }
134+ gitleaks detect --source . --verbose
135+
136+ .PHONY : sec-trivy
137+ sec-trivy : build # # Run trivy vulnerability scan on built binary
138+ @command -v trivy > /dev/null 2>&1 || { echo " trivy not found. Install: brew install trivy (macOS) or see https://aquasecurity.github.io/trivy/" ; exit 1; }
139+ trivy fs --scanners vuln,secret,misconfig --severity CRITICAL,HIGH .
140+
114141# ==============================================================================
115142# ENVIRONMENT HELPERS
116143# ==============================================================================
You can’t perform that action at this time.
0 commit comments