Repository navigation
fix(ci): Update trivy CLI to v0.69.3 #56
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,8 +202,8 @@ jobs: | |
| - name: Run Trivy vulnerability scanner | ||
| run: | | ||
| # Download and run Trivy directly | ||
| wget https://github.com/aquasecurity/trivy/releases/download/v0.48.0/trivy_0.48.0_Linux-64bit.tar.gz | ||
| tar zxvf trivy_0.48.0_Linux-64bit.tar.gz | ||
| wget https://github.com/aquasecurity/trivy/releases/download/v0.69.3/trivy_0.69.3_Linux-64bit.tar.gz | ||
| tar zxvf trivy_0.69.3_Linux-64bit.tar.gz | ||
|
Comment on lines
+205
to
+206
|
||
|
|
||
| # Build the image | ||
| docker build -t test-scan:latest . | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Trivy version is duplicated in both the download URL and the tarball filename, which makes future updates error-prone (easy to bump one line and forget the other). Consider defining a single TRIVY_VERSION variable (env or shell var) and interpolating it in both commands.