chore: [REDACTED] -> ***

Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-05-15 17:26:33 +02:00
parent e5480b97da
commit 0f603c8a1c
4 changed files with 6 additions and 9 deletions
@@ -50,7 +50,7 @@ describe('WinstonLogger', () => {
expect.objectContaining({
[MESSAGE]: JSON.stringify({
level: 'error',
message: '[REDACTED]) from this file',
message: '***) from this file',
}),
}),
expect.any(Function),
@@ -83,10 +83,10 @@ describe('WinstonLogger', () => {
[MESSAGE]: JSON.stringify({
level: 'error',
message: 'something went wrong',
nested: '[REDACTED] (world) from nested object',
nested: '*** (world) from nested object',
null: null,
nullProto: {
foo: '[REDACTED] foo',
foo: '*** foo',
},
}),
}),
@@ -92,7 +92,7 @@ export class WinstonLogger implements RootLoggerService {
return obj;
}
obj[MESSAGE] = obj[MESSAGE]?.replace?.(redactionPattern, '[REDACTED]');
obj[MESSAGE] = obj[MESSAGE]?.replace?.(redactionPattern, '***');
return obj;
})(),
@@ -272,10 +272,7 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
if (task.isDryRun) {
const redactedSecrets = Object.fromEntries(
Object.entries(task.secrets ?? {}).map(secret => [
secret[0],
'[REDACTED]',
]),
Object.entries(task.secrets ?? {}).map(secret => [secret[0], '***']),
);
const debugInput =
(step.input &&
@@ -114,7 +114,7 @@ export class WinstonLogger implements RootLoggerService {
return obj;
}
obj[MESSAGE] = obj[MESSAGE]?.replace?.(redactionPattern, '[REDACTED]');
obj[MESSAGE] = obj[MESSAGE]?.replace?.(redactionPattern, '***');
return obj;
})(),