Coder Social home page Coder Social logo

Comments (12)

diegochavezcarro avatar diegochavezcarro commented on June 7, 2024

I don' have a dependency check report, so I think the warning about it does not matter. My issue is with ZAP report.

from zap-sonar-plugin.

OtherDevOpsGene avatar OtherDevOpsGene commented on June 7, 2024

Try with an absolute path.

sonar.zaproxy.reportPath=${WORKSPACE}/zaproxy-report.xml

It could be that the relative path isn't working.

from zap-sonar-plugin.

msj1130 avatar msj1130 commented on June 7, 2024

I got the results view like http://localhost:9000/project/issues?id=org.sonarsource.owasp%3Asonar-zap-plugin&resolved=false&tags=zaproxy. But not table of the result data.
How can i make widget like the Screenshot in sonarqube project dashboard?
Is it possible?
zap_screenshot

from zap-sonar-plugin.

priyankaraghavan avatar priyankaraghavan commented on June 7, 2024

I have the following error from log 09:29:07.363 INFO: Process ZAP report

09:29:07.363 WARN: ZAP report does not exist. SKIPPING. Please check property sonar.zaproxy.reportPath: /Users/maersk_mtc03/jenkins_home/workspace/samplepython/report/JENKINS_ZAP_VULNERABILITY_REPORT.xml

But with me as you can see I gave an absolute path still it cannot be seen. I have double checked path and it exists

from zap-sonar-plugin.

dantemorius avatar dantemorius commented on June 7, 2024

I have a similar problem, but even setting the absolute path, the report is not found:

OWASP ZAP Scan Step:
sh 'docker run --rm -v ${WORKSPACE}/zap/:/zap/wrk/:rw -t owasp/zap2docker-weekly zap-api-scan.py -t ${URL} -n ${JSON_FILE} -a -d -f openapi -x zaproxy-report.zap -r zaproxy-report.html -J zaproxy-report.json -I'

Archive Artifacts steps:
archiveArtifacts '${WORKSPACE}/zaproxy-report.zap' (or .xml)

SONAR SCAN Step:
sh 'docker run -v $(pwd):/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -s /usr/src/mymaven/settings.xml -DskipTests clean -f /usr/src/mymaven/$API-api/pom.xml package sonar:sonar -Dsonar.projectKey="${SONAR_NAME}-DAST" -Dsonar.projectName="${SONAR_NAME}-DAST" -Dsonar.zaproxy.reportPath="${WORKSPACE}/zaproxy-report.zap" -Dsonar.language=ZAP -Dsonar.lang.patterns.zap=**/*.zap -Dsonar.dependencyCheck.skip=true'

I have a first Quality Gate integrated with dependency-check at the same Pipeline, but this second don't find the report.I tried almost all possibilities of folders =/

I also tried with xml format in all steps, so i tried to set a custom extention because i saw it working in another pipeline.

When i check the workspace (or set a sh 'ls -lah') the report is there.

Any idea, plz?

from zap-sonar-plugin.

OtherDevOpsGene avatar OtherDevOpsGene commented on June 7, 2024

Fixed in release 2.1.0

from zap-sonar-plugin.

sandaliqbal1 avatar sandaliqbal1 commented on June 7, 2024

Does this plugin work with sonar version 8.x ?

from zap-sonar-plugin.

pethers avatar pethers commented on June 7, 2024

Using latest version using 8.6 at https://www.hack23.com/sonar/project/extension/zap/report_page?id=com.hack23.cia%3Acia-all&qualifier=TRK , so works well

from zap-sonar-plugin.

sandaliqbal1 avatar sandaliqbal1 commented on June 7, 2024

kool. Can you tell me how to push the report to sonar? I have sonar plugin in my build.gradle
plugins {
id 'org.sonarqube' version '2.8'
}
and I'm using following command
./gradlew sonarqube -Dsonar.zaproxy.htmlReportPath=${WORKSPACE}/report.html
but I dont see the report. My plugin version is 2.0.2.

from zap-sonar-plugin.

pethers avatar pethers commented on June 7, 2024

Using plugin version 2.2.0, but think at least 2.1.0 is required https://github.com/OtherDevOpsGene/zap-sonar-plugin/releases/tag/sonar-zap-plugin-2.1.0 since it's added report back support to 8.x sonarqube.

from zap-sonar-plugin.

OtherDevOpsGene avatar OtherDevOpsGene commented on June 7, 2024

That is correct. 2.1.0 added the report capability, and 2.2.0 is current as of yesterday.

from zap-sonar-plugin.

raph007 avatar raph007 commented on June 7, 2024

I'm running scan via Bamboo plugin (it runs sonnar scanner) and got this in "sonar-project.properties":

sonar.zaproxy.reportPath=./security_tests/output/security_scan_api.xml
sonar.zaproxy.htmlReportPath=./security_tests/output/security_scan_api.html

but no HTML report in Sonar:

image

Any ideas how to debug this (Sonar 8.5.1)? I tried absolute paths with no luck.

from zap-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.