File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ jobs:
152152 echo "Generated: $(date)" >> dependency-security-report.md
153153 echo "" >> dependency-security-report.md
154154 echo "## Scan Results" >> dependency-security-report.md
155- echo "- Go vulnerabilities: Checked with govulncheck and nancy " >> dependency-security-report.md
155+ echo "- Go vulnerabilities: Checked with govulncheck" >> dependency-security-report.md
156156 echo "- Rust vulnerabilities: Checked with cargo-audit" >> dependency-security-report.md
157157 echo "- JavaScript vulnerabilities: Checked with npm audit" >> dependency-security-report.md
158158 echo "- Python vulnerabilities: Checked with safety and bandit" >> dependency-security-report.md
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ jobs:
308308 - name : Setup tools
309309 run : |
310310 # Install security testing tools
311- go install github.com/securecodewarrior/nancy @latest
311+ go install golang.org/x/vuln/cmd/govulncheck @latest
312312 cargo install cargo-audit
313313 pip install bandit safety
314314
@@ -318,7 +318,7 @@ jobs:
318318 cargo audit
319319
320320 # Go vulnerability check
321- go list -json -deps ./... | nancy sleuth
321+ govulncheck ./...
322322
323323 # Python security scan (if applicable)
324324 find . -name "*.py" -exec bandit {} \; || true
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ permissions:
1313 pull-requests : write
1414 actions : read
1515
16+ defaults :
17+ run :
18+ shell : bash
19+
1620env :
1721 CARGO_TERM_COLOR : always
1822 RUST_BACKTRACE : 1
8690 uses : actions/checkout@v4
8791
8892 - name : Clear Rust caches
93+ shell : bash
8994 run : |
9095 rm -rf ~/.cargo/registry
9196 rm -rf ~/.cargo/git
@@ -373,6 +378,7 @@ jobs:
373378 - name : Install security testing tools
374379 run : |
375380 go install github.com/securecodewarrior/gosec/v2/cmd/gosec@latest
381+ go install golang.org/x/vuln/cmd/govulncheck@latest
376382 pip install bandit safety
377383
378384 - name : Run Go security scan
@@ -388,7 +394,7 @@ jobs:
388394
389395 - name : Run dependency vulnerability scan
390396 run : |
391- go list -json -deps ./... | nancy sleuth || true
397+ govulncheck ./... || true
392398 safety check || true
393399
394400 - name : Upload security scan results
You can’t perform that action at this time.
0 commit comments