mobbdev 1.0.37 → 1.0.38
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 +23 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1582,6 +1582,7 @@ var VUL_REPORT_DIGEST_TIMEOUT_MS = 1e3 * 60 * 30;
|
|
|
1582
1582
|
// src/features/analysis/index.ts
|
|
1583
1583
|
import fs4 from "node:fs";
|
|
1584
1584
|
import path7 from "node:path";
|
|
1585
|
+
import { env as env2 } from "node:process";
|
|
1585
1586
|
import { pipeline } from "node:stream/promises";
|
|
1586
1587
|
|
|
1587
1588
|
// src/utils/index.ts
|
|
@@ -3819,9 +3820,17 @@ import { z as z15 } from "zod";
|
|
|
3819
3820
|
var EnvVariablesZod = z15.object({
|
|
3820
3821
|
GITLAB_API_TOKEN: z15.string().optional(),
|
|
3821
3822
|
GITHUB_API_TOKEN: z15.string().optional(),
|
|
3823
|
+
GIT_COMMITTER_EMAIL: z15.string().optional(),
|
|
3824
|
+
GIT_COMMITTER_NAME: z15.string().optional(),
|
|
3822
3825
|
GIT_PROXY_HOST: z15.string()
|
|
3823
3826
|
});
|
|
3824
|
-
var {
|
|
3827
|
+
var {
|
|
3828
|
+
GITLAB_API_TOKEN,
|
|
3829
|
+
GITHUB_API_TOKEN,
|
|
3830
|
+
GIT_PROXY_HOST,
|
|
3831
|
+
GIT_COMMITTER_EMAIL,
|
|
3832
|
+
GIT_COMMITTER_NAME
|
|
3833
|
+
} = EnvVariablesZod.parse(process.env);
|
|
3825
3834
|
|
|
3826
3835
|
// src/features/analysis/scm/utils/index.ts
|
|
3827
3836
|
import { z as z16 } from "zod";
|
|
@@ -8202,6 +8211,19 @@ var { CliError: CliError2, Spinner: Spinner2 } = utils_exports;
|
|
|
8202
8211
|
function _getScanSource(command) {
|
|
8203
8212
|
if (command === "review")
|
|
8204
8213
|
return "AUTO_FIXER" /* AutoFixer */;
|
|
8214
|
+
const envToCi = [
|
|
8215
|
+
["GITLAB_CI", "CI_GITLAB" /* CiGitlab */],
|
|
8216
|
+
["GITHUB_ACTIONS", "CI_GITHUB" /* CiGithub */],
|
|
8217
|
+
["JENKINS_URL", "CI_JENKINS" /* CiJenkins */],
|
|
8218
|
+
["CIRCLECI", "CI_CIRCLECI" /* CiCircleci */],
|
|
8219
|
+
["TF_BUILD", "CI_AZURE" /* CiAzure */],
|
|
8220
|
+
["bamboo_buildKey", "CI_BAMBOO" /* CiBamboo */]
|
|
8221
|
+
];
|
|
8222
|
+
for (const [envKey, source] of envToCi) {
|
|
8223
|
+
if (env2[envKey]) {
|
|
8224
|
+
return source;
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8205
8227
|
return "CLI" /* Cli */;
|
|
8206
8228
|
}
|
|
8207
8229
|
async function downloadRepo({
|