diff --git a/integrationTests/basic/approle_auth.test.js b/integrationTests/basic/approle_auth.test.js index aa6e49f..ea32cd7 100644 --- a/integrationTests/basic/approle_auth.test.js +++ b/integrationTests/basic/approle_auth.test.js @@ -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' diff --git a/integrationTests/basic/integration.test.js b/integrationTests/basic/integration.test.js index a15d95a..479ed87 100644 --- a/integrationTests/basic/integration.test.js +++ b/integrationTests/basic/integration.test.js @@ -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' diff --git a/integrationTests/basic/jwt_auth.test.js b/integrationTests/basic/jwt_auth.test.js index e8587c7..1384c47 100644 --- a/integrationTests/basic/jwt_auth.test.js +++ b/integrationTests/basic/jwt_auth.test.js @@ -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, diff --git a/integrationTests/basic/userpass_auth.test.js b/integrationTests/basic/userpass_auth.test.js index b0e5a65..9a98b66 100644 --- a/integrationTests/basic/userpass_auth.test.js +++ b/integrationTests/basic/userpass_auth.test.js @@ -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' diff --git a/integrationTests/e2e-tls/setup.js b/integrationTests/e2e-tls/setup.js index ff54a3e..c85fe04 100644 --- a/integrationTests/e2e-tls/setup.js +++ b/integrationTests/e2e-tls/setup.js @@ -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}`; diff --git a/integrationTests/enterprise/enterprise.test.js b/integrationTests/enterprise/enterprise.test.js index 4826902..08adb06 100644 --- a/integrationTests/enterprise/enterprise.test.js +++ b/integrationTests/enterprise/enterprise.test.js @@ -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' diff --git a/src/action.js b/src/action.js index 84d631f..d69bca1 100644 --- a/src/action.js +++ b/src/action.js @@ -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'; diff --git a/src/action.test.js b/src/action.test.js index 7311afc..3844358 100644 --- a/src/action.test.js +++ b/src/action.test.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, diff --git a/src/auth.js b/src/auth.js index b96d4a3..1efba7c 100644 --- a/src/auth.js +++ b/src/auth.js @@ -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'; diff --git a/src/auth.test.js b/src/auth.test.js index 160bc00..812d525 100644 --- a/src/auth.test.js +++ b/src/auth.test.js @@ -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'; diff --git a/src/entry.js b/src/entry.js index a88396d..dea04bf 100644 --- a/src/entry.js +++ b/src/entry.js @@ -1,4 +1,4 @@ -import * as core from '@actions/core'; +import core from '@actions/core'; import { exportSecrets } from './action.js'; (async () => { diff --git a/src/retries.test.js b/src/retries.test.js index 3d42524..1ca7d9f 100644 --- a/src/retries.test.js +++ b/src/retries.test.js @@ -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'; diff --git a/src/secrets.js b/src/secrets.js index be353b8..abd6c53 100644 --- a/src/secrets.js +++ b/src/secrets.js @@ -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