From bd000ffacdc1521cefefac217241f24d48d463c9 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sat, 4 May 2024 15:22:44 -0400 Subject: [PATCH] Provide image details to snyk task in the build pipelines --- pipelines/template-build/template-build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pipelines/template-build/template-build.yaml b/pipelines/template-build/template-build.yaml index 8613a78145..c47e02163c 100644 --- a/pipelines/template-build/template-build.yaml +++ b/pipelines/template-build/template-build.yaml @@ -187,13 +187,18 @@ spec: operator: in values: ["false"] runAfter: - - clone-repository + - build-container taskRef: name: sast-snyk-check version: "0.1" workspaces: - name: workspace workspace: workspace + params: + - name: image-digest + value: $(tasks.build-container.results.IMAGE_DIGEST) + - name: image-url + value: $(tasks.build-container.results.IMAGE_URL) - name: clamav-scan when: - input: $(params.skip-checks)