Skip to content

Commit 0d5df9a

Browse files
committed
Opt out of secret scanning to make trivy faster
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 1c93671 commit 0d5df9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/trivy_images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# yamllint disable rule:line-length
4949
run: |
5050
mkdir -p sarif/${{ matrix.artifact }}
51-
./bazel-bin/k8s/${{ matrix.artifact }}/list_image_bundle | xargs -I{} sh -c 'trivy image {} --format=sarif --output=sarif/${{ matrix.artifact }}/$(basename {} | cut -d":" -f1).sarif'
51+
./bazel-bin/k8s/${{ matrix.artifact }}/list_image_bundle | xargs -I{} sh -c 'trivy image --scanners vuln {} --format=sarif --output=sarif/${{ matrix.artifact }}/$(basename {} | cut -d":" -f1).sarif'
5252
5353
# TODO(ddelnano): Remove this check once the operator dependency images are supported.
5454
# This requires rendering helm templates and requires some additional work.
@@ -65,7 +65,7 @@ jobs:
6565
# Ignore images whose basename is "/${{ matrix.artifact }}" to avoid scanning the bazel built images (e.g. /vizier-, /cloud-)
6666
# The deps images must have their file named processed differently to avoid conflicts with the image name. For example,
6767
# ory/hydra:v1.9.2-alpine and ory/hydra:v1.9.2-sqlite must not conflict.
68-
cat ./bazel-bin/k8s/${{ matrix.artifact }}/${{ matrix.artifact }}_image_list.txt | grep -v "\/${{ matrix.artifact }}" | xargs -I{} sh -c 'trivy image {} --format=sarif --output=sarif/${{ matrix.artifact }}_deps/$(basename {} | cut -d"@" -f1 | tr ":" "_").sarif'
68+
cat ./bazel-bin/k8s/${{ matrix.artifact }}/${{ matrix.artifact }}_image_list.txt | grep -v "\/${{ matrix.artifact }}" | xargs -I{} sh -c 'trivy image --scanners vuln {} --format=sarif --output=sarif/${{ matrix.artifact }}_deps/$(basename {} | cut -d"@" -f1 | tr ":" "_").sarif'
6969
# yamllint enable rule:line-length
7070
- run: |
7171
# Loop through all ${artifact} and ${artifact}_deps sarif files

0 commit comments

Comments
 (0)