diff --git a/src/__mocks__/actions-core.ts b/src/__mocks__/actions-core.ts index 792aefb..7541df6 100644 --- a/src/__mocks__/actions-core.ts +++ b/src/__mocks__/actions-core.ts @@ -11,5 +11,6 @@ module.exports = { debug: jest.fn(), addPath: jest.fn(), isDebug: jest.fn(() => false), - getIDToken: jest.fn(() => Promise.resolve("mock-oidc-token")), + // eslint-disable-next-line @typescript-eslint/naming-convention + getIDToken: jest.fn().mockResolvedValue("mock-oidc-token"), }; diff --git a/src/sdk-client.ts b/src/sdk-client.ts index 2e64156..95a5486 100644 --- a/src/sdk-client.ts +++ b/src/sdk-client.ts @@ -3,9 +3,12 @@ import { createClient } from "@1password/sdk"; import { version } from "../package.json"; import { envManagedVariables } from "./constants"; +// Names use the OIDC/SDK acronyms, which break strictCamelCase. +// eslint-disable-next-line @typescript-eslint/naming-convention export const getOIDCToken = async (audience: string): Promise => core.getIDToken(audience); +// eslint-disable-next-line @typescript-eslint/naming-convention export const loadSecretsFromSDK = async ( workloadId: string, environmentId: string,