Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trivy.yaml file #2960

Merged
merged 5 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .build_ignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lefthook.yml
log/
README.md
test/
trivy.yaml
lib/tasks/bump_version.rb
lib/tasks/coverage_report.rb
lib/tasks/multiverse.rake
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,21 @@ jobs:
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # tag v0.28.0
with:
scan-type: fs
scan-ref: .
trivy-config: trivy.yaml
format: table
exit-code: 1
ignore-unfixed: true
severity: CRITICAL,HIGH,MEDIUM,LOW
cache: false

- name: Run Trivy in report mode
# Only generate sarif when running nightly on the dev branch.
if: ${{ github.event_name == 'schedule' }}
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # tag v0.28.0
with:
scan-type: fs
scan-ref: .
trivy-config: trivy.yaml
format: sarif
output: trivy-results.sarif
ignore-unfixed: true
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
cache: false

- name: Upload Trivy scan results to GitHub Security tab
# Only upload sarif when running nightly on the dev branch.
Expand Down
12 changes: 12 additions & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
db:
repository:
- mirror.gcr.io/aquasec/trivy-db:2

severities:
- CRITICAL
- HIGH
- MEDIUM
- LOW

vulnerability:
ignore-unfixed: true
Loading