From 5cd6226626a6f109fb5827a6e3b1b2f9cd0f4282 Mon Sep 17 00:00:00 2001 From: Boris Besemer Date: Thu, 9 Jul 2026 09:33:23 +0200 Subject: [PATCH] fix(skills): replace fake tokens with obvious placeholders The fake tokens are hitting security scanning alerts, replacing them with obvious placeholders will prevent it while agents still know it's supposed to be a token --- packages/examples/src/environment-variables.tsx | 2 +- packages/examples/src/tool-output-error.tsx | 2 +- skills/ai-elements/scripts/environment-variables.tsx | 2 +- skills/ai-elements/scripts/tool-output-error.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/examples/src/environment-variables.tsx b/packages/examples/src/environment-variables.tsx index 56577a6f..44d1f692 100644 --- a/packages/examples/src/environment-variables.tsx +++ b/packages/examples/src/environment-variables.tsx @@ -20,7 +20,7 @@ const variables = [ required: true, value: "postgresql://localhost:5432/mydb", }, - { name: "API_KEY", required: true, value: "sk-1234567890abcdef" }, + { name: "API_KEY", required: true, value: "" }, { name: "NODE_ENV", required: false, value: "production" }, { name: "PORT", required: false, value: "3000" }, ]; diff --git a/packages/examples/src/tool-output-error.tsx b/packages/examples/src/tool-output-error.tsx index 596961c3..11fc982d 100644 --- a/packages/examples/src/tool-output-error.tsx +++ b/packages/examples/src/tool-output-error.tsx @@ -14,7 +14,7 @@ const toolCall: ToolUIPart = { "Connection timeout: The request took longer than 5000ms to complete. Please check your network connection and try again.", input: { headers: { - Authorization: "Bearer token123", + Authorization: "Bearer ", "Content-Type": "application/json", }, method: "GET", diff --git a/skills/ai-elements/scripts/environment-variables.tsx b/skills/ai-elements/scripts/environment-variables.tsx index 703accd8..16153371 100644 --- a/skills/ai-elements/scripts/environment-variables.tsx +++ b/skills/ai-elements/scripts/environment-variables.tsx @@ -20,7 +20,7 @@ const variables = [ required: true, value: "postgresql://localhost:5432/mydb", }, - { name: "API_KEY", required: true, value: "sk-1234567890abcdef" }, + { name: "API_KEY", required: true, value: "" }, { name: "NODE_ENV", required: false, value: "production" }, { name: "PORT", required: false, value: "3000" }, ]; diff --git a/skills/ai-elements/scripts/tool-output-error.tsx b/skills/ai-elements/scripts/tool-output-error.tsx index 92613232..90f3f05b 100644 --- a/skills/ai-elements/scripts/tool-output-error.tsx +++ b/skills/ai-elements/scripts/tool-output-error.tsx @@ -14,7 +14,7 @@ const toolCall: ToolUIPart = { "Connection timeout: The request took longer than 5000ms to complete. Please check your network connection and try again.", input: { headers: { - Authorization: "Bearer token123", + Authorization: "Bearer ", "Content-Type": "application/json", }, method: "GET",