diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f1b89d..7faec70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Unreleased +## 2.1.2 (January 21st, 2021) + Bugs: * fixed bug where newlines were being rendered for multi-line secrets [GH-173](https://github.com/hashicorp/vault-action/pull/173) diff --git a/README.md b/README.md index e1768cd..be0688b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ jobs: steps: # ... - name: Import Secrets - uses: hashicorp/vault-action@v2.1.1 + uses: hashicorp/vault-action@v2.1.2 with: url: https://vault.mycompany.com:8200 token: ${{ secrets.VaultToken }} diff --git a/dist/index.js b/dist/index.js index b513ac1..5003a33 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10772,7 +10772,7 @@ function selectData(data, selector) { } if (result.startsWith(`"`)) { - result = result.substring(1, result.length - 1); + result = JSON.parse(result); } return result; }