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

ci: bump trivy version #2737

Merged
merged 4 commits into from
May 4, 2023
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
8 changes: 3 additions & 5 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ jobs:
tar zxvf trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz
echo "$(pwd)" >> $GITHUB_PATH
env:
TRIVY_VERSION: "0.36.1"
TRIVY_VERSION: "0.41.0"

- name: Run trivy on git repository
run: |
trivy fs --format table --ignore-unfixed --skip-dirs website --security-checks vuln .
trivy fs --format table --ignore-unfixed --skip-dirs website --scanners vuln .

- name: Build docker images
run: |
Expand All @@ -308,7 +308,5 @@ jobs:
- name: Run trivy on images
run: |
for img in "gatekeeper-e2e:latest" "gatekeeper-crds:latest"; do
for vuln_type in "os" "library"; do
trivy image --ignore-unfixed --vuln-type="${vuln_type}" "${img}"
done
trivy image --ignore-unfixed --vuln-type="os,library" "${img}"
done
3 changes: 3 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# false positive due to prometheus versioning
# https://github.com/aquasecurity/trivy/issues/2992
CVE-2019-3826