Skip to content

Commit f1d0ab8

Browse files
feat: Refactor Trivy scan job and remove deprecated dependency check step
1 parent c20faa2 commit f1d0ab8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/security.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ jobs:
8181
with:
8282
category: "/language:go"
8383
upload: true
84-
with:
85-
category: "/language:go"
8684

8785
dependency-review:
8886
name: Dependency Review
@@ -99,8 +97,8 @@ jobs:
9997
fail-on-severity: moderate
10098
allow-licenses: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC
10199

102-
dependency-check:
103-
name: Dependency Security Check
100+
trivy-scan:
101+
name: Trivy Vulnerability Scan
104102
runs-on: ubuntu-latest
105103
permissions:
106104
actions: read
@@ -117,12 +115,6 @@ jobs:
117115
go-version-file: go.mod
118116
check-latest: true
119117

120-
- name: Run Nancy (dependency vulnerability scanner)
121-
continue-on-error: true
122-
run: |
123-
go install github.com/sonatypecommunity/nancy@latest
124-
go list -json -deps ./... | nancy sleuth
125-
126118
- name: Run Trivy vulnerability scanner
127119
continue-on-error: true
128120
uses: aquasecurity/trivy-action@0.20.0
@@ -132,6 +124,7 @@ jobs:
132124
format: "sarif"
133125
output: "trivy-results.sarif"
134126
severity: "CRITICAL,HIGH,MEDIUM"
127+
scanners: "vuln,secret,config"
135128

136129
- name: Check if SARIF file exists
137130
id: check_sarif

0 commit comments

Comments
 (0)