Skip to content

Commit

Permalink
Add missing kosli-expect-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 28, 2023
1 parent 605a4f3 commit 07dd075
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snyk_scan_live_artifacts_and_report_to_kosli.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07dd075

Please sign in to comment.