Skip to content

Commit

Permalink
Started on getting ux url
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreMerkely committed Sep 6, 2024
1 parent b80b7c2 commit 471262b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/never_alone/create_never_alone_trail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,11 @@ function attest_commit_trail_never_alone
local -r source_trail_name=${commit_sha:0:7}
local url_to_source_attestation never_alone_data latest_never_alone_data compliant

url_to_source_attestation="${KOSLI_HOST}/${KOSLI_ORG}/flows/${source_flow_name}/trails/${source_trail_name}"
never_alone_data=$(echo_never_alone_attestation_in_trail ${source_flow_name} ${source_trail_name} ${source_attestation_name})
if [ "${never_alone_data}" != "[]" ]; then
latest_never_alone_data=$(echo "${never_alone_data}" | jq '.[-1]')
attestation_id=$(echo $latest_never_alone_data | jq -r '.inner_id')
url_to_source_attestation="${KOSLI_HOST}/${KOSLI_ORG}/flows/${source_flow_name}/trails/${source_trail_name}?attestation_id=${attestation_id}"
set_never_alone_compliance "${latest_never_alone_data}"
if [ "${COMPLIANT_STATUS}" == "true" ]; then
kosli attest generic \
Expand Down

0 comments on commit 471262b

Please sign in to comment.