update require got to import got

This commit is contained in:
JM Faircloth 2024-03-08 10:11:09 -06:00
parent a727ce205a
commit cd38d43a7a
12 changed files with 34 additions and 21 deletions

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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}`;

View file

@ -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";

View file

@ -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');