remove index output as it is not available in re-upload situations

This commit is contained in:
Emil Lerch 2023-03-27 23:19:20 -07:00
parent 014b12e7fb
commit 7ccd313368
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -39,7 +39,9 @@ while IFS= read -r f; do
ec=$?; if [ $ec -ne 0 ]; then exit $ec; fi
output=$(rekor upload --artifact "$f" --signature "${dest_sig}" --pki-format x509 --public-key /tmp/public_key)
ec=$?; echo "$output"; if [ $ec -ne 0 ]; then exit $ec; fi
echo "INDEX_${i}=$(echo "$output"|cut -d, -f1|cut -d\ -f5)" >> "${GITHUB_OUTPUT}"
# Index will not be there if the entry already exists
# echo "INDEX_${i}=$(echo "$output"|cut -d, -f1|cut -d\ -f5)" >> "${GITHUB_OUTPUT}"
# The parsing, though, is identical
echo "URL_${i}=$(echo "$output"|cut -d: -f2-|cut -d\ -f2)" >> "${GITHUB_OUTPUT}"
echo "SOURCE_${i}=${f}" >> "${GITHUB_OUTPUT}"
echo "SIG_${i}=${dest_sig}" >> "${GITHUB_OUTPUT}"