mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 05:38:37 +00:00
CI: restore main detect-secrets scan (#38438)
* Tests: stabilize detect-secrets fixtures * Tests: fix rebased detect-secrets false positives * Docs: keep snippets valid under detect-secrets * Tests: finalize detect-secrets false-positive fixes * Tests: reduce detect-secrets false positives * Tests: keep detect-secrets pragmas inline * Tests: remediate next detect-secrets batch * Tests: tighten detect-secrets allowlists * Tests: stabilize detect-secrets formatter drift
This commit is contained in:
@@ -36,7 +36,7 @@ describe("FeishuConfigSchema webhook validation", () => {
|
||||
const result = FeishuConfigSchema.safeParse({
|
||||
connectionMode: "webhook",
|
||||
appId: "cli_top",
|
||||
appSecret: "secret_top",
|
||||
appSecret: "secret_top", // pragma: allowlist secret
|
||||
});
|
||||
|
||||
expect(result.success).toBe(false);
|
||||
@@ -52,7 +52,7 @@ describe("FeishuConfigSchema webhook validation", () => {
|
||||
connectionMode: "webhook",
|
||||
verificationToken: "token_top",
|
||||
appId: "cli_top",
|
||||
appSecret: "secret_top",
|
||||
appSecret: "secret_top", // pragma: allowlist secret
|
||||
});
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
@@ -64,7 +64,7 @@ describe("FeishuConfigSchema webhook validation", () => {
|
||||
main: {
|
||||
connectionMode: "webhook",
|
||||
appId: "cli_main",
|
||||
appSecret: "secret_main",
|
||||
appSecret: "secret_main", // pragma: allowlist secret
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -86,7 +86,7 @@ describe("FeishuConfigSchema webhook validation", () => {
|
||||
main: {
|
||||
connectionMode: "webhook",
|
||||
appId: "cli_main",
|
||||
appSecret: "secret_main",
|
||||
appSecret: "secret_main", // pragma: allowlist secret
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -171,7 +171,7 @@ describe("FeishuConfigSchema defaultAccount", () => {
|
||||
const result = FeishuConfigSchema.safeParse({
|
||||
defaultAccount: "router-d",
|
||||
accounts: {
|
||||
"router-d": { appId: "cli_router", appSecret: "secret_router" },
|
||||
"router-d": { appId: "cli_router", appSecret: "secret_router" }, // pragma: allowlist secret
|
||||
},
|
||||
});
|
||||
|
||||
@@ -182,7 +182,7 @@ describe("FeishuConfigSchema defaultAccount", () => {
|
||||
const result = FeishuConfigSchema.safeParse({
|
||||
defaultAccount: "router-d",
|
||||
accounts: {
|
||||
backup: { appId: "cli_backup", appSecret: "secret_backup" },
|
||||
backup: { appId: "cli_backup", appSecret: "secret_backup" }, // pragma: allowlist secret
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user