5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-14 18:13:45 +00:00

Don't include carriage return characters in masking

This commit is contained in:
Tom Proctor 2021-05-04 13:31:49 +01:00
parent 706b2693c9
commit 9812a558e4
No known key found for this signature in database
GPG key ID: 9AA1838744D16345

View file

@ -78,7 +78,7 @@ async function exportSecrets() {
if (cachedResponse) { if (cachedResponse) {
core.debug(' using cached response'); 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) { if (line.length > 0) {
command.issue('add-mask', line); command.issue('add-mask', line);
} }