@firestartr/cli 1.40.0 → 1.41.0-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
@@ -277886,6 +277886,8 @@ var envVars;
|
|
277886
277886
|
envVars["githubAppInstallationId"] = "GITHUB_APP_INSTALLATION_ID";
|
277887
277887
|
envVars["githubAppInstallationIdPrefapp"] = "GITHUB_APP_INSTALLATION_ID_PREFAPP";
|
277888
277888
|
envVars["githubAppPemFile"] = "GITHUB_APP_PEM_FILE";
|
277889
|
+
// ---- PREFAPP BOT VARIABLES -----------------------------------------------
|
277890
|
+
envVars["githubAppPatPrefapp"] = "PREFAPP_BOT_PAT";
|
277889
277891
|
// ---- GENERAL CLI VARIABLES -----------------------------------------------
|
277890
277892
|
envVars["firestartrImageKind"] = "FIRESTARTR_IMAGE_KIND";
|
277891
277893
|
// ---- OPERATOR VARIABLES -----------------------------------------------
|
@@ -283245,9 +283247,9 @@ async function getGithubAppToken(org = 'default', genGithubAppToken = generateGi
|
|
283245
283247
|
return token;
|
283246
283248
|
}
|
283247
283249
|
async function getOctokitForOrg(org = 'default', paginated = false, genGithubAppToken = generateGithubAppToken) {
|
283248
|
-
|
283249
|
-
|
283250
|
-
|
283250
|
+
if (org === 'prefapp')
|
283251
|
+
return getOctokitFromPat(catalog_common.types.envVars.githubAppPatPrefapp);
|
283252
|
+
const installationOrgId = catalog_common.environment.getFromEnvironment(catalog_common.types.envVars.githubAppInstallationId);
|
283251
283253
|
const auth = await genGithubAppToken({
|
283252
283254
|
appId: catalog_common.environment.getFromEnvironment(catalog_common.types.envVars.githubAppId),
|
283253
283255
|
privateKey: catalog_common.environment.getFromEnvironment(catalog_common.types.envVars.githubAppPemFile),
|
@@ -34,6 +34,7 @@ export declare enum envVars {
|
|
34
34
|
githubAppInstallationId = "GITHUB_APP_INSTALLATION_ID",
|
35
35
|
githubAppInstallationIdPrefapp = "GITHUB_APP_INSTALLATION_ID_PREFAPP",
|
36
36
|
githubAppPemFile = "GITHUB_APP_PEM_FILE",
|
37
|
+
githubAppPatPrefapp = "PREFAPP_BOT_PAT",
|
37
38
|
firestartrImageKind = "FIRESTARTR_IMAGE_KIND",
|
38
39
|
operatorNamespace = "OPERATOR_NAMESPACE",
|
39
40
|
operatorKindList = "OPERATOR_KIND_LIST",
|