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:
Vincent Koc
2026-03-07 13:06:35 -05:00
committed by GitHub
parent 46e324e269
commit e4d80ed556
137 changed files with 1231 additions and 2700 deletions

View File

@@ -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",
})),

View File

@@ -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",
});

View File

@@ -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,

View File

@@ -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: [],
},
},