Giter VIP home page Giter VIP logo

Comments (12)

stevespringett avatar stevespringett commented on September 28, 2024

Did you specify:

sonar.dependencyCheck.reportPath

(case sensitive)

from dependency-check-sonar-plugin.

stevespringett avatar stevespringett commented on September 28, 2024

dependency-check-report.xml no longer needs to be part of the paths defined in sonar.sources. Can you test 1.0.3 and let me know if you're still having trouble.

from dependency-check-sonar-plugin.

fluidjeel avatar fluidjeel commented on September 28, 2024

I have installed the 1.0.3 version of the plugin. But still facing the same issue. I think the sensor ot getting invoked is the issue.

<sonar.src>.</sonar.src>
<sonar.dependencyCheck.reportPath>${project.build.directory}/dependency-check-report.xml</sonar.dependencyCheck.reportPath>

SOnar logs: Clearly shows the plugin is loaded, but sensor is not invoked. Do i need to decalre anything additional in the pom except the report path.

owasp-debug.txt

Note: the report is available in Jekins ${WORKSPACE}\dependency-check-report.xml

from dependency-check-sonar-plugin.

stevespringett avatar stevespringett commented on September 28, 2024

The plugin appears to be downloading, but it's not getting invoked. You should see something like this in your logs:

INFO - Sensor OWASP Dependency-Check
INFO - Process Dependency-Check report
INFO - Process Dependency-Check report (done) | time=977ms
INFO - Sensor OWASP Dependency-Check (done) | time=979ms

Setting sonar.dependencyCheck.reportPath is all that's required. If the plugin cannot find the report, you'll see this in the logs:

WARN - Dependency-Check report does not exist. SKIPPING. Please check property sonar.dependencyCheck.reportPath: path/to/dependency-check-report.xml

But I'm not even seeing that, which leads me to believe that Sonar isn't even running the plugin.

from dependency-check-sonar-plugin.

fluidjeel avatar fluidjeel commented on September 28, 2024

@stevespringett , I have tried re-installing and with different instances of Sonar. The result is the same.

from dependency-check-sonar-plugin.

stevespringett avatar stevespringett commented on September 28, 2024

Are you using Sonar Runner, Sonar Jenkins plugin, or Sonar Maven plugin to kick off the job?

from dependency-check-sonar-plugin.

fluidjeel avatar fluidjeel commented on September 28, 2024

Sonar Jenkins plugin

from dependency-check-sonar-plugin.

stevespringett avatar stevespringett commented on September 28, 2024

Using:
Jenkins 1.609.1
Jenkins SonarQube Plugin 2.3 (configured with SonarQube Runner 2.3 or 2.4)
SonarQube 5.2

I cannot reproduce the issue on a new/default SonarQube install using the embedded database. I typically use the following properties in a SonarQube build step in the Jenkins job config:

sonar.projectKey=my-project-key
sonar.projectName=my-project-name
sonar.projectVersion=1.0.0-SNAPSHOT
sonar.sources=${WORKSPACE}/src
sonar.dependencyCheck.reportPath=target/dependency-check-report.xml

Have you tried the examples?

from dependency-check-sonar-plugin.

fluidjeel avatar fluidjeel commented on September 28, 2024

I will give it a try soon and then keep you posted.

from dependency-check-sonar-plugin.

stevespringett avatar stevespringett commented on September 28, 2024

Closing. If you're still having issues, feel free to reopen or create a new ticket

from dependency-check-sonar-plugin.

fluidjeel avatar fluidjeel commented on September 28, 2024

sorry for the delay. it worked fine

from dependency-check-sonar-plugin.

ephemeris-lappis avatar ephemeris-lappis commented on September 28, 2024

Hello.

I'm using Sonar 5.6.5 with OWASP DC plugin 1.0.3. My jobs on Jenkins run dependency check (using maven plugin), and the results are collected on Jenkins. But the Sonar sensor is not launched (no log, no error in console out), and thus analysis results are not collected...

Should I configure something on the Sonar side to activate the sensor. Other analysis sensors run as expected : Cobertura, PMD, etc...

Thanks for your help.

Regards.

from dependency-check-sonar-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.