Skip to content

Commit 6a93806

Browse files
drdazflovilmart
authored andcommitted
Hides token contents in logStartupOptions if they arrive as a buffer (#5322)
* Hides token contents in logStartupOptions if they arrive as a buffer * Hides all push details in logStartupOptions unless we're in verbose mode
1 parent 1cbe8bd commit 6a93806

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cli/utils/runner.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ function logStartupOptions(options) {
66
if (key == 'masterKey') {
77
value = '***REDACTED***';
88
}
9+
if (key == 'push' && process.env.VERBOSE != true) {
10+
value = '***REDACTED***';
11+
}
912
if (typeof value === 'object') {
1013
try {
1114
value = JSON.stringify(value);

0 commit comments

Comments
 (0)