redhat-cop/pipeline-library

Add support for code quality and dependency analysis to builds

InfoSec812 opened this issue · 6 comments

For Maven builds, support sonar:sonar and dependency-check:check targets for SonarQube and OWASP Dependency Check

For NPM, add sonar-scanner and CLI version of OWASP Dependency Check to build slave and add commands to the Jenkinsfile

@InfoSec812 ; sonar is supported via:

Is there anything else that can be done in the lib? or can this be closed?

@InfoSec812 please see comment above.

@garethahealy I have a concern that this is Maven specific, and SonarQube handles multiple languages and platforms.

To move to something like the CLI[1], we'd need to include it within a builder image or have the pipeline download it.

[1] https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/

stale commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

I think we can close this as it's somewhat trivial to handle this in Maven, Gradle, and NPM (npx sonar-scanner ). We may need to revisit at some later date for GoLang, Python, Ruby, etc...