5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-10 00:26:55 +00:00

Check the data property in secrets.js

Co-authored-by: Brian Woodward <brian.woodward@gmail.com>
This commit is contained in:
matryxxx02 2021-08-31 00:52:47 +02:00 committed by GitHub
parent 89c2697ec6
commit 78c011015e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ async function getSecrets(secretRequests, client) {
let value;
if(selector === "*"){
value = body.data["data"];
value = body.data["data"] != undefined ? body.data["data"] : body.data;
} else {
if (!selector.match(/.*[\.].*/)) {
selector = '"' + selector + '"'