gitlab-sast-to-sonarqube

0.0.7 • Public • Published

GitLab SAST Report convertor to SonarQube external issues report

Installation

This command can be installed locally as a dependency or globally. Please notice that currently for global installation ts-node should be installed globally too.

npm install -g gitlab-sast-to-sonarqube ts-node

How to use

To convert gitlab SAST json artifact to sonarqube external format please use the following command:

gitlab2sq gl-sast-report.json > sonarqube-report.json

or

gitlab2sq gl-sast-report.json --target=sonarqube-report.json

where gl-sast-report.json is existing SAST pipeline artifact and sonarqube-report.json is a new file

Using in the code

You can also use gitlab2sq function in your code. Both import and return object types are declared according to Gitlab and SonarQube specs

import gitlab2sq from "gitlab-sast-to-sonarqube/src/functions/gitlab2sq";

Useful links

Readme

Keywords

none

Package Sidebar

Install

npm i gitlab-sast-to-sonarqube

Weekly Downloads

76

Version

0.0.7

License

ISC

Unpacked Size

18.6 kB

Total Files

15

Last publish

Collaborators

  • theplenkov-npm