Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to suppress failures #102

Open
hypery2k opened this issue Oct 16, 2018 · 5 comments
Open

Add option to suppress failures #102

hypery2k opened this issue Oct 16, 2018 · 5 comments

Comments

@hypery2k
Copy link

Would be great a have a option to not fail the build, something like ignoreBuildStatus at this point.

If needed I can add a PR for this.

@jeremylong
Copy link
Collaborator

The option already exists (failOnError). See the ODC gradle documentation for more info.

dependencyCheck {
   failOnError = false
}

@hypery2k
Copy link
Author

thanks for the reply. I know this one, but if the vulnerabilities exceeds the threshold in my project the build fails even if i set this to false

@jeremylong
Copy link
Collaborator

Just getting back to this - instead of a new ignoreBuildStatus wouldn't just setting failBuildOnCVSS=11 work to disable this build failure?

@hypery2k
Copy link
Author

hypery2k commented Jan 1, 2019

mmh i want something like a dry run, keeping my current cvss threshold and logging the results silently. But when failBuildOnCVSS 11 set I modify my threshold

@vidgeus
Copy link

vidgeus commented Oct 15, 2024

As per discussion, it's already configurable. I have a boolean property (external configuration) that I set if I want to fail the build. You can do something like this in order to not fail. This is in my build.gradle:

dependencyCheck {
    if (owasp_failOnVulnerability.toBoolean()) {
        failBuildOnCVSS = 0
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants