add new subject-version input (#364)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
+4
-1
@@ -120899,7 +120899,8 @@ const createAttestation = async (subjects, predicate, opts) => {
|
||||
const registryUrl = getRegistryURL(subject.name);
|
||||
const artifactOpts = {
|
||||
name: subject.name,
|
||||
digest: subjectDigest
|
||||
digest: subjectDigest,
|
||||
version: opts.subjectVersion || undefined
|
||||
};
|
||||
const packageRegistryOpts = {
|
||||
registryUrl
|
||||
@@ -121157,6 +121158,7 @@ async function run(inputs) {
|
||||
sigstoreInstance,
|
||||
pushToRegistry: inputs.pushToRegistry,
|
||||
createStorageRecord: inputs.createStorageRecord,
|
||||
subjectVersion: inputs.subjectVersion,
|
||||
githubToken: inputs.githubToken
|
||||
});
|
||||
logAttestation(subjects, att, sigstoreInstance);
|
||||
@@ -121298,6 +121300,7 @@ const inputs = {
|
||||
predicatePath: getInput('predicate-path'),
|
||||
pushToRegistry: getBooleanInput('push-to-registry'),
|
||||
createStorageRecord: getBooleanInput('create-storage-record'),
|
||||
subjectVersion: getInput('subject-version'),
|
||||
showSummary: getBooleanInput('show-summary'),
|
||||
githubToken: getInput('github-token'),
|
||||
// undocumented -- not part of public interface
|
||||
|
||||
Reference in New Issue
Block a user