File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
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
You can’t perform that action at this time.
0 commit comments