5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 15:16:56 +00:00
vault-action/quicktest.js
2019-09-20 15:46:13 -05:00

12 lines
No EOL
297 B
JavaScript

const got = require('got');
(async () => {
const result = await got(`https://${process.env.VAULT_HOST}:${process.env.VAULT_PORT}/v1/secret/config`, {
method: 'POST',
headers: {
'X-Vault-Token': 'testtoken'
}
});
console.log(result.body);
})();