zappie 0.1.3 → 0.1.4
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/CHANGELOG.md +6 -0
- package/dist/cli.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -115,6 +115,8 @@ Options:
|
|
|
115
115
|
${registryFlag} Use a registry URL or folder. Default: zappie.json, then ${DEFAULT_REGISTRY}
|
|
116
116
|
--json Print machine-readable output for init, add, list, diff, doctor, check or verify
|
|
117
117
|
--all Keep running check after a step fails
|
|
118
|
+
--audit <mode> Turn dependency auditing off, report findings, or enforce critical findings
|
|
119
|
+
--history Include Git history in the secret scan
|
|
118
120
|
--suite <name> Run the standard or extended verify suite
|
|
119
121
|
--only <checks> Run only these verify checks, such as V01,V04 or quick
|
|
120
122
|
--report <file> Save your verification report to a file
|
|
@@ -153,6 +155,8 @@ function parseCommand(argv) {
|
|
|
153
155
|
installed: { type: "boolean" },
|
|
154
156
|
apply: { type: "boolean" },
|
|
155
157
|
all: { type: "boolean" },
|
|
158
|
+
audit: { type: "string" },
|
|
159
|
+
history: { type: "boolean" },
|
|
156
160
|
suite: { type: "string" },
|
|
157
161
|
report: { type: "string" },
|
|
158
162
|
key: { type: "string" },
|
|
@@ -240,10 +244,16 @@ ${usage}`);
|
|
|
240
244
|
|
|
241
245
|
${usage}`);
|
|
242
246
|
}
|
|
247
|
+
const audit = values.audit ?? "report";
|
|
248
|
+
if (audit !== "off" && audit !== "report" && audit !== "enforce") {
|
|
249
|
+
throw new CliError("Choose off, report or enforce for --audit.");
|
|
250
|
+
}
|
|
243
251
|
return {
|
|
244
252
|
name: name2,
|
|
245
253
|
directory: rest[0],
|
|
246
254
|
all: values.all === true,
|
|
255
|
+
audit,
|
|
256
|
+
history: values.history === true,
|
|
247
257
|
json: json4
|
|
248
258
|
};
|
|
249
259
|
}
|
|
@@ -328,6 +338,8 @@ async function runProjectCheck(options) {
|
|
|
328
338
|
const result = await loaded.runCheck({
|
|
329
339
|
cwd: options.cwd,
|
|
330
340
|
all: options.all,
|
|
341
|
+
audit: options.audit ?? "report",
|
|
342
|
+
history: options.history ?? false,
|
|
331
343
|
packageManager: options.packageManager,
|
|
332
344
|
...options.signal ? { signal: options.signal } : {}
|
|
333
345
|
});
|
|
@@ -1893,6 +1905,8 @@ async function main(argv) {
|
|
|
1893
1905
|
const result = await runProjectCheck({
|
|
1894
1906
|
cwd: directory,
|
|
1895
1907
|
all: command.all,
|
|
1908
|
+
audit: command.audit,
|
|
1909
|
+
history: command.history,
|
|
1896
1910
|
json: command.json,
|
|
1897
1911
|
packageManager: detectPackageManager(directory),
|
|
1898
1912
|
signal: controller.signal
|