From 9812a558e4a360c20fe7c8aa064da9d762303dc0 Mon Sep 17 00:00:00 2001 From: Tom Proctor Date: Tue, 4 May 2021 13:31:49 +0100 Subject: [PATCH] Don't include carriage return characters in masking --- src/action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action.js b/src/action.js index c16436e..0f1078b 100644 --- a/src/action.js +++ b/src/action.js @@ -78,7 +78,7 @@ async function exportSecrets() { if (cachedResponse) { core.debug('ℹ using cached response'); } - for (const line of value.split('\n')) { + for (const line of value.replace(/\r/g, '').split('\n')) { if (line.length > 0) { command.issue('add-mask', line); }