diff --git a/dist/main.cjs b/dist/main.cjs index d2baf2c..683df24 100644 --- a/dist/main.cjs +++ b/dist/main.cjs @@ -23153,7 +23153,7 @@ async function pRetry(input, options = {}) { } // lib/main.js -async function main(appId, privateKey, owner, repositories, permissions, core, createAppAuth2, request2, skipTokenRevoke) { +async function main(clientId, privateKey, owner, repositories, permissions, core, createAppAuth2, request2, skipTokenRevoke) { let parsedOwner = ""; let parsedRepositoryNames = []; if (!owner && repositories.length === 0) { @@ -23188,7 +23188,7 @@ async function main(appId, privateKey, owner, repositories, permissions, core, c ); } const auth5 = createAppAuth2({ - appId, + appId: clientId, privateKey, request: request2 }); @@ -23307,8 +23307,8 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) { } async function run() { ensureNativeProxySupport(); - const appId = getInput("client-id") || getInput("app-id"); - if (!appId) { + const clientId = getInput("client-id") || getInput("app-id"); + if (!clientId) { throw new Error("Either 'client-id' or 'app-id' input must be set"); } const privateKey = getInput("private-key"); @@ -23317,7 +23317,7 @@ async function run() { const skipTokenRevoke = getBooleanInput("skip-token-revoke"); const permissions = getPermissionsFromInputs(process.env); return main( - appId, + clientId, privateKey, owner, repositories, diff --git a/lib/main.js b/lib/main.js index 9ae9d78..8f5ef9a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -2,7 +2,7 @@ import pRetry from "p-retry"; // @ts-check /** - * @param {string} appId + * @param {string} clientId * @param {string} privateKey * @param {string} owner * @param {string[]} repositories @@ -13,7 +13,7 @@ import pRetry from "p-retry"; * @param {boolean} skipTokenRevoke */ export async function main( - appId, + clientId, privateKey, owner, repositories, @@ -70,7 +70,7 @@ export async function main( } const auth = createAppAuth({ - appId, + appId: clientId, privateKey, request, }); diff --git a/main.js b/main.js index 03e6330..b685126 100644 --- a/main.js +++ b/main.js @@ -18,8 +18,8 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) { async function run() { ensureNativeProxySupport(); - const appId = core.getInput("client-id") || core.getInput("app-id"); - if (!appId) { + const clientId = core.getInput("client-id") || core.getInput("app-id"); + if (!clientId) { throw new Error("Either 'client-id' or 'app-id' input must be set"); } const privateKey = core.getInput("private-key"); @@ -35,7 +35,7 @@ async function run() { const permissions = getPermissionsFromInputs(process.env); return main( - appId, + clientId, privateKey, owner, repositories,