Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -42,26 +42,26 @@ describe("verify-secrets pattern detection", () => {
expect(findings.some((f) => f.patternId === "aws-access-key-id")).toBe(true);
});
it("detects Stripe live secret keys but not test keys", () => {
it("detects payment processor live secret keys but not test keys", () => {
const live = `const k = "sk_live_aaaaaaaaaaaaaaaaaaaaaaaaaaaa";`;
const test = `const k = "sk_test_aaaaaaaaaaaaaaaaaaaaaaaaaaaa";`;
const liveFindings = scanText(live, { filename: "apps/web/s.ts" });
const testFindings = scanText(test, { filename: "apps/web/s.ts" });
expect(liveFindings.some((f) => f.patternId === "stripe-secret-live")).toBe(
expect(liveFindings.some((f) => f.patternId === "payment-secret-live")).toBe(
true,
);
expect(
testFindings.some((f) => f.patternId === "stripe-secret-live"),
testFindings.some((f) => f.patternId === "payment-secret-live"),
).toBe(false);
});
it("detects Stripe webhook secrets only when the line contains 'live'", () => {
it("detects payment processor webhook secrets only when the line contains 'live'", () => {
const withLive = `const k = "whsec_aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; // live prod webhook`;
const withoutLive = `const k = "whsec_aaaaaaaaaaaaaaaaaaaaaaaaaaaa";`;
const a = scanText(withLive, { filename: "apps/web/w.ts" });
const b = scanText(withoutLive, { filename: "apps/web/w.ts" });
expect(a.some((f) => f.patternId === "stripe-webhook-live")).toBe(true);
expect(b.some((f) => f.patternId === "stripe-webhook-live")).toBe(false);
expect(a.some((f) => f.patternId === "payment-webhook-live")).toBe(true);
expect(b.some((f) => f.patternId === "payment-webhook-live")).toBe(false);
});
it("detects Slack bot tokens", () => {
@@ -105,7 +105,7 @@ describe("verify-secrets placeholder false-positive suppression", () => {
});
it("ignores 'your-' style placeholders", () => {
const sample = `STRIPE_KEY=sk_live_your-real-stripe-secret-here-1234`;
const sample = `PAYMENT_KEY=sk_live_your-real-payment-secret-here-1234`;
expect(scanText(sample, { filename: "x.ts" })).toHaveLength(0);
});
@@ -138,8 +138,7 @@ describe("verify-secrets allowlist semantics", () => {
).toBe(true);
});
it("treats .env.fly.example and .env.test as allowlisted", () => {
expect(isAllowlistedPath("/repo/.env.fly.example")).toBe(true);
it("treats .env.test as allowlisted", () => {
expect(isAllowlistedPath("/repo/.env.test")).toBe(true);
});
@@ -166,8 +165,8 @@ describe("verify-secrets registry shape", () => {
"github-fine-grained-pat",
"gitlab-pat",
"aws-access-key-id",
"stripe-secret-live",
"stripe-webhook-live",
"payment-secret-live",
"payment-webhook-live",
"slack-bot-token",
"private-key-header",
"jwt-like",