Compare commits

...
Author SHA1 Message Date
Brian DeHamer c321849480 add private input to skip attestation store
Signed-off-by: Brian DeHamer <[email protected]>
2026-04-13 17:35:51 -07:00
5 changed files with 17 additions and 6 deletions
+2 -1
View File
@@ -67,7 +67,8 @@ describe('index', () => {
pushToRegistry: false, pushToRegistry: false,
createStorageRecord: true, createStorageRecord: true,
showSummary: true, showSummary: true,
privateSigning: false privateSigning: false,
skipAttestationStore: false
}) })
}) })
}) })
Generated Vendored
+6 -3
View File
@@ -120862,7 +120862,8 @@ const createAttestation = async (subjects, predicate, opts) => {
predicateType: predicate.type, predicateType: predicate.type,
predicate: predicate.params, predicate: predicate.params,
sigstore: opts.sigstoreInstance, sigstore: opts.sigstoreInstance,
token: opts.githubToken token: opts.githubToken,
skipWrite: opts.skipAttestationStore
}); });
const result = attestation; const result = attestation;
if (subjects.length === 1 && opts.pushToRegistry) { if (subjects.length === 1 && opts.pushToRegistry) {
@@ -121159,7 +121160,8 @@ async function run(inputs) {
pushToRegistry: inputs.pushToRegistry, pushToRegistry: inputs.pushToRegistry,
createStorageRecord: inputs.createStorageRecord, createStorageRecord: inputs.createStorageRecord,
subjectVersion: inputs.subjectVersion, subjectVersion: inputs.subjectVersion,
githubToken: inputs.githubToken githubToken: inputs.githubToken,
skipAttestationStore: inputs.skipAttestationStore
}); });
logAttestation(subjects, att, sigstoreInstance); logAttestation(subjects, att, sigstoreInstance);
// Write attestation bundle to output file // Write attestation bundle to output file
@@ -121304,7 +121306,8 @@ const inputs = {
showSummary: getBooleanInput('show-summary'), showSummary: getBooleanInput('show-summary'),
githubToken: getInput('github-token'), githubToken: getInput('github-token'),
// undocumented -- not part of public interface // undocumented -- not part of public interface
privateSigning: ['true', 'True', 'TRUE', '1'].includes(getInput('private-signing')) privateSigning: ['true', 'True', 'TRUE', '1'].includes(getInput('private-signing')),
skipAttestationStore: ['true', 'True', 'TRUE', '1'].includes(getInput('skip-attestation-store'))
}; };
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */ /* eslint-disable-next-line @typescript-eslint/no-floating-promises */
run(inputs); run(inputs);
+3 -1
View File
@@ -28,6 +28,7 @@ export const createAttestation = async (
createStorageRecord: boolean createStorageRecord: boolean
subjectVersion?: string subjectVersion?: string
githubToken: string githubToken: string
skipAttestationStore?: boolean
} }
): Promise<AttestResult> => { ): Promise<AttestResult> => {
// Sign provenance w/ Sigstore // Sign provenance w/ Sigstore
@@ -36,7 +37,8 @@ export const createAttestation = async (
predicateType: predicate.type, predicateType: predicate.type,
predicate: predicate.params, predicate: predicate.params,
sigstore: opts.sigstoreInstance, sigstore: opts.sigstoreInstance,
token: opts.githubToken token: opts.githubToken,
skipWrite: opts.skipAttestationStore
}) })
const result: AttestResult = attestation const result: AttestResult = attestation
+3
View File
@@ -21,6 +21,9 @@ const inputs: RunInputs = {
// undocumented -- not part of public interface // undocumented -- not part of public interface
privateSigning: ['true', 'True', 'TRUE', '1'].includes( privateSigning: ['true', 'True', 'TRUE', '1'].includes(
core.getInput('private-signing') core.getInput('private-signing')
),
skipAttestationStore: ['true', 'True', 'TRUE', '1'].includes(
core.getInput('skip-attestation-store')
) )
} }
+3 -1
View File
@@ -39,6 +39,7 @@ export type RunInputs = SubjectInputs &
githubToken: string githubToken: string
showSummary: boolean showSummary: boolean
privateSigning: boolean privateSigning: boolean
skipAttestationStore: boolean
} }
/* istanbul ignore next */ /* istanbul ignore next */
@@ -99,7 +100,8 @@ export async function run(inputs: RunInputs): Promise<void> {
pushToRegistry: inputs.pushToRegistry, pushToRegistry: inputs.pushToRegistry,
createStorageRecord: inputs.createStorageRecord, createStorageRecord: inputs.createStorageRecord,
subjectVersion: inputs.subjectVersion, subjectVersion: inputs.subjectVersion,
githubToken: inputs.githubToken githubToken: inputs.githubToken,
skipAttestationStore: inputs.skipAttestationStore
}) })
logAttestation(subjects, att, sigstoreInstance) logAttestation(subjects, att, sigstoreInstance)