From 1649d9dfea2b76b984de69f2b6c916b34aabccdc Mon Sep 17 00:00:00 2001 From: StillKnotKnown Date: Mon, 16 Mar 2026 14:10:35 +0200 Subject: [PATCH] fix: replace secret-shaped fixture literals with redacted placeholders Replace sk_live_... and secret_live_... values with and to avoid triggering Gitleaks false positives. Resolves coderabbitai:comment_2939656546 --- apps/desktop/src/shared/test-utils/pr-fixtures.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/shared/test-utils/pr-fixtures.ts b/apps/desktop/src/shared/test-utils/pr-fixtures.ts index 56c9e967..c7464c91 100644 --- a/apps/desktop/src/shared/test-utils/pr-fixtures.ts +++ b/apps/desktop/src/shared/test-utils/pr-fixtures.ts @@ -185,8 +185,8 @@ export const PR_WITH_SECURITY_ISSUE: PRContext = { deletions: 0, status: 'added', patch: `@@ -0,0 +1,8 @@ -+export const API_KEY = 'sk_live_1234567890abcdef'; -+export const API_SECRET = 'secret_live_abcdefghij'; ++export const API_KEY = ''; ++export const API_SECRET = ''; + +export async function fetchAPI(endpoint: string) { + const response = await fetch(endpoint, { @@ -230,7 +230,7 @@ index 0000000..1111111 --- /dev/null +++ b/src/config/api.ts @@ -0,0 +1,8 @@ -+export const API_KEY = 'sk_live_1234567890abcdef'; ++export const API_KEY = ''; + diff --git a/src/database/query.ts b/src/database/query.ts new file mode 100644