From 07dd075832c204e6a8beab2423b00004f585f32f Mon Sep 17 00:00:00 2001 From: JonJagger Date: Thu, 28 Dec 2023 10:01:15 +0000 Subject: [PATCH] Add missing kosli-expect-deployment --- snyk_scan_live_artifacts_and_report_to_kosli.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/snyk_scan_live_artifacts_and_report_to_kosli.sh b/snyk_scan_live_artifacts_and_report_to_kosli.sh index 87d7332..6ad9f1a 100755 --- a/snyk_scan_live_artifacts_and_report_to_kosli.sh +++ b/snyk_scan_live_artifacts_and_report_to_kosli.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -Eeu -set -x root_dir() { git rev-parse --show-toplevel; } source "$(root_dir)/scripts/exit_non_zero_unless_installed.sh" @@ -72,6 +71,11 @@ report_snyk_vulnerabilities_to_kosli() --fingerprint="${fingerprint}" \ --name=snyk-scan \ --scan-results="${snyk_output_json_filename}" + + kosli expect deployment \ + --fingerprint="${fingerprint}" \ + --description="Deployed in ${{ inputs.KOSLI_ENVIRONMENT }}" \ + --environment="${KOSLI_ENVIRONMENT}" } exit_non_zero_unless_installed kosli snyk jq