Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sysdig-cli-scan-task/src/InputFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export class InputFetch {
return this.fetchString('policy', false);
}

get detailedPoliciesEval(): boolean {
return tl.getBoolInput('detailedPoliciesEval');
}

private error(input: string, required: boolean): string {
if (required) {
tl.setResult(tl.TaskResult.Failed, input.toUpperCase().concat(' fetch failed.'));
Expand Down
5 changes: 5 additions & 0 deletions sysdig-cli-scan-task/src/ScanningEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export function buildScanningEngineArg(binaryPath: string): tr.ToolRunner {
if (fetch.policy) {
scanningEngine.arg(['--policy=' + fetch.policy]);
}

if (fetch.detailedPoliciesEval) {
scanningEngine.arg('--detailed-policies-eval');
}

// Add image to be scanned
scanningEngine.arg(fetch.image);

Expand Down
9 changes: 9 additions & 0 deletions sysdig-cli-scan-task/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@
"required": false,
"helpMarkDown": "Policy to evaluate in the pipeline execution. If not specified, only the Always Apply policy will be evaluated.",
"groupName": "overrides"
},
{
"name": "detailedPoliciesEval",
"type": "boolean",
"label": "Show detailed policies evaluation results",
"defaultValue": false,
"required": false,
"helpMarkDown": "Show detailed per-policy evaluation results in the output.",
"groupName": "overrides"
}
],
"execution": {
Expand Down
Loading