Compare commits

...

1 Commits

Author SHA1 Message Date
Brian DeHamer c321849480 add private input to skip attestation store
Signed-off-by: Brian DeHamer <bdehamer@github.com>
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,
createStorageRecord: 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,
predicate: predicate.params,
sigstore: opts.sigstoreInstance,
token: opts.githubToken
token: opts.githubToken,
skipWrite: opts.skipAttestationStore
});
const result = attestation;
if (subjects.length === 1 && opts.pushToRegistry) {
@@ -121159,7 +121160,8 @@ async function run(inputs) {
pushToRegistry: inputs.pushToRegistry,
createStorageRecord: inputs.createStorageRecord,
subjectVersion: inputs.subjectVersion,
githubToken: inputs.githubToken
githubToken: inputs.githubToken,
skipAttestationStore: inputs.skipAttestationStore
});
logAttestation(subjects, att, sigstoreInstance);
// Write attestation bundle to output file
@@ -121304,7 +121306,8 @@ const inputs = {
showSummary: getBooleanInput('show-summary'),
githubToken: getInput('github-token'),
// 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 */
run(inputs);
+3 -1
View File
@@ -28,6 +28,7 @@ export const createAttestation = async (
createStorageRecord: boolean
subjectVersion?: string
githubToken: string
skipAttestationStore?: boolean
}
): Promise<AttestResult> => {
// Sign provenance w/ Sigstore
@@ -36,7 +37,8 @@ export const createAttestation = async (
predicateType: predicate.type,
predicate: predicate.params,
sigstore: opts.sigstoreInstance,
token: opts.githubToken
token: opts.githubToken,
skipWrite: opts.skipAttestationStore
})
const result: AttestResult = attestation
+3
View File
@@ -21,6 +21,9 @@ const inputs: RunInputs = {
// undocumented -- not part of public interface
privateSigning: ['true', 'True', 'TRUE', '1'].includes(
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
showSummary: boolean
privateSigning: boolean
skipAttestationStore: boolean
}
/* istanbul ignore next */
@@ -99,7 +100,8 @@ export async function run(inputs: RunInputs): Promise<void> {
pushToRegistry: inputs.pushToRegistry,
createStorageRecord: inputs.createStorageRecord,
subjectVersion: inputs.subjectVersion,
githubToken: inputs.githubToken
githubToken: inputs.githubToken,
skipAttestationStore: inputs.skipAttestationStore
})
logAttestation(subjects, att, sigstoreInstance)