mobbdev 0.0.138 → 0.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +8 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -50,7 +50,8 @@ var SCANNERS = {
|
|
|
50
50
|
Checkmarx: "checkmarx",
|
|
51
51
|
Codeql: "codeql",
|
|
52
52
|
Fortify: "fortify",
|
|
53
|
-
Snyk: "snyk"
|
|
53
|
+
Snyk: "snyk",
|
|
54
|
+
Sonarqube: "sonarqube"
|
|
54
55
|
};
|
|
55
56
|
var SupportedScannersZ = z.enum([SCANNERS.Checkmarx, SCANNERS.Snyk]);
|
|
56
57
|
var envVariablesSchema = z.object({
|
|
@@ -3789,7 +3790,8 @@ var scannerToFriendlyString = {
|
|
|
3789
3790
|
checkmarx: "Checkmarx",
|
|
3790
3791
|
codeql: "CodeQL",
|
|
3791
3792
|
fortify: "Fortify",
|
|
3792
|
-
snyk: "Snyk"
|
|
3793
|
+
snyk: "Snyk",
|
|
3794
|
+
sonarqube: "Sonarqube"
|
|
3793
3795
|
};
|
|
3794
3796
|
|
|
3795
3797
|
// src/features/analysis/add_fix_comments_for_pr/utils.ts
|
|
@@ -4616,7 +4618,8 @@ var scannerChoices = [
|
|
|
4616
4618
|
{ name: "Snyk", value: SCANNERS.Snyk },
|
|
4617
4619
|
{ name: "Checkmarx", value: SCANNERS.Checkmarx },
|
|
4618
4620
|
{ name: "Codeql", value: SCANNERS.Codeql },
|
|
4619
|
-
{ name: "Fortify", value: SCANNERS.Fortify }
|
|
4621
|
+
{ name: "Fortify", value: SCANNERS.Fortify },
|
|
4622
|
+
{ name: "Sonarqube", value: SCANNERS.Sonarqube }
|
|
4620
4623
|
];
|
|
4621
4624
|
async function choseScanner() {
|
|
4622
4625
|
const { scanner } = await inquirer.prompt({
|
|
@@ -5721,7 +5724,7 @@ function analyzeBuilder(yargs2) {
|
|
|
5721
5724
|
demandOption: true,
|
|
5722
5725
|
type: "string",
|
|
5723
5726
|
describe: chalk7.bold(
|
|
5724
|
-
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL)"
|
|
5727
|
+
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL, Sonarqube)"
|
|
5725
5728
|
)
|
|
5726
5729
|
}).option("repo", repoOption).option("p", {
|
|
5727
5730
|
alias: "src-path",
|
|
@@ -5768,7 +5771,7 @@ function reviewBuilder(yargs2) {
|
|
|
5768
5771
|
demandOption: true,
|
|
5769
5772
|
type: "string",
|
|
5770
5773
|
describe: chalk8.bold(
|
|
5771
|
-
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL)"
|
|
5774
|
+
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL, Sonarqube)"
|
|
5772
5775
|
)
|
|
5773
5776
|
}).option("repo", { ...repoOption, demandOption: true }).option("scanner", { ...scannerOptions, demandOption: true }).option("ref", { ...refOption, demandOption: true }).option("ch", {
|
|
5774
5777
|
alias: "commit-hash",
|