-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinputs.d.ts
25 lines (25 loc) · 910 Bytes
/
inputs.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { InputOptions } from '@actions/core';
type GetInput = (name: string, options?: InputOptions | undefined) => string;
export declare enum Actions {
GetPolicyNameByProfileName = "getPolicyNameByProfileName",
PreparePipelineResults = "preparePipelineResults",
PreparePolicyResults = "preparePolicyResults",
RemoveSandbox = "removeSandbox"
}
export type Inputs = {
action: Actions;
vid: string;
vkey: string;
appname: string;
token: string;
check_run_id: number;
source_repository: string;
fail_checks_on_policy: boolean;
fail_checks_on_error: boolean;
filter_mitigated_flaws: boolean;
sandboxname: string;
};
export declare const parseInputs: (getInput: GetInput) => Inputs;
export declare const vaildateScanResultsActionInput: (inputs: Inputs) => boolean;
export declare const vaildateRemoveSandboxInput: (inputs: Inputs) => boolean;
export {};