mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-16 08:45:44 +00:00
update require got to import got
This commit is contained in:
parent
a727ce205a
commit
cd38d43a7a
12 changed files with 34 additions and 21 deletions
|
|
@ -2,7 +2,7 @@ jest.mock('@actions/core');
|
|||
jest.mock('@actions/core/lib/command');
|
||||
const core = require('@actions/core');
|
||||
|
||||
const got = require('got');
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ jest.mock('@actions/core');
|
|||
jest.mock('@actions/core/lib/command');
|
||||
const core = require('@actions/core');
|
||||
|
||||
const got = require('got');
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const {
|
|||
publicRsaKey
|
||||
} = require('./rsa_keys');
|
||||
|
||||
const got = require('got');
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ jest.mock('@actions/core');
|
|||
jest.mock('@actions/core/lib/command');
|
||||
const core = require('@actions/core');
|
||||
|
||||
const got = require('got');
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const got = require('got');
|
||||
import got from 'got';
|
||||
const core = require('@actions/core');
|
||||
|
||||
const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const got = require('got');
|
||||
import got from 'got';
|
||||
|
||||
const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`;
|
||||
const vaultToken = `${process.env.VAULT_TOKEN}` === undefined ? `${process.env.VAULT_TOKEN}` : "testtoken";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ jest.mock('@actions/core');
|
|||
jest.mock('@actions/core/lib/command');
|
||||
const core = require('@actions/core');
|
||||
|
||||
const got = require('got');
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue