Skip to content
Open
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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ __Optional__ - do not include dependency graphs in the JSON output.

Default Value: __false__

### `no-upload`
__Optional__ - run the Veracode SCA scan with `--no-upload` to skip uploading scan results to the Veracode platform.

Default Value: __false__

## Examples

### Scan your repository with textual output
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ inputs:
description: "Run the SRCCLR with the `--no-graphs` option"
required: false
default: "false"
no-upload:
description: "Run the SRCCLR with the `--no-upload` option to skip uploading scan results to the Veracode platform"
required: false
default: "false"
platformType:
description: 'Specifies the platform environment type — use CLOUD for GitHub.com or ENTERPRISE for GitHub Enterprise Server (GHES).'
default: 'CLOUD'
Expand Down
6,734 changes: 3,367 additions & 3,367 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const options: Options = {
debug: core.getBooleanInput('debug'),
"skip-vms": core.getBooleanInput('skip-vms'),
"no-graphs": core.getBooleanInput('no-graphs'),
noUpload: core.getBooleanInput('no-upload'),
recursive: core.getBooleanInput('recursive'),
"skip-collectors": core.getInput('skip-collectors').split(','),
"scan-collectors": core.getInput('scan-collectors').split(','),
Expand Down
1 change: 1 addition & 0 deletions src/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Options {
recursive:boolean,
"skip-vms":boolean,
"no-graphs":boolean,
noUpload: boolean,
"skip-collectors": Array<string>,
"scan-collectors": Array<string>
platformType: string,
Expand Down
2 changes: 1 addition & 1 deletion src/srcclr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async function runScan(options: Options): Promise<void> {
// Always use the base artifact name regardless of output format
// (whether it contains JSON+TXT with --show-cli or TXT only)
const artifactNameBase = 'Veracode Agent Based SCA Results';
extraCommands = `${extraCommands}${options.recursive ? '--recursive ' : ''}${options.quick ? '--quick ' : ''}${options.allowDirty ? '--allow-dirty ' : ''}${options.updateAdvisor ? '--update-advisor ' : ''}${skipVMS ? '--skip-vms ' : ''}${noGraphs ? '--no-graphs ' : ''}${options.debug ? '--debug ' : ''}${skipCollectorsAttr}${scanCollectorsAttr}`;
extraCommands = `${extraCommands}${options.recursive ? '--recursive ' : ''}${options.quick ? '--quick ' : ''}${options.allowDirty ? '--allow-dirty ' : ''}${options.updateAdvisor ? '--update-advisor ' : ''}${skipVMS ? '--skip-vms ' : ''}${noGraphs ? '--no-graphs ' : ''}${options.noUpload ? '--no-upload ' : ''}${options.debug ? '--debug ' : ''}${skipCollectorsAttr}${scanCollectorsAttr}`;

if (runnerOS == 'Windows') {
const powershellCommand = `powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest https://sca-downloads.veracode.com/ci.ps1 -OutFile $env:TEMP\\ci.ps1; & $env:TEMP\\ci.ps1 -s -- scan ${extraCommands} ${commandOutput}"`
Expand Down
1 change: 1 addition & 0 deletions src/test/testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const options: Options = {
recursive:false,
"skip-vms":false,
"no-graphs":false,
noUpload: false,
platformType:'CLOUD',
breakBuildOnPolicyFindings:'false',
scaFixEnabled: false,
Expand Down