fix: strip api_key from dry-run output shown to user
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -296,7 +296,9 @@ async function main(): Promise<void> {
|
|||||||
const payload = buildPayload(event, systemInfo, data, success);
|
const payload = buildPayload(event, systemInfo, data, success);
|
||||||
|
|
||||||
if (dryRun) {
|
if (dryRun) {
|
||||||
console.log(JSON.stringify(payload, null, 2));
|
// Strip secrets before showing to user
|
||||||
|
const { api_key, ...visible } = payload;
|
||||||
|
console.log(JSON.stringify(visible, null, 2));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user