Skip to content

Commit 6bf85bb

Browse files
committed
Ensure deps sarif output directory is created
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 89996a6 commit 6bf85bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/trivy_images.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
6464
# Ignore images whose basename is "/${{ matrix.artifact }}" to avoid scanning the bazel built images (e.g. /vizier-, /cloud-)
6565
deps_output_dir=sarif/${{ matrix.artifact }}_deps
66+
mkdir -p ${deps_output_dir}
6667
cat ./bazel-bin/k8s/${{ matrix.artifact }}/${{ matrix.artifact }}_image_list.txt | grep -v "\/${{ matrix.artifact }}" | xargs -I{} sh -c 'trivy image {} --format=sarif --output=${deps_output_dir}/$(basename {} | cut -d":" -f1).sarif'
6768
# yamllint enable rule:line-length
6869
- run: |

0 commit comments

Comments
 (0)