Skip to content

Commit 8010ce5

Browse files
authored
BST-17725: add skip version check flag to all trivy scanners (#252)
1 parent 29d66c3 commit 8010ce5

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

scanners/boostsecurityio/boost-sca/module.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,15 @@ steps:
106106
TRIVY_ADDITIONAL_ARGS: ${TRIVY_ADDITIONAL_ARGS---ignore-unfixed}
107107
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
108108
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1,ghcr.io/aquasecurity/trivy-java-db:1
109-
run: |
110-
$SETUP_PATH/trivy fs --cache-dir=/tmp/trivy/ --format=cyclonedx --license-full --no-progress --scanners vuln . 2>&1
109+
run: >
110+
$SETUP_PATH/trivy fs
111+
--cache-dir=/tmp/trivy/
112+
--format=cyclonedx
113+
--license-full
114+
--no-progress
115+
--scanners vuln
116+
--skip-version-check
117+
. 2>&1
111118
format: cyclonedx
112119
post-processor:
113120
docker:

scanners/boostsecurityio/trivy-fs/module.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,14 @@ steps:
106106
TRIVY_ADDITIONAL_ARGS: ${TRIVY_ADDITIONAL_ARGS---ignore-unfixed}
107107
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
108108
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1,ghcr.io/aquasecurity/trivy-java-db:1
109-
run: |
110-
$SETUP_PATH/trivy fs ${TRIVY_ADDITIONAL_ARGS} --format json --no-progress --scanners vuln . 2>&1
109+
run: >
110+
$SETUP_PATH/trivy fs
111+
${TRIVY_ADDITIONAL_ARGS}
112+
--format json
113+
--no-progress
114+
--scanners vuln
115+
--skip-version-check
116+
. 2>&1
111117
format: sarif
112118
post-processor:
113119
docker:

scanners/boostsecurityio/trivy-image/module.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ steps:
6060
TRIVY_ADDITIONAL_ARGS: ${TRIVY_ADDITIONAL_ARGS---ignore-unfixed}
6161
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
6262
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1,ghcr.io/aquasecurity/trivy-java-db:1
63-
run: |
64-
$SETUP_PATH/trivy image ${TRIVY_ADDITIONAL_ARGS} --format json --scanners vuln \
65-
--quiet ${BOOST_IMAGE_NAME}
63+
run: >
64+
$SETUP_PATH/trivy image
65+
${TRIVY_ADDITIONAL_ARGS}
66+
--format json
67+
--scanners vuln
68+
--skip-version-check
69+
--quiet
70+
${BOOST_IMAGE_NAME}
6671
format: sarif
6772
post-processor:
6873
docker:

scanners/boostsecurityio/trivy-sbom-image/module.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ steps:
5858
IMAGE_NAME: ${BOOST_IMAGE_NAME}
5959
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
6060
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1,ghcr.io/aquasecurity/trivy-java-db:1
61-
run: |
62-
$SETUP_PATH/trivy image ${TRIVY_ADDITIONAL_ARGS} --format cyclonedx --license-full ${BOOST_IMAGE_NAME}
61+
run: >
62+
$SETUP_PATH/trivy image
63+
${TRIVY_ADDITIONAL_ARGS}
64+
--format cyclonedx
65+
--license-full
66+
--skip-version-check
67+
${BOOST_IMAGE_NAME}
6368
format: cyclonedx
6469
post-processor:
6570
docker:

scanners/boostsecurityio/trivy-sbom/module.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,15 @@ steps:
103103
NO_COLOR: "true"
104104
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
105105
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1,ghcr.io/aquasecurity/trivy-java-db:1
106-
run: |
107-
$SETUP_PATH/trivy fs --format=cyclonedx --license-full --no-progress --scanners vuln --cache-dir=/tmp/trivy/ . 2>&1
106+
run: >
107+
$SETUP_PATH/trivy fs
108+
--format=cyclonedx
109+
--license-full
110+
--no-progress
111+
--scanners vuln
112+
--cache-dir=/tmp/trivy/
113+
--skip-version-check
114+
. 2>&1
108115
format: cyclonedx
109116
post-processor:
110117
docker:

0 commit comments

Comments
 (0)