mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
11 lines
No EOL
272 B
JavaScript
11 lines
No EOL
272 B
JavaScript
const got = require('got');
|
|
|
|
(async () => {
|
|
const result = await got(`http://${process.env.VAULT_HOST}:${process.env.VAULT_PORT}/v1/secret/config`, {
|
|
headers: {
|
|
'X-Vault-Token': 'testtoken'
|
|
}
|
|
});
|
|
|
|
console.log(result.body);
|
|
})(); |