test suite re-write (#356)

Signed-off-by: Brian DeHamer <[email protected]>
This commit is contained in:
Brian DeHamer
2026-02-19 10:14:47 -08:00
committed by GitHub
parent 7d7ff4475a
commit 19ad753d23
23 changed files with 1871 additions and 1866 deletions
+1
View File
@@ -126,6 +126,7 @@ function getRegistryURL(subjectName: string): string {
url = new URL(`https://${subjectName}`)
}
/* istanbul ignore if */
if (url.protocol !== 'https:') {
throw new Error(
`Unsupported protocol ${url.protocol} in subject name ${subjectName}`
+3
View File
@@ -129,6 +129,7 @@ export async function run(inputs: RunInputs): Promise<void> {
core.setOutput('attestation-url', attestationURL(att.attestationID))
}
/* istanbul ignore if */
if (att.storageRecordIds) {
core.setOutput('storage-record-ids', att.storageRecordIds.join(','))
}
@@ -182,6 +183,7 @@ const logAttestation = (
core.info(attestation.certificate)
core.endGroup()
/* istanbul ignore if */
if (attestation.tlogID) {
core.info(
style.highlight(
@@ -202,6 +204,7 @@ const logAttestation = (
core.info(`${subjects[0].name}@${attestation.attestationDigest}`)
}
/* istanbul ignore next */
if (attestation.storageRecordIds && attestation.storageRecordIds.length > 0) {
core.info(style.highlight('Storage record created'))
core.info(`Storage record IDs: ${attestation.storageRecordIds.join(',')}`)