This action retrieves key/values from a Consul and sets it as environment variables
Required The Consul's Url to retrieve your KV.
Required The Consul's Token to retrieve your KV.
Required The path where you want retrieve all your keys/values from Consul. Could be the path to a folder or the complete path to a single key.
uses: fduhen/[email protected]
with:
url: 'https://consul-url.com'
token: 'myGeneratedTokenFromConsul'
path: 'CI'
* [ ] Code cleanup
* [ ] Correctly managing async functions
* [ ] Managing status code errors
The env vars which are created after reading the values from Consul are automatically masked in order to prevent any leak of sensitive datas.
Note that it only obscurs the values from the logs.