mirror of
https://github.com/1Password/load-secrets-action.git
synced 2026-06-21 22:29:19 +00:00
Add eslint disable
This commit is contained in:
@@ -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"),
|
||||
};
|
||||
|
||||
@@ -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<string> =>
|
||||
core.getIDToken(audience);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
export const loadSecretsFromSDK = async (
|
||||
workloadId: string,
|
||||
environmentId: string,
|
||||
|
||||
Reference in New Issue
Block a user