test suite re-write (#356)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
+4
@@ -120896,6 +120896,7 @@ function getRegistryURL(subjectName) {
|
||||
catch {
|
||||
url = new URL(`https://${subjectName}`);
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (url.protocol !== 'https:') {
|
||||
throw new Error(`Unsupported protocol ${url.protocol} in subject name ${subjectName}`);
|
||||
}
|
||||
@@ -121141,6 +121142,7 @@ async function run(inputs) {
|
||||
setOutput('attestation-id', att.attestationID);
|
||||
setOutput('attestation-url', attestationURL(att.attestationID));
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (att.storageRecordIds) {
|
||||
setOutput('storage-record-ids', att.storageRecordIds.join(','));
|
||||
}
|
||||
@@ -121175,6 +121177,7 @@ const logAttestation = (subjects, attestation, sigstoreInstance) => {
|
||||
startGroup(highlight(`Attestation signed using certificate from ${instanceName} Sigstore instance`));
|
||||
info(attestation.certificate);
|
||||
endGroup();
|
||||
/* istanbul ignore if */
|
||||
if (attestation.tlogID) {
|
||||
info(highlight('Attestation signature uploaded to Rekor transparency log'));
|
||||
info(`${SEARCH_PUBLIC_GOOD_URL}?logIndex=${attestation.tlogID}`);
|
||||
@@ -121188,6 +121191,7 @@ const logAttestation = (subjects, attestation, sigstoreInstance) => {
|
||||
info(highlight('Attestation uploaded to registry'));
|
||||
info(`${subjects[0].name}@${attestation.attestationDigest}`);
|
||||
}
|
||||
/* istanbul ignore next */
|
||||
if (attestation.storageRecordIds && attestation.storageRecordIds.length > 0) {
|
||||
info(highlight('Storage record created'));
|
||||
info(`Storage record IDs: ${attestation.storageRecordIds.join(',')}`);
|
||||
|
||||
Reference in New Issue
Block a user