mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 10:11:24 +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:
@@ -12,7 +12,7 @@ import { createSafeAudioFixtureBuffer } from "./runner.test-utils.js";
|
||||
|
||||
vi.mock("../agents/model-auth.js", () => ({
|
||||
resolveApiKeyForProvider: vi.fn(async () => ({
|
||||
apiKey: "test-key",
|
||||
apiKey: "test-key", // pragma: allowlist secret
|
||||
source: "test",
|
||||
mode: "api-key",
|
||||
})),
|
||||
|
||||
@@ -14,7 +14,7 @@ import { createSafeAudioFixtureBuffer } from "./runner.test-utils.js";
|
||||
|
||||
vi.mock("../agents/model-auth.js", () => ({
|
||||
resolveApiKeyForProvider: vi.fn(async () => ({
|
||||
apiKey: "test-key",
|
||||
apiKey: "test-key", // pragma: allowlist secret
|
||||
source: "test",
|
||||
mode: "api-key",
|
||||
})),
|
||||
@@ -243,7 +243,7 @@ describe("applyMediaUnderstanding", () => {
|
||||
beforeEach(() => {
|
||||
mockedResolveApiKey.mockReset();
|
||||
mockedResolveApiKey.mockResolvedValue({
|
||||
apiKey: "test-key",
|
||||
apiKey: "test-key", // pragma: allowlist secret
|
||||
source: "test",
|
||||
mode: "api-key",
|
||||
});
|
||||
|
||||
@@ -20,7 +20,7 @@ describe("mistralProvider", () => {
|
||||
const result = await mistralProvider.transcribeAudio!({
|
||||
buffer: Buffer.from("audio-bytes"),
|
||||
fileName: "voice.ogg",
|
||||
apiKey: "test-mistral-key",
|
||||
apiKey: "test-mistral-key", // pragma: allowlist secret
|
||||
timeoutMs: 5000,
|
||||
fetchFn,
|
||||
});
|
||||
@@ -35,7 +35,7 @@ describe("mistralProvider", () => {
|
||||
await mistralProvider.transcribeAudio!({
|
||||
buffer: Buffer.from("audio"),
|
||||
fileName: "note.mp3",
|
||||
apiKey: "key",
|
||||
apiKey: "key", // pragma: allowlist secret
|
||||
timeoutMs: 1000,
|
||||
baseUrl: "https://custom.mistral.example/v1",
|
||||
fetchFn,
|
||||
|
||||
@@ -14,7 +14,7 @@ describe("runCapability video provider wiring", () => {
|
||||
models: {
|
||||
providers: {
|
||||
moonshot: {
|
||||
apiKey: "provider-key",
|
||||
apiKey: "provider-key", // pragma: allowlist secret
|
||||
baseUrl: "https://provider.example/v1",
|
||||
headers: { "X-Provider": "1" },
|
||||
models: [],
|
||||
@@ -85,7 +85,7 @@ describe("runCapability video provider wiring", () => {
|
||||
models: {
|
||||
providers: {
|
||||
moonshot: {
|
||||
apiKey: "moonshot-key",
|
||||
apiKey: "moonshot-key", // pragma: allowlist secret
|
||||
models: [],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user