@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
Fixing issues with log redaction in the scaffolder logs
|
||||
@@ -645,6 +645,7 @@ describe('NunjucksWorkflowRunner', () => {
|
||||
});
|
||||
|
||||
describe('redactions', () => {
|
||||
// eslint-disable-next-line jest/expect-expect
|
||||
it('should redact secrets that are passed with the task', async () => {
|
||||
actionRegistry.register({
|
||||
id: 'log-secret',
|
||||
@@ -690,6 +691,7 @@ describe('NunjucksWorkflowRunner', () => {
|
||||
expectTaskLog('info: ***');
|
||||
});
|
||||
|
||||
// eslint-disable-next-line jest/expect-expect
|
||||
it('should redact meta fields properly', async () => {
|
||||
actionRegistry.register({
|
||||
id: 'log-secret',
|
||||
|
||||
@@ -24,7 +24,6 @@ import { Logger, format, createLogger, transports } from 'winston';
|
||||
import { LEVEL, MESSAGE, SPLAT } from 'triple-beam';
|
||||
import { TaskContext } from '@backstage/plugin-scaffolder-node';
|
||||
import _ from 'lodash';
|
||||
import { TaskStep } from '@backstage/plugin-scaffolder-common';
|
||||
|
||||
/**
|
||||
* Escapes a given string to be used inside a RegExp.
|
||||
|
||||
Reference in New Issue
Block a user