@agenticcli/shipguard 0.4.1 → 0.5.0
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/README.md +16 -6
- package/dist/checksum-manifest.json +5 -5
- package/dist/{chunk-ANTCYKRO.js → chunk-5T42QTNT.js} +1 -0
- package/dist/{chunk-5UMQEPDN.js → chunk-LD3EQSPU.js} +134 -23
- package/dist/{chunk-ALFVS2BH.js → chunk-QUBEIHTH.js} +1 -1
- package/dist/cli-facts.json +15 -5
- package/dist/cli.js +1162 -223
- package/dist/{config-generator-RMWNQQHW.js → config-generator-TUQCF2SD.js} +2 -2
- package/dist/{dist-PCVBV5S6.js → dist-PI34PRNW.js} +1 -1
- package/dist/{pro-scanner-HI5OGQYR.js → pro-scanner-7NX6BST3.js} +6 -2
- package/docs/llms.txt +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,8 +23,8 @@ shipguard scan
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
shipguard scan # Scan current project (rich output)
|
|
27
|
-
shipguard scan --strict # CI
|
|
26
|
+
shipguard scan # Scan current project (rich output; verdict in JSON `recommendation`)
|
|
27
|
+
shipguard scan --strict # CI hard gate: exit 1 on blocking findings (opt-in)
|
|
28
28
|
shipguard scan --json # Machine-readable output for agents/CI
|
|
29
29
|
shipguard scan --quiet # One-line verdict only
|
|
30
30
|
shipguard scan --pro # Pro rules — requires login
|
|
@@ -34,12 +34,22 @@ shipguard init # Generate .shipguard.yml policy file
|
|
|
34
34
|
|
|
35
35
|
## Exit codes
|
|
36
36
|
|
|
37
|
+
ShipGuard is triggered by an agent; output is read machine-readably (`--json`).
|
|
38
|
+
**ShipGuard informs — the caller chooses soft vs hard gating.** The exit code
|
|
39
|
+
is verdict-neutral by default: it does NOT tell you whether findings are
|
|
40
|
+
blocking, or whether the scan was degraded — read the JSON `recommendation`
|
|
41
|
+
and `degraded`/`degradedReasons` fields for that.
|
|
42
|
+
|
|
37
43
|
| Code | Meaning |
|
|
38
44
|
|------|---------|
|
|
39
|
-
| `0` |
|
|
40
|
-
| `1` | Blocked — `--strict`
|
|
41
|
-
| `2` | Config error
|
|
42
|
-
| `3` | Runtime error |
|
|
45
|
+
| `0` | Scan completed — verdict is in the JSON `recommendation` field. Returned even if findings are blocking, and even if the scan is degraded/partial. |
|
|
46
|
+
| `1` | Blocked — **only** with `--strict` + at least one blocking finding. |
|
|
47
|
+
| `2` | Config error, strictly (bad policy file, bad flags, non-project directory). Never doubles as "degraded scan." |
|
|
48
|
+
| `3` | Runtime error — the scan could not meaningfully run at all. |
|
|
49
|
+
|
|
50
|
+
A degraded/partial scan (e.g. pro rules unavailable, an oversized file skipped)
|
|
51
|
+
is exit `0` with `degraded: true` and a `degradedReasons[]` array in `--json`
|
|
52
|
+
output — it never hijacks exit `2`, which is reserved for genuine config errors.
|
|
43
53
|
|
|
44
54
|
## Telemetry
|
|
45
55
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"secrets": "
|
|
3
|
-
"auth": "
|
|
4
|
-
"database": "
|
|
5
|
-
"deployment": "
|
|
6
|
-
"payments": "
|
|
2
|
+
"secrets": "62af17fb25c0a77d8affc8cc37f697e81a0fe5bc9c675d3650156e4dc500922c",
|
|
3
|
+
"auth": "62af17fb25c0a77d8affc8cc37f697e81a0fe5bc9c675d3650156e4dc500922c",
|
|
4
|
+
"database": "62af17fb25c0a77d8affc8cc37f697e81a0fe5bc9c675d3650156e4dc500922c",
|
|
5
|
+
"deployment": "62af17fb25c0a77d8affc8cc37f697e81a0fe5bc9c675d3650156e4dc500922c",
|
|
6
|
+
"payments": "62af17fb25c0a77d8affc8cc37f697e81a0fe5bc9c675d3650156e4dc500922c"
|
|
7
7
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
re2jsV1Executor,
|
|
9
9
|
selectExpected,
|
|
10
10
|
verifyExactSet
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5T42QTNT.js";
|
|
12
12
|
|
|
13
13
|
// src/core/pro-scanner.ts
|
|
14
14
|
import * as path2 from "path";
|
|
@@ -721,7 +721,8 @@ async function verifyBundleResponse(response, request, floorPath) {
|
|
|
721
721
|
const VALID_MATCHER_TYPES = /* @__PURE__ */ new Set(["pattern", "file-presence", "file-relationship"]);
|
|
722
722
|
const VALID_BOUNDARY = /* @__PURE__ */ new Set(["none", "word", "token"]);
|
|
723
723
|
const EXEC_RULE_ALLOWED = /* @__PURE__ */ new Set([...EXEC_RULE_FIELDS]);
|
|
724
|
-
const EXEC_RULE_REQUIRED = ["enabled", "flags", "framework", "id", "matcherType", "severity", "tier", "title"];
|
|
724
|
+
const EXEC_RULE_REQUIRED = ["confidence", "enabled", "flags", "framework", "id", "matcherType", "severity", "tier", "title"];
|
|
725
|
+
const VALID_CONFIDENCE = /* @__PURE__ */ new Set(["HIGH", "MEDIUM", "LOW"]);
|
|
725
726
|
for (let i = 0; i < deliveredRulesRaw.length; i++) {
|
|
726
727
|
const r = deliveredRulesRaw[i];
|
|
727
728
|
if (r === null || typeof r !== "object" || Array.isArray(r)) {
|
|
@@ -730,6 +731,13 @@ async function verifyBundleResponse(response, request, floorPath) {
|
|
|
730
731
|
const rObj = r;
|
|
731
732
|
for (const field of EXEC_RULE_REQUIRED) {
|
|
732
733
|
if (!(field in rObj) || rObj[field] === void 0) {
|
|
734
|
+
if (field === "confidence") {
|
|
735
|
+
return {
|
|
736
|
+
ok: false,
|
|
737
|
+
reason: `selectedRules[${i}]: missing required field "confidence" \u2014 this is a pre-0.5.1 release without per-rule confidence. The CLI refuses to guess (no HIGH default); the server must serve a re-published release that includes confidence.`,
|
|
738
|
+
nonSafe: true
|
|
739
|
+
};
|
|
740
|
+
}
|
|
733
741
|
return { ok: false, reason: `selectedRules[${i}]: missing required field "${field}"`, nonSafe: true };
|
|
734
742
|
}
|
|
735
743
|
}
|
|
@@ -738,6 +746,9 @@ async function verifyBundleResponse(response, request, floorPath) {
|
|
|
738
746
|
return { ok: false, reason: `selectedRules[${i}]: unexpected field "${key}"`, nonSafe: true };
|
|
739
747
|
}
|
|
740
748
|
}
|
|
749
|
+
if (typeof rObj["confidence"] !== "string" || !VALID_CONFIDENCE.has(rObj["confidence"])) {
|
|
750
|
+
return { ok: false, reason: `selectedRules[${i}].confidence must be "HIGH"|"MEDIUM"|"LOW", got "${String(rObj["confidence"])}"`, nonSafe: true };
|
|
751
|
+
}
|
|
741
752
|
if (typeof rObj["enabled"] !== "boolean") {
|
|
742
753
|
return { ok: false, reason: `selectedRules[${i}].enabled must be a boolean`, nonSafe: true };
|
|
743
754
|
}
|
|
@@ -1458,6 +1469,36 @@ var secretsCheck = {
|
|
|
1458
1469
|
run: checkSecrets
|
|
1459
1470
|
};
|
|
1460
1471
|
|
|
1472
|
+
// src/utils/logger.ts
|
|
1473
|
+
import chalk from "chalk";
|
|
1474
|
+
var logger = {
|
|
1475
|
+
info: (msg) => console.error(chalk.blue("\u2139"), msg),
|
|
1476
|
+
success: (msg) => console.error(chalk.green("\u2713"), msg),
|
|
1477
|
+
warn: (msg) => console.error(chalk.yellow("\u26A0"), msg),
|
|
1478
|
+
error: (msg) => console.error(chalk.red("\u2717"), msg),
|
|
1479
|
+
finding: (severity, msg) => {
|
|
1480
|
+
const colors = {
|
|
1481
|
+
critical: chalk.bgRed.white,
|
|
1482
|
+
high: chalk.red,
|
|
1483
|
+
medium: chalk.yellow,
|
|
1484
|
+
low: chalk.blue,
|
|
1485
|
+
info: chalk.gray
|
|
1486
|
+
};
|
|
1487
|
+
const colorFn = colors[severity] || chalk.white;
|
|
1488
|
+
const label = severity.toUpperCase().padEnd(8);
|
|
1489
|
+
console.error(` ${colorFn(label)} ${msg}`);
|
|
1490
|
+
},
|
|
1491
|
+
score: (score, recommendation) => {
|
|
1492
|
+
const color = score <= 20 ? chalk.green : score <= 50 ? chalk.yellow : chalk.red;
|
|
1493
|
+
const icon = score <= 20 ? "\u2713" : score <= 50 ? "\u26A0" : "\u2717";
|
|
1494
|
+
console.error("");
|
|
1495
|
+
console.error(chalk.bold("ShipGuard Scan Result"));
|
|
1496
|
+
console.error(`Risk Score: ${color(`${score}/100`)}`);
|
|
1497
|
+
console.error(`Status: ${color(`${icon} ${recommendation.replace(/_/g, " ")}`)}`);
|
|
1498
|
+
},
|
|
1499
|
+
divider: () => console.error(chalk.gray("\u2500".repeat(50)))
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1461
1502
|
// src/checks/auth.ts
|
|
1462
1503
|
var SENSITIVE_NEXTJS_PAGE_PATTERN = /^(?:src\/)?app\/(admin|dashboard|billing|account|settings|management)(\/|$)/;
|
|
1463
1504
|
var SENSITIVE_API_ROUTE_PATTERN = /^(?:src\/)?app\/api\/(admin|users|billing|account|management)(\/|$)/;
|
|
@@ -1497,7 +1538,9 @@ function isNextjsProject(files) {
|
|
|
1497
1538
|
const pkg = JSON.parse(f.content);
|
|
1498
1539
|
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
1499
1540
|
if ("next" in deps) return true;
|
|
1500
|
-
} catch {
|
|
1541
|
+
} catch (err) {
|
|
1542
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
1543
|
+
logger.warn(`[auth] Could not parse ${f.relativePath} as JSON \u2014 Next.js dependency signal skipped for this file (app-router path / next.config.* signals still apply): ${detail}`);
|
|
1501
1544
|
}
|
|
1502
1545
|
}
|
|
1503
1546
|
}
|
|
@@ -2051,7 +2094,21 @@ function checkPackageJson(file, findings) {
|
|
|
2051
2094
|
let parsed;
|
|
2052
2095
|
try {
|
|
2053
2096
|
parsed = JSON.parse(file.content);
|
|
2054
|
-
} catch {
|
|
2097
|
+
} catch (err) {
|
|
2098
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
2099
|
+
logger.warn(`[database] Could not parse ${file.relativePath} as JSON \u2014 db-push-in-scripts check skipped for this file: ${detail}`);
|
|
2100
|
+
findings.push({
|
|
2101
|
+
id: "pkg-json-unparseable-database",
|
|
2102
|
+
title: `Could not parse ${file.relativePath} \u2014 database checks skipped for this file`,
|
|
2103
|
+
severity: "info",
|
|
2104
|
+
category: "database",
|
|
2105
|
+
file: file.relativePath,
|
|
2106
|
+
evidence: detail.slice(0, 200),
|
|
2107
|
+
confidence: "HIGH",
|
|
2108
|
+
explanation: 'package.json is not valid JSON, so the db-push-in-scripts check (dangerous "prisma db push" / "drizzle-kit push" in scripts) could not run against this file.',
|
|
2109
|
+
recommendation: "Fix the JSON syntax error in package.json so ShipGuard can scan its scripts.",
|
|
2110
|
+
blocking: false
|
|
2111
|
+
});
|
|
2055
2112
|
return;
|
|
2056
2113
|
}
|
|
2057
2114
|
const scripts = parsed["scripts"];
|
|
@@ -2426,7 +2483,21 @@ function checkPackageJson2(file) {
|
|
|
2426
2483
|
let parsed;
|
|
2427
2484
|
try {
|
|
2428
2485
|
parsed = JSON.parse(content);
|
|
2429
|
-
} catch {
|
|
2486
|
+
} catch (err) {
|
|
2487
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
2488
|
+
logger.warn(`[deployment] Could not parse ${relativePath} as JSON \u2014 NODE_ENV/DEBUG script checks skipped for this file: ${detail}`);
|
|
2489
|
+
findings.push({
|
|
2490
|
+
id: "pkg-json-unparseable-deployment",
|
|
2491
|
+
title: `Could not parse ${relativePath} \u2014 deployment checks skipped for this file`,
|
|
2492
|
+
severity: "info",
|
|
2493
|
+
category: "deployment",
|
|
2494
|
+
file: relativePath,
|
|
2495
|
+
evidence: detail.slice(0, 200),
|
|
2496
|
+
confidence: "HIGH",
|
|
2497
|
+
explanation: "package.json is not valid JSON, so the NODE_ENV=development / DEBUG=true script checks could not run against this file.",
|
|
2498
|
+
recommendation: "Fix the JSON syntax error in package.json so ShipGuard can scan its scripts.",
|
|
2499
|
+
blocking: false
|
|
2500
|
+
});
|
|
2430
2501
|
return findings;
|
|
2431
2502
|
}
|
|
2432
2503
|
const scripts = parsed["scripts"];
|
|
@@ -2877,20 +2948,48 @@ var NoRulesAppliedError = class extends Error {
|
|
|
2877
2948
|
this.name = "NoRulesAppliedError";
|
|
2878
2949
|
}
|
|
2879
2950
|
};
|
|
2951
|
+
var ProFetchError = class extends Error {
|
|
2952
|
+
code;
|
|
2953
|
+
/** Only populated for RATE_LIMITED, when the server sends a `Retry-After` header. */
|
|
2954
|
+
retryAfterSeconds;
|
|
2955
|
+
constructor(code, message, opts) {
|
|
2956
|
+
super(message);
|
|
2957
|
+
this.name = "ProFetchError";
|
|
2958
|
+
this.code = code;
|
|
2959
|
+
this.retryAfterSeconds = opts?.retryAfterSeconds;
|
|
2960
|
+
}
|
|
2961
|
+
};
|
|
2880
2962
|
async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath) {
|
|
2881
2963
|
assertTrustedApiUrl(apiUrl);
|
|
2882
2964
|
const token = await getAuthToken(apiUrl);
|
|
2883
|
-
if (!token) throw new
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
"
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2965
|
+
if (!token) throw new ProFetchError("AUTH_FAILED", "Not authenticated. Run `shipguard login` first.");
|
|
2966
|
+
let res;
|
|
2967
|
+
try {
|
|
2968
|
+
res = await fetch(`${apiUrl}/api/rules/fetch`, {
|
|
2969
|
+
method: "POST",
|
|
2970
|
+
headers: {
|
|
2971
|
+
"Authorization": `Bearer ${token}`,
|
|
2972
|
+
"Content-Type": "application/json",
|
|
2973
|
+
...scanId ? { "Idempotency-Key": scanId } : {}
|
|
2974
|
+
},
|
|
2975
|
+
body: JSON.stringify({ frameworks, categories, ...scanId ? { scanId } : {} })
|
|
2976
|
+
});
|
|
2977
|
+
} catch (networkErr) {
|
|
2978
|
+
const msg = networkErr instanceof Error ? networkErr.message : String(networkErr);
|
|
2979
|
+
throw new ProFetchError("SERVER_ERROR", `Network error contacting pro rules API: ${msg}`);
|
|
2980
|
+
}
|
|
2981
|
+
if (res.status === 401) throw new ProFetchError("AUTH_FAILED", "Auth expired. Run `shipguard login` again.");
|
|
2982
|
+
if (res.status === 402) throw new ProFetchError("INSUFFICIENT_CREDITS", "No credits. Buy at https://agenticcli.dev/dashboard/billing");
|
|
2983
|
+
if (res.status === 429) {
|
|
2984
|
+
const retryAfterHeader = res.headers.get("Retry-After");
|
|
2985
|
+
const retryAfterSeconds = retryAfterHeader ? parseInt(retryAfterHeader, 10) : void 0;
|
|
2986
|
+
throw new ProFetchError(
|
|
2987
|
+
"RATE_LIMITED",
|
|
2988
|
+
`Rate limited (429): too many pro rule fetches.`,
|
|
2989
|
+
{ retryAfterSeconds: Number.isFinite(retryAfterSeconds) ? retryAfterSeconds : void 0 }
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
if (res.status === 409) throw new ProFetchError("SERVER_ERROR", `Rule fetch conflict (409): ${res.statusText}`);
|
|
2894
2993
|
if (res.status === 422) {
|
|
2895
2994
|
let detail = res.statusText;
|
|
2896
2995
|
try {
|
|
@@ -2904,19 +3003,21 @@ async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath)
|
|
|
2904
3003
|
} catch (err) {
|
|
2905
3004
|
if (err instanceof NoRulesAppliedError) throw err;
|
|
2906
3005
|
}
|
|
2907
|
-
throw new
|
|
3006
|
+
throw new ProFetchError("BUNDLE_INVALID", `Rule fetch failed (422): ${detail}`);
|
|
2908
3007
|
}
|
|
2909
|
-
if (
|
|
3008
|
+
if (res.status >= 500) throw new ProFetchError("SERVER_ERROR", `Rule fetch failed (${res.status}): ${res.statusText}`);
|
|
3009
|
+
if (!res.ok) throw new ProFetchError("SERVER_ERROR", `Rule fetch failed: ${res.statusText}`);
|
|
2910
3010
|
const credits = parseInt(res.headers.get("X-Credits-Remaining") ?? "0", 10);
|
|
2911
3011
|
const rulesVersion = res.headers.get("X-Rules-Version") ?? void 0;
|
|
2912
3012
|
const rawText = await res.text();
|
|
2913
3013
|
let responseJson;
|
|
2914
3014
|
try {
|
|
2915
|
-
const { parseStrictNoDup: parseStrict } = await import("./dist-
|
|
3015
|
+
const { parseStrictNoDup: parseStrict } = await import("./dist-PI34PRNW.js");
|
|
2916
3016
|
responseJson = parseStrict(rawText);
|
|
2917
3017
|
} catch (parseErr) {
|
|
2918
3018
|
const msg = parseErr instanceof Error ? parseErr.message : String(parseErr);
|
|
2919
|
-
throw new
|
|
3019
|
+
throw new ProFetchError(
|
|
3020
|
+
"BUNDLE_INVALID",
|
|
2920
3021
|
`Rule fetch response rejected \u2014 duplicate-key or malformed JSON detected: ${msg}`
|
|
2921
3022
|
);
|
|
2922
3023
|
}
|
|
@@ -2935,7 +3036,8 @@ async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath)
|
|
|
2935
3036
|
effectiveFloorPath
|
|
2936
3037
|
);
|
|
2937
3038
|
if (!verifyResult.ok) {
|
|
2938
|
-
throw new
|
|
3039
|
+
throw new ProFetchError(
|
|
3040
|
+
"BUNDLE_INVALID",
|
|
2939
3041
|
`Attested bundle verification failed: ${verifyResult.reason}` + (verifyResult.nonSafe ? " [non-safe exit]" : "")
|
|
2940
3042
|
);
|
|
2941
3043
|
}
|
|
@@ -2950,7 +3052,12 @@ async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath)
|
|
|
2950
3052
|
explanation: r.title,
|
|
2951
3053
|
recommendation: "",
|
|
2952
3054
|
action,
|
|
2953
|
-
confidence:
|
|
3055
|
+
// Task #16 (hardcoded-confidence fix): carry the rule's REAL signed confidence.
|
|
3056
|
+
// verifyBundleResponse has already fail-closed if any rule lacks confidence, so
|
|
3057
|
+
// r.confidence is guaranteed present here — never a silent HIGH default. Corpus
|
|
3058
|
+
// governance (rule-corpus/rule-logic.md §4) calibrates action to this value, and
|
|
3059
|
+
// deriveBlocking() + CLI output/JSON depend on it being the author's signed intent.
|
|
3060
|
+
confidence: r.confidence,
|
|
2954
3061
|
matcher: {
|
|
2955
3062
|
type: r.matcherType === "pattern" ? "pattern" : r.matcherType,
|
|
2956
3063
|
// fileGlob: all 20 fields are hashed in 0.5.0 and delivered on the wire.
|
|
@@ -2984,7 +3091,8 @@ async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath)
|
|
|
2984
3091
|
});
|
|
2985
3092
|
return { rules, creditsRemaining: credits, rulesVersion };
|
|
2986
3093
|
}
|
|
2987
|
-
throw new
|
|
3094
|
+
throw new ProFetchError(
|
|
3095
|
+
"BUNDLE_INVALID",
|
|
2988
3096
|
"legacy-bundle-rejected: attestation required \u2014 server response lacks fullManifest. The server must deliver a BundleResponse with fullManifest + corpusAttestation (attested-release protocol, GC.14). Exit non-safe."
|
|
2989
3097
|
);
|
|
2990
3098
|
}
|
|
@@ -3205,6 +3313,7 @@ function runProRulesWithDispatch(rules, files, policy, cliVersion, table, manife
|
|
|
3205
3313
|
}
|
|
3206
3314
|
|
|
3207
3315
|
export {
|
|
3316
|
+
logger,
|
|
3208
3317
|
secretsCheck,
|
|
3209
3318
|
authCheck,
|
|
3210
3319
|
databaseCheck,
|
|
@@ -3219,8 +3328,10 @@ export {
|
|
|
3219
3328
|
loadChecksumManifest,
|
|
3220
3329
|
applySuppressions,
|
|
3221
3330
|
NoRulesAppliedError,
|
|
3331
|
+
ProFetchError,
|
|
3222
3332
|
fetchProRules,
|
|
3223
3333
|
validateBundleCompile,
|
|
3334
|
+
deriveBlocking,
|
|
3224
3335
|
RunProRulesFatalError,
|
|
3225
3336
|
runProRules,
|
|
3226
3337
|
runProRulesWithDispatch
|
package/dist/cli-facts.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.5.0",
|
|
3
3
|
"packageName": "@agenticcli/shipguard",
|
|
4
|
+
"license": "Elastic-2.0",
|
|
5
|
+
"licenseDisplay": "ELv2",
|
|
4
6
|
"nodeEngine": ">=20",
|
|
5
7
|
"exitCodes": {
|
|
6
8
|
"SAFE": 0,
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
"db-truncate",
|
|
28
30
|
"db-delete-without-where",
|
|
29
31
|
"db-alter-drop",
|
|
32
|
+
"pkg-json-unparseable-database",
|
|
30
33
|
"db-push-in-scripts",
|
|
31
34
|
"db-schema-without-migration",
|
|
32
35
|
"database",
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
"payment_webhook_without_signature_check",
|
|
35
38
|
"missing_idempotency",
|
|
36
39
|
"missing_error_handling",
|
|
40
|
+
"pkg-json-unparseable-deployment",
|
|
37
41
|
"deployment",
|
|
38
42
|
"deployment_cors_wildcard",
|
|
39
43
|
"deployment_source_maps_exposed",
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
"deployment_config_cors_wildcard_origin",
|
|
51
55
|
"deployment_config_debug_mode"
|
|
52
56
|
],
|
|
53
|
-
"freeRuleCount":
|
|
57
|
+
"freeRuleCount": 35,
|
|
54
58
|
"jsonSchemaFields": [
|
|
55
59
|
"findings",
|
|
56
60
|
"riskScore",
|
|
@@ -65,9 +69,15 @@
|
|
|
65
69
|
"degradedReasons",
|
|
66
70
|
"creditsWarning",
|
|
67
71
|
"rulesVersion",
|
|
68
|
-
"aiCodeIssues"
|
|
72
|
+
"aiCodeIssues",
|
|
73
|
+
"stateStatus",
|
|
74
|
+
"regressionCheckSkipped",
|
|
75
|
+
"regressionCheckSkippedReason",
|
|
76
|
+
"regressions",
|
|
77
|
+
"coverageChanged",
|
|
78
|
+
"scanIdReused"
|
|
69
79
|
],
|
|
70
|
-
"schemaVersion": "0.
|
|
80
|
+
"schemaVersion": "0.5",
|
|
71
81
|
"degradeCodes": [
|
|
72
82
|
"FILE_TOO_LARGE",
|
|
73
83
|
"OUTPUT_TRUNCATED",
|
|
@@ -97,5 +107,5 @@
|
|
|
97
107
|
],
|
|
98
108
|
"installSnippet": "npx @agenticcli/shipguard scan --changed --strict --json",
|
|
99
109
|
"re2Engine": true,
|
|
100
|
-
"generatedAt": "2026-07-
|
|
110
|
+
"generatedAt": "2026-07-18T20:19:53.031Z"
|
|
101
111
|
}
|