Skip to content

Commit

Permalink
Merge pull request #118 from dependency-check/develop
Browse files Browse the repository at this point in the history
v6.1
  • Loading branch information
ejohn20 authored Jan 19, 2023
2 parents ec3d0e5 + f0abdcd commit c4e46d0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ async function run() {
}

// Default args
let args = `--project "${projectName}" --scan "${scanPath}" --out "${outField}"`;
let args = `--project "${projectName}" --out "${outField}"`;

// Scan paths
let paths = scanPath?.split(',');
paths?.forEach(path => {
args += ` --scan "${path}"`;
});

// Exclude switch
if (excludePath != sourcesDirectory)
Expand Down Expand Up @@ -195,7 +201,7 @@ async function run() {

// Process based on exit code
let failed = exitCode != 0;
let isViolation = exitCode == 1;
let isViolation = exitCode == (dependencyCheckVersion.match(/^[0-7]\./) ? 1 : 15);

// Process scan artifacts is required
let processArtifacts = !failed || isViolation;
Expand Down
20 changes: 10 additions & 10 deletions src/Tasks/dependency-check-build-task/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4e46d0

Please sign in to comment.