get visibility when grabbing repo information

This commit is contained in:
Conor Sloan
2024-04-15 12:03:02 +01:00
parent 96609b599a
commit 6dc0f68595
8 changed files with 125 additions and 12 deletions
+2 -1
View File
@@ -98,13 +98,14 @@ async function generateAttestation(
semverTag: string,
options: cfg.PublishActionOptions
): Promise<attest.Attestation> {
const subjectName = `${options.nameWithOwner}_${semverTag}`
const subjectName = `${options.nameWithOwner}@${semverTag}`
const subjectDigest = removePrefix(manifestDigest, 'sha256:')
return await attest.attestProvenance({
subjectName,
subjectDigest: { sha256: subjectDigest },
token: options.token,
sigstore: 'github',
skipWrite: false // TODO: Attestation storage is only supported for public repositories or repositories which belong to a GitHub Enterprise Cloud account
})
}