Read/Consume kv secret within GitHub workflow

Hi ixe013,

yes the error comes from Github action.
I’ve tried to run pipe step adding cUrl command and it’s working as on the bash.
Now, I don’t want to use cUrl command instead of vault-action (showed in screen above) but this “not-working” code is came from official Github vault page example (Vault Secrets · Actions · GitHub Marketplace · GitHub) and I don’t know another way to retrieve secret from my vault server.

From curl:

If I use /v1/kv/data/secret?version=1 response show me foo=bar that is the first secret that I’ve created
If I use /v1/kv/data/secret?version=2 response show me foo2=bar2 that is the second secret that I’ve created so…I don’t think that is version issue or similar. It seems that the entire step is wrong.
I don’t even know how to activate debug mode to dig into logs…

Mind a thing: I’m using vault without TLS so I don’t need caCertificate as showd in official page, I’m just using token auth with correct vault root token.