Skip to content

Commit

Permalink
Merge branch 'main' into sast-find-unicode-control
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchuntao authored Oct 9, 2024
2 parents 35e0fbe + 4e3171e commit bcf8c49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion task/clair-scan/0.2/clair-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,12 @@ spec:
fi
done
# If the image is an Image Index, also add the Image Index digest to the list.
if [[ "${digests_processed[*]}" != *"$IMAGE_DIGEST"* ]]; then
digests_processed+=("\"$IMAGE_DIGEST\"")
fi
digests_processed_string=$(IFS=,; echo "${digests_processed[*]}")
# add the image_index to the processed digests list and store the result in a file
images_processed=$(echo "${images_processed_template/\[%s]/[$digests_processed_string]}")
echo "$images_processed" > images-processed.json
- name: oci-attach-report
Expand Down

0 comments on commit bcf8c49

Please sign in to comment.