mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-14 03:12:20 +00:00
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
/// <reference types="node" />
|
|
import { Bundle } from '@sigstore/bundle';
|
|
import { IdentityProvider } from '@sigstore/sign';
|
|
export type Payload = {
|
|
body: Buffer;
|
|
type: string;
|
|
};
|
|
export type SignOptions = {
|
|
fulcioURL: string;
|
|
rekorURL?: string;
|
|
tsaServerURL?: string;
|
|
identityProvider?: IdentityProvider;
|
|
timeout?: number;
|
|
retry?: number;
|
|
};
|
|
export declare const signPayload: (payload: Payload, options: SignOptions) => Promise<Bundle>;
|