mobbdev 1.0.37 → 1.0.39

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.
Files changed (2) hide show
  1. package/dist/index.mjs +25 -2
  2. package/package.json +14 -14
package/dist/index.mjs CHANGED
@@ -846,7 +846,8 @@ var FixPageFixReportZ = z3.object({
846
846
  name: z3.string().nullable(),
847
847
  originalUrl: z3.string(),
848
848
  reference: z3.string(),
849
- commitSha: z3.string()
849
+ commitSha: z3.string(),
850
+ isKnownBranch: z3.boolean().nullable()
850
851
  }),
851
852
  vulnerabilityReport: z3.object({
852
853
  vendor: z3.nativeEnum(Vulnerability_Report_Vendor_Enum),
@@ -1582,6 +1583,7 @@ var VUL_REPORT_DIGEST_TIMEOUT_MS = 1e3 * 60 * 30;
1582
1583
  // src/features/analysis/index.ts
1583
1584
  import fs4 from "node:fs";
1584
1585
  import path7 from "node:path";
1586
+ import { env as env2 } from "node:process";
1585
1587
  import { pipeline } from "node:stream/promises";
1586
1588
 
1587
1589
  // src/utils/index.ts
@@ -3819,9 +3821,17 @@ import { z as z15 } from "zod";
3819
3821
  var EnvVariablesZod = z15.object({
3820
3822
  GITLAB_API_TOKEN: z15.string().optional(),
3821
3823
  GITHUB_API_TOKEN: z15.string().optional(),
3824
+ GIT_COMMITTER_EMAIL: z15.string().optional(),
3825
+ GIT_COMMITTER_NAME: z15.string().optional(),
3822
3826
  GIT_PROXY_HOST: z15.string()
3823
3827
  });
3824
- var { GITLAB_API_TOKEN, GITHUB_API_TOKEN, GIT_PROXY_HOST } = EnvVariablesZod.parse(process.env);
3828
+ var {
3829
+ GITLAB_API_TOKEN,
3830
+ GITHUB_API_TOKEN,
3831
+ GIT_PROXY_HOST,
3832
+ GIT_COMMITTER_EMAIL,
3833
+ GIT_COMMITTER_NAME
3834
+ } = EnvVariablesZod.parse(process.env);
3825
3835
 
3826
3836
  // src/features/analysis/scm/utils/index.ts
3827
3837
  import { z as z16 } from "zod";
@@ -8202,6 +8212,19 @@ var { CliError: CliError2, Spinner: Spinner2 } = utils_exports;
8202
8212
  function _getScanSource(command) {
8203
8213
  if (command === "review")
8204
8214
  return "AUTO_FIXER" /* AutoFixer */;
8215
+ const envToCi = [
8216
+ ["GITLAB_CI", "CI_GITLAB" /* CiGitlab */],
8217
+ ["GITHUB_ACTIONS", "CI_GITHUB" /* CiGithub */],
8218
+ ["JENKINS_URL", "CI_JENKINS" /* CiJenkins */],
8219
+ ["CIRCLECI", "CI_CIRCLECI" /* CiCircleci */],
8220
+ ["TF_BUILD", "CI_AZURE" /* CiAzure */],
8221
+ ["bamboo_buildKey", "CI_BAMBOO" /* CiBamboo */]
8222
+ ];
8223
+ for (const [envKey, source] of envToCi) {
8224
+ if (env2[envKey]) {
8225
+ return source;
8226
+ }
8227
+ }
8205
8228
  return "CLI" /* Cli */;
8206
8229
  }
8207
8230
  async function downloadRepo({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  "debug": "4.4.0",
48
48
  "dotenv": "16.4.7",
49
49
  "extract-zip": "2.0.1",
50
- "globby": "14.0.2",
50
+ "globby": "14.1.0",
51
51
  "graphql": "16.10.0",
52
52
  "graphql-request": "6.1.0",
53
53
  "graphql-tag": "2.12.6",
@@ -61,24 +61,24 @@
61
61
  "octokit": "3.2.1",
62
62
  "open": "8.4.2",
63
63
  "parse-diff": "0.11.1",
64
- "semver": "7.6.3",
64
+ "semver": "7.7.1",
65
65
  "simple-git": "3.27.0",
66
- "snyk": "1.1295.2",
66
+ "snyk": "1.1295.3",
67
67
  "supports-color": "10.0.0",
68
68
  "tar": "6.2.1",
69
69
  "tmp": "0.2.3",
70
70
  "undici": "6.21.1",
71
- "uuid": "11.0.5",
71
+ "uuid": "11.1.0",
72
72
  "ws": "8.18.0",
73
73
  "yargs": "17.7.2",
74
- "zod": "3.24.1"
74
+ "zod": "3.24.2"
75
75
  },
76
76
  "devDependencies": {
77
- "@graphql-codegen/cli": "5.0.3",
78
- "@graphql-codegen/typescript": "4.1.2",
77
+ "@graphql-codegen/cli": "5.0.5",
78
+ "@graphql-codegen/typescript": "4.1.4",
79
79
  "@graphql-codegen/typescript-graphql-request": "6.2.0",
80
- "@graphql-codegen/typescript-operations": "4.4.0",
81
- "@octokit/types": "13.7.0",
80
+ "@graphql-codegen/typescript-operations": "4.5.0",
81
+ "@octokit/types": "13.8.0",
82
82
  "@types/adm-zip": "0.5.7",
83
83
  "@types/chalk-animation": "1.6.3",
84
84
  "@types/configstore": "6.0.2",
@@ -92,16 +92,16 @@
92
92
  "@types/yargs": "17.0.33",
93
93
  "@typescript-eslint/eslint-plugin": "7.17.0",
94
94
  "@typescript-eslint/parser": "7.17.0",
95
- "@vitest/coverage-istanbul": "3.0.4",
96
- "@vitest/ui": "3.0.4",
95
+ "@vitest/coverage-istanbul": "3.0.6",
96
+ "@vitest/ui": "3.0.6",
97
97
  "eslint": "8.57.0",
98
98
  "eslint-plugin-import": "2.31.0",
99
99
  "eslint-plugin-prettier": "5.2.3",
100
100
  "eslint-plugin-simple-import-sort": "10.0.0",
101
- "prettier": "3.4.2",
101
+ "prettier": "3.5.1",
102
102
  "tsup": "7.2.0",
103
103
  "typescript": "4.9.5",
104
- "vitest": "3.0.4"
104
+ "vitest": "3.0.6"
105
105
  },
106
106
  "engines": {
107
107
  "node": ">=18.20.4"