@vibgrate/cli 1.0.76 → 1.0.78
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/{baseline-ZFMJMB7S.js → baseline-NRKROYVK.js} +2 -2
- package/dist/{chunk-CCU77BBA.js → chunk-DKSPLRJV.js} +1 -1
- package/dist/{chunk-S5HZOJPF.js → chunk-TKNDQ337.js} +5 -0
- package/dist/cli.js +1211 -120
- package/dist/hcs-worker.js +394205 -0
- package/dist/index.js +1 -1
- package/package.json +9 -5
|
@@ -1378,6 +1378,9 @@ function parseDsn(dsn) {
|
|
|
1378
1378
|
workspaceId: match[5]
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
|
+
function computeHmac(body, secret) {
|
|
1382
|
+
return crypto3.createHmac("sha256", secret).update(body).digest("base64");
|
|
1383
|
+
}
|
|
1381
1384
|
var pushCommand = new Command2("push").description("Push scan results to Vibgrate API").option("--dsn <dsn>", "DSN token (or use VIBGRATE_DSN env)").option("--region <region>", "Override data residency region (us, eu)").option("--file <file>", "Scan artifact file", ".vibgrate/scan_result.json").option("--strict", "Fail on upload errors").action(async (opts) => {
|
|
1382
1385
|
const dsn = opts.dsn || process.env.VIBGRATE_DSN;
|
|
1383
1386
|
if (!dsn) {
|
|
@@ -12684,6 +12687,8 @@ export {
|
|
|
12684
12687
|
formatSarif,
|
|
12685
12688
|
formatMarkdown,
|
|
12686
12689
|
dsnCommand,
|
|
12690
|
+
parseDsn,
|
|
12691
|
+
computeHmac,
|
|
12687
12692
|
pushCommand,
|
|
12688
12693
|
runScan,
|
|
12689
12694
|
scanCommand
|