mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 07:06:56 +00:00
simplify imports
This commit is contained in:
parent
4bafe0b29f
commit
d0d1f7bdb4
13 changed files with 16 additions and 16 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { vi, describe, test, expect } from 'vitest';
|
||||
|
||||
vi.mock('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
import got from 'got';
|
||||
import { when } from 'jest-when'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vi, describe, test, expect } from 'vitest';
|
||||
|
||||
vi.mock('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
import got from 'got';
|
||||
import { when } from 'jest-when'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vi, describe, test, expect } from 'vitest';
|
||||
|
||||
vi.mock('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
import rsasign from 'jsrsasign';
|
||||
import {
|
||||
privateRsaKey,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vi, describe, test, expect } from 'vitest';
|
||||
|
||||
vi.mock('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
import got from 'got';
|
||||
import { when } from 'jest-when'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import got from 'got';
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`;
|
||||
const caCertificateRaw = `${process.env.VAULTCA}`;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vi, describe, test, expect } from 'vitest';
|
||||
|
||||
vi.mock('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
import got from 'got';
|
||||
import { when } from 'jest-when'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// @ts-check
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
import got from 'got';
|
||||
import jsonata from 'jsonata';
|
||||
import { normalizeOutputKey } from './utils.js';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { vi, describe, test, expect } from 'vitest';
|
|||
vi.mock('got');
|
||||
vi.mock('@actions/core');
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
import got from 'got';
|
||||
import {
|
||||
exportSecrets,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// @ts-check
|
||||
import * as core from '@actions/core';
|
||||
import * as fs from 'fs';
|
||||
import core from '@actions/core';
|
||||
import fs from 'fs';
|
||||
import got from 'got';
|
||||
import rsasign from 'jsrsasign';
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ vi.mock('fs', () => ({
|
|||
}
|
||||
}));
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import * as got from 'got'
|
||||
import * as fs from 'fs';
|
||||
import core from '@actions/core';
|
||||
import got from 'got'
|
||||
import fs from 'fs';
|
||||
import { when } from 'jest-when'
|
||||
|
||||
import { retrieveToken } from './auth.js';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
import { exportSecrets } from './action.js';
|
||||
|
||||
(async () => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { vi, describe, test, expect } from 'vitest';
|
|||
|
||||
vi.mock('@actions/core');
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
import ServerMock from 'mock-http-server';
|
||||
import { exportSecrets } from './action.js';
|
||||
import { when } from 'jest-when';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import jsonata from 'jsonata';
|
||||
import { WILDCARD } from './constants.js';
|
||||
import { normalizeOutputKey } from './utils.js';
|
||||
import * as core from '@actions/core';
|
||||
import core from '@actions/core';
|
||||
|
||||
/**
|
||||
* @typedef {Object} SecretRequest
|
||||
|
|
|
|||
Loading…
Reference in a new issue