Skip to content

Dependency Check 12.1.6 - OSS credentials not working for gradle #7975

@vidyar2002-coder

Description

@vidyar2002-coder

I am using org.owasp.dependencycheck version 12.1.6. This my configuration in build.gradle

dependencyCheck {
nvd.apiKey = 'XXXXXX'
nvd.delay = XXXX
nvd.maxRetryCount = XX
nvd.resultsPerPage = XXXX
suppressionFile 'dependency-suppression.xml'
failBuildOnCVSS 3
analyzers.ossIndex.enabled = true
analyzers.ossIndex.username = 'XXXX'
analyzers.ossIndex.password = 'XXXXXXXXXXXXXXXX
analyzers.assemblyEnabled = false
}

But I am getting the below message

Disabling OSS Index analyzer due to missing user/password credentials. Authentication is now required: https://ossindex.sonatype.org/doc/auth-required

I tried moving the credentials to gradle.properties. But still I get the same message

Is there a working sample for gradle please

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions