Skip to content

Commit

Permalink
Fixed trivy version
Browse files Browse the repository at this point in the history
  • Loading branch information
gbikkiintel committed Oct 30, 2024
1 parent e58e28b commit d0baf28
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,18 @@ jobs:

- name: Install Trivy
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.55.0
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin
- name: Run Trivy code vulnerability scanner (JSON Output)
run: |
trivy --quiet fs --format json --output trivy-code-results.json --ignore-unfixed --vuln-type os,library --severity CRITICAL,HIGH,MEDIUM,LOW .
trivy --quiet fs \
--format json \
--output trivy-code-results.json \
--ignore-unfixed \
--vuln-type os,library \
--severity CRITICAL,HIGH,MEDIUM,LOW \
--db-repository 'ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db' \
.
- name: Upload Code Vulnerability Scan Results
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -70,7 +77,7 @@ jobs:
--ignore-unfixed \
--vuln-type os,library \
--severity CRITICAL,HIGH,MEDIUM,LOW \
--db-repository ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db \
--db-repository 'ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db' \
.
- name: Upload Code Vulnerability Scan Results
Expand Down

0 comments on commit d0baf28

Please sign in to comment.