5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 07:06:56 +00:00

chore: try another angle here

This commit is contained in:
Richard Simpson 2019-09-20 15:46:13 -05:00
parent 0933e819ce
commit 4aac50105a
No known key found for this signature in database
GPG key ID: 0CECAF50D013D1E2
2 changed files with 4 additions and 5 deletions

View file

@ -42,8 +42,7 @@ jobs:
run: npm ci
- name: test connection
run: node quicktest.js
env:
VAULT_HOST: localhost
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
env:
VAULT_HOST: localhost
VAULT_PORT: ${{ job.services.vault.ports[8200] }}

View file

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