From cb841f2c86fb6d07cff94fda240828c1abc5ba43 Mon Sep 17 00:00:00 2001 From: John-Michael Faircloth Date: Thu, 13 Jul 2023 14:21:01 -0500 Subject: [PATCH] Update to v2.7.3 (#479) --- CHANGELOG.md | 6 ++++++ dist/index.js | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e76a54d..f026620a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ * Add changes here +## 2.7.3 (July 13, 2023) + +Bugs: + +* Revert to the handling of secrets in JSON format since v2.1.2 [GH-478](https://github.com/hashicorp/vault-action/pull/478) + ## 2.7.2 (July 6, 2023) Bugs: diff --git a/dist/index.js b/dist/index.js index 1fa24f45..63c66c86 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19019,18 +19019,7 @@ async function selectData(data, selector) { } if (result.startsWith(`"`)) { - // Support multi-line secrets like JSON strings and ssh keys, see https://github.com/hashicorp/vault-action/pull/173 - // Deserialize the value so that newlines and special characters are - // not escaped in our return value. result = JSON.parse(result); - } else { - // Support secrets stored in Vault as pure JSON, see https://github.com/hashicorp/vault-action/issues/194 - // Serialize the value so that any special characters in the data are - // properly escaped. - result = JSON.stringify(result); - // strip the surrounding quotes added by stringify because the data did - // not have them in the first place - result = result.substring(1, result.length - 1); } return result; }