update annotation scheme for OCI bundles (#29)

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer
2024-04-22 09:41:18 -07:00
committed by GitHub
parent 6a91df9e85
commit fe2f1fbc42
2 changed files with 4 additions and 2 deletions

3
dist/index.js generated vendored
View File

@@ -78014,7 +78014,8 @@ const createAttestation = async (subject, predicate, sigstoreInstance) => {
artifact: Buffer.from(JSON.stringify(attestation.bundle)),
mediaType: bundle_1.BUNDLE_V02_MEDIA_TYPE,
annotations: {
'dev.sigstore.bundle/predicateType': core.getInput('predicate-type')
'dev.sigstore.bundle.content': 'dsse-envelope',
'dev.sigstore.bundle.predicateType': core.getInput('predicate-type')
}
});
core.info(highlight('Attestation uploaded to registry'));

View File

@@ -128,7 +128,8 @@ const createAttestation = async (
artifact: Buffer.from(JSON.stringify(attestation.bundle)),
mediaType: BUNDLE_V02_MEDIA_TYPE,
annotations: {
'dev.sigstore.bundle/predicateType': core.getInput('predicate-type')
'dev.sigstore.bundle.content': 'dsse-envelope',
'dev.sigstore.bundle.predicateType': core.getInput('predicate-type')
}
})
core.info(highlight('Attestation uploaded to registry'))