Skip to content

Commit 17080e1

Browse files
authored
Merge pull request #1876 from stackhpc/bump-trivy
Bump Trivy version to v0.66.0
2 parents 7873968 + f021106 commit 17080e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
156156
- name: Install Trivy
157157
run: |
158-
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.62.1
158+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.66.0
159159
160160
- name: Install yq
161161
run: |

tools/scan-images.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33

4+
# Disable telemetry and version check:
5+
# https://github.com/aquasecurity/trivy/discussions/8945
6+
export TRIVY_DISABLE_TELEMETRY=true
7+
export TRIVY_SKIP_VERSION_CHECK=true
8+
49
# Global variables
510
scan_common_args=" \
611
--exit-code 1 \
@@ -22,7 +27,7 @@ usage() {
2227
# Check dependencies are installed, print installation instructions otherwise
2328
check_deps_installed() {
2429
if ! trivy --version > /dev/null; then
25-
echo 'Please install trivy: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.62.1'
30+
echo 'Please install trivy: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.66.0'
2631
exit 1
2732
fi
2833
if ! yq --version > /dev/null; then

0 commit comments

Comments
 (0)