From fe2f1fbc423c5524638bbb91402fb145b5c4d3fb Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Mon, 22 Apr 2024 09:41:18 -0700 Subject: [PATCH] update annotation scheme for OCI bundles (#29) Signed-off-by: Brian DeHamer --- dist/index.js | 3 ++- src/main.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0eb79d3..29bfd32 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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')); diff --git a/src/main.ts b/src/main.ts index 486ba7b..ac4dcc8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'))