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

Adding a suppression xml causes step to fail #86

Open
LackOfGravity opened this issue Jul 1, 2021 · 1 comment
Open

Adding a suppression xml causes step to fail #86

LackOfGravity opened this issue Jul 1, 2021 · 1 comment

Comments

@LackOfGravity
Copy link

Scan runs correctly and produces report.

However, when I add a suppression file the scan fails with the error below

image

Looking at the Logs I can see that there is a warning..

[WARN] Unable to create temp file for suppression file'D:\a\15\s$\XXXX\DependencySuppression\DependencySupression20210630.xml'

Followed by:

[ERROR] Exception occurred initializing Vulnerability Suppression Analyzer.

YAML:

steps:

  • task: dependency-check.dependencycheck.dependency-check-build-task.dependency-check-build-task@6
    displayName: 'Dependency Check'
    inputs:
    projectName: 'XXXXMain'
    scanPath: '$/XXXX/Main'
    suppressionPath: '$/XXXX/DependencySuppression/DependencySupression20210630.xml'
    warnOnCVSSViolation: true

XML file is under source control .

@Oriana-Olivetti
Copy link

I'm having the same issue. Is there any workaround?

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

No branches or pull requests

2 participants