Skip to content

Commit

Permalink
Allow to bypass the indexer-app archive limits on docker scan (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
hightoxicity authored Dec 14, 2023
1 parent 2e936d9 commit 98bee1f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tasks/JFrogDocker/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function RunTaskCbk(cliPath: string): void {
if (tl.getBoolInput('allowFailBuild', false)) {
cliCommand = utils.addBoolParam(cliCommand, 'allowFailBuild', 'fail');
}

if (tl.getBoolInput('allowBypassArchiveLimits', false)) {
cliCommand = utils.addBoolParam(cliCommand, 'allowBypassArchiveLimits', 'bypass-archive-limits');
}

// Add watches source if provided.
const watchesSource: string = tl.getInput('watchesSource', false) ?? '';
switch (watchesSource) {
Expand Down
11 changes: 10 additions & 1 deletion tasks/JFrogDocker/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
"helpMarkDown": "Unset if you don't wish the scan process to exit with code 3, if a violation matching an Xray policy is found, and the policy includes a 'Fail Build' rule.",
"visibleRule": "command = Scan && watchesSource!=none"
},
{
"name": "allowBypassArchiveLimits",
"type": "boolean",
"label": "Bypass archive limits",
"defaultValue": "false",
"required": true,
"helpMarkDown": "Allow to bypass the indexer-app archive limits, defaults to false.",
"visibleRule": "command = Scan && watchesSource!=none"
},
{
"name": "collectBuildInfo",
"type": "boolean",
Expand Down Expand Up @@ -229,4 +238,4 @@
"workingDirectory": "$(currentDirectory)"
}
}
}
}

0 comments on commit 98bee1f

Please sign in to comment.