Skip to content

Commit 11142f9

Browse files
Complete workflow fixes: Remove all nancy dependencies and add shell compatibility
Co-authored-by: morningstarxcdcode <205398826+morningstarxcdcode@users.noreply.github.com>
1 parent c5796cf commit 11142f9

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/automated-security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/comprehensive-testing.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ permissions:
1313
pull-requests: write
1414
actions: read
1515

16+
defaults:
17+
run:
18+
shell: bash
19+
1620
env:
1721
CARGO_TERM_COLOR: always
1822
RUST_BACKTRACE: 1
@@ -86,6 +90,7 @@ jobs:
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

0 commit comments

Comments
 (0)