1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import { IacOrgSettings } from '../../../../cli/commands/test/iac/local-execution/types';
- import { ScanError, TestOutput } from './scan/results';
- import { IacProjectType } from '../../constants';
- import { State } from './scan/policy-engine';
- export interface Result {
- meta: Meta;
- filesystemPolicy: false;
- vulnerabilities: [];
- dependencyCount: 0;
- licensesPolicy: null;
- ignoreSettings: IgnoreSettings;
- targetFile: string;
- projectName: string;
- org: string;
- policy: string;
- isPrivate: boolean;
- targetFilePath: string;
- packageManager: string;
- path: string;
- projectType: string;
- ok: boolean;
- infrastructureAsCodeIssues: IacIssue[];
- error?: string;
- }
- export interface IgnoreSettings {
- adminOnly: boolean;
- reasonRequired: boolean;
- disregardFilesystemIgnores: boolean;
- }
- export interface Meta {
- isPrivate: boolean;
- isLicensesEnabled: boolean;
- ignoreSettings: IgnoreSettings;
- org: string;
- policy: string;
- }
- export interface IgnoreSettings {
- adminOnly: boolean;
- reasonRequired: boolean;
- disregardFilesystemIgnores: boolean;
- }
- export interface IacIssue {
- severity: string;
- resolve: string;
- impact: string;
- msg: string;
- remediation?: Remediation;
- subType: IacProjectType | State.InputTypeEnum;
- issue: string;
- publicId: string;
- title: string;
- references: string[];
- id: string;
- isIgnored: boolean;
- iacDescription: IacDescription;
- lineNumber: number;
- documentation: string;
- isGeneratedByCustomRule: boolean;
- path: string[];
- policyEngineType?: string;
- type?: string;
- compliance?: string[][];
- description: string;
- }
- export interface Remediation {
- cloudformation?: string;
- terraform: string;
- arm?: string;
- kubernetes?: string;
- }
- export interface IacDescription {
- issue: string;
- impact: string;
- resolve: string;
- }
- export declare function convertEngineToJsonResults({ results, projectName, orgSettings, }: {
- results: TestOutput;
- projectName: string;
- orgSettings: IacOrgSettings;
- }): Array<Result | ScanError>;
|