Skip to content

Commit 351ea5c

Browse files
committed
ci: scan for all CVE severity levels and remove Docker image scan
- Scan LOW,MEDIUM,HIGH,CRITICAL instead of only HIGH,CRITICAL - Remove Docker image scan (no :latest tag exists)
1 parent 9b0ab3a commit 351ea5c

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

.github/workflows/security.yaml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,10 @@ jobs:
6363
scan-ref: "."
6464
format: "sarif"
6565
output: "trivy-results.sarif"
66-
severity: "CRITICAL,HIGH"
66+
severity: "LOW,MEDIUM,HIGH,CRITICAL"
6767

6868
- name: Upload Trivy scan results to GitHub Security tab
6969
uses: github/codeql-action/upload-sarif@v3
7070
with:
7171
sarif_file: "trivy-results.sarif"
7272
category: "Trivy-Filesystem"
73-
74-
trivy-image:
75-
name: Trivy Docker Image Scan
76-
runs-on: ubuntu-latest
77-
permissions:
78-
security-events: write
79-
contents: read
80-
steps:
81-
- name: Checkout repository
82-
uses: actions/checkout@v4
83-
84-
- name: Run Trivy vulnerability scanner on latest image
85-
uses: aquasecurity/[email protected]
86-
with:
87-
image-ref: "ghcr.io/coder/code-marketplace:latest"
88-
format: "sarif"
89-
output: "trivy-image-results.sarif"
90-
severity: "CRITICAL,HIGH"
91-
92-
- name: Upload Trivy scan results to GitHub Security tab
93-
uses: github/codeql-action/upload-sarif@v3
94-
with:
95-
sarif_file: "trivy-image-results.sarif"
96-
category: "Trivy-Docker"

0 commit comments

Comments
 (0)