Skip to content

Commit

Permalink
Redact token secrets containing hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
wojpawlik committed Apr 27, 2021
1 parent 1a9aeed commit e85a21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/network/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async function answerToWebhook(
}

function redactToken(error: Error): never {
error.message = error.message.replace(/:\w+/, ':[REDACTED]')
error.message = error.message.replace(/:[^/]+/, ':[REDACTED]')
throw error
}

Expand Down

0 comments on commit e85a21d

Please sign in to comment.