From f1338058bcc0619b857ecd72dd461503957868f1 Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Wed, 24 Jul 2024 14:31:01 -0700 Subject: [PATCH] format summary output as list (#105) Signed-off-by: Brian DeHamer --- dist/index.js | 4 +++- src/main.ts | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8c21938..3fbb566 100644 --- a/dist/index.js +++ b/dist/index.js @@ -80189,11 +80189,13 @@ const logSummary = (attestations) => { core.summary.addHeading( /* istanbul ignore next */ attestations.length > 1 ? 'Attestations Created' : 'Attestation Created', 3); + const listItems = []; for (const { subjectName, subjectDigest, attestationID } of attestations) { if (attestationID) { - core.summary.addLink(`${subjectName}@${subjectDigest}`, attestationURL(attestationID)); + listItems.push(`${subjectName}@${subjectDigest}`); } } + core.summary.addList(listItems); core.summary.write(); } }; diff --git a/src/main.ts b/src/main.ts index c8b032b..e7e9c9e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -166,14 +166,16 @@ const logSummary = (attestations: AttestResult[]): void => { 3 ) + const listItems = [] for (const { subjectName, subjectDigest, attestationID } of attestations) { if (attestationID) { - core.summary.addLink( - `${subjectName}@${subjectDigest}`, - attestationURL(attestationID) + listItems.push( + `${subjectName}@${subjectDigest}` ) } } + + core.summary.addList(listItems) core.summary.write() } }