format summary output as list (#105)
Signed-off-by: Brian DeHamer <[email protected]>
This commit is contained in:
+5
-3
@@ -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(
|
||||
`<a href="${attestationURL(attestationID)}">${subjectName}@${subjectDigest}</a>`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
core.summary.addList(listItems)
|
||||
core.summary.write()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user