File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,20 @@ function cosignTree() {
34
34
cosign tree $URL
35
35
}
36
36
37
+ echo " SUMMARY_EYECATCHER_BEGIN"
38
+
39
+ jq ' {results: .}' -s < <(
40
+ find " $BASE_RESULTS " -mindepth 2 -maxdepth 2 -name STATUS | while read -r status_file; do
41
+ name=$( basename " $( dirname " $status_file " ) " )
42
+ result=$( tr ' [:upper:]' ' [:lower:]' < " $status_file " )
43
+
44
+ jq -n --arg name " $name " --arg result " $result " \
45
+ ' {name: $name, result: $result}'
46
+ done
47
+ )
48
+
49
+ echo " SUMMARY_EYECATCHER_END"
50
+
37
51
# Task Steps
38
52
appstudio-summary
39
53
showTree $BASE_RESULTS
Original file line number Diff line number Diff line change @@ -198,3 +198,13 @@ for sbom_path in "${sboms_to_upload[@]}"; do
198
198
--data " @$supported_version_of_sbom " \
199
199
" $bombastic_api_url /api/v1/sbom?id=$sbom_id "
200
200
done
201
+
202
+ echo " "
203
+ echo " TPA_SBOM_URL_EYECATCHER_BEGIN"
204
+
205
+ tpa_url=${bombastic_api_url// sbom/ console}
206
+ tpa_sbom_id=" ${sbom_id// sha256:/ sha256% 3A} "
207
+
208
+ jq -n --arg url " $tpa_url /sbom/content/$tpa_sbom_id " ' {"TPA_SBOM_URL": $url}'
209
+
210
+ echo " TPA_SBOM_URL_EYECATCHER_END"
You can’t perform that action at this time.
0 commit comments