mobbdev 0.0.138 → 0.0.140
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 +10 -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({
|
|
@@ -1349,6 +1350,8 @@ var getIssueType = (issueType) => {
|
|
|
1349
1350
|
return "Privacy Violation";
|
|
1350
1351
|
case "INCOMPLETE_URL_SCHEME_CHECK" /* IncompleteUrlSchemeCheck */:
|
|
1351
1352
|
return "Incomplete URL Scheme Check";
|
|
1353
|
+
case "VALUE_NEVER_READ" /* ValueNeverRead */:
|
|
1354
|
+
return "Value Never Read";
|
|
1352
1355
|
case "VALUE_SHADOWING" /* ValueShadowing */:
|
|
1353
1356
|
return "Value Shadowing";
|
|
1354
1357
|
default: {
|
|
@@ -3789,7 +3792,8 @@ var scannerToFriendlyString = {
|
|
|
3789
3792
|
checkmarx: "Checkmarx",
|
|
3790
3793
|
codeql: "CodeQL",
|
|
3791
3794
|
fortify: "Fortify",
|
|
3792
|
-
snyk: "Snyk"
|
|
3795
|
+
snyk: "Snyk",
|
|
3796
|
+
sonarqube: "Sonarqube"
|
|
3793
3797
|
};
|
|
3794
3798
|
|
|
3795
3799
|
// src/features/analysis/add_fix_comments_for_pr/utils.ts
|
|
@@ -4616,7 +4620,8 @@ var scannerChoices = [
|
|
|
4616
4620
|
{ name: "Snyk", value: SCANNERS.Snyk },
|
|
4617
4621
|
{ name: "Checkmarx", value: SCANNERS.Checkmarx },
|
|
4618
4622
|
{ name: "Codeql", value: SCANNERS.Codeql },
|
|
4619
|
-
{ name: "Fortify", value: SCANNERS.Fortify }
|
|
4623
|
+
{ name: "Fortify", value: SCANNERS.Fortify },
|
|
4624
|
+
{ name: "Sonarqube", value: SCANNERS.Sonarqube }
|
|
4620
4625
|
];
|
|
4621
4626
|
async function choseScanner() {
|
|
4622
4627
|
const { scanner } = await inquirer.prompt({
|
|
@@ -5721,7 +5726,7 @@ function analyzeBuilder(yargs2) {
|
|
|
5721
5726
|
demandOption: true,
|
|
5722
5727
|
type: "string",
|
|
5723
5728
|
describe: chalk7.bold(
|
|
5724
|
-
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL)"
|
|
5729
|
+
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL, Sonarqube)"
|
|
5725
5730
|
)
|
|
5726
5731
|
}).option("repo", repoOption).option("p", {
|
|
5727
5732
|
alias: "src-path",
|
|
@@ -5768,7 +5773,7 @@ function reviewBuilder(yargs2) {
|
|
|
5768
5773
|
demandOption: true,
|
|
5769
5774
|
type: "string",
|
|
5770
5775
|
describe: chalk8.bold(
|
|
5771
|
-
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL)"
|
|
5776
|
+
"Select the vulnerability report to analyze (Checkmarx, Snyk, Fortify, CodeQL, Sonarqube)"
|
|
5772
5777
|
)
|
|
5773
5778
|
}).option("repo", { ...repoOption, demandOption: true }).option("scanner", { ...scannerOptions, demandOption: true }).option("ref", { ...refOption, demandOption: true }).option("ch", {
|
|
5774
5779
|
alias: "commit-hash",
|