chore: add changeset

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-12 12:37:47 +02:00
parent 8e60a63364
commit 5c65785ae3
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -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.