mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-14 03:12:20 +00:00
17 lines
592 B
TypeScript
17 lines
592 B
TypeScript
import { SignOptions } from './sign';
|
|
import type { Attestation } from './shared.types';
|
|
type AttestBaseOptions = SignOptions & {
|
|
subjectName: string;
|
|
subjectDigest: Record<string, string>;
|
|
token: string;
|
|
skipWrite?: boolean;
|
|
};
|
|
export type AttestOptions = AttestBaseOptions & {
|
|
predicateType: string;
|
|
predicate: object;
|
|
};
|
|
export type AttestProvenanceOptions = AttestBaseOptions;
|
|
export declare function attest(options: AttestOptions): Promise<Attestation>;
|
|
export declare function attestProvenance(options: AttestProvenanceOptions): Promise<Attestation>;
|
|
export {};
|