mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-07-26 00:13:16 +03:00
chore: try another angle here
This commit is contained in:
@@ -42,8 +42,7 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: test connection
|
- name: test connection
|
||||||
run: node quicktest.js
|
run: node quicktest.js
|
||||||
|
env:
|
||||||
env:
|
VAULT_HOST: localhost
|
||||||
VAULT_HOST: localhost
|
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
|
||||||
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
const got = require('got');
|
const got = require('got');
|
||||||
|
|
||||||
(async () => {
|
(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',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Vault-Token': 'testtoken'
|
'X-Vault-Token': 'testtoken'
|
||||||
|
|||||||
Reference in New Issue
Block a user