Skip to content

Commit c13afa8

Browse files
committed
fix: [#251] disable secret scanning for test containers with SSH keys
1 parent c11eb10 commit c13afa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-security-scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
format: "table"
5151
severity: "HIGH,CRITICAL"
5252
exit-code: "0" # Don't fail here, just display
53+
scanners: "vuln" # Only vulnerabilities, skip secrets (test containers have legitimate SSH keys)
5354

5455
- name: Run Trivy vulnerability scanner
5556
uses: aquasecurity/[email protected]
@@ -59,6 +60,7 @@ jobs:
5960
output: "trivy-results-${{ matrix.image.name }}.sarif"
6061
severity: "HIGH,CRITICAL"
6162
exit-code: "1"
63+
scanners: "vuln" # Only vulnerabilities, skip secrets (test containers have legitimate SSH keys)
6264

6365
- name: Upload Trivy results to GitHub Security
6466
uses: github/codeql-action/upload-sarif@v4

0 commit comments

Comments
 (0)