trivy-to-sonarqube
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

npm

NPM

Install

npm i trivy-to-sonarqube -g

Generate trivy report

trivy fs --ignorefile .trivyignore  -f json -o trivy-report.json  .
trivy config --ignorefile .trivyignore  -f json -o trivy-report.json  .
trivy image --ignorefile .trivyignore  -f json -o trivy-report.json  my-docker-image

Convert data to sonarqube generic issue format

trivy-to-sonarqube -f trivy-report.json -o ./my-sonarqube-report.json

Run sonar-scaner witch additional params

 sonar-scanner 
      -Dsonar.projectKey=MyProject
      -Dsonar.host.url=my-host.com
      -Dsonar.login=${SONARQUBE_TOKEN}
      -Dsonar.sources=.
      -Dsonar.externalIssuesReportPaths=./trivy-report.json

Package Sidebar

Install

npm i trivy-to-sonarqube

Weekly Downloads

658

Version

1.2.0

License

MIT

Unpacked Size

11.5 kB

Total Files

12

Last publish

Collaborators

  • blynskyniki