Signed-off-by: Brian DeHamer <[email protected]>
This commit is contained in:
Brian DeHamer
2026-02-18 10:11:20 -08:00
parent f2ceca496b
commit 023c0c6795
22 changed files with 1858 additions and 1856 deletions
Generated Vendored
+4
View File
@@ -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(',')}`);