mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 17:39:15 +00:00
Only load repository properties for repos owned by orgs
This commit is contained in:
Generated
+4
-2
@@ -92561,9 +92561,11 @@ async function run(startedAt) {
|
||||
getTemporaryDirectory(),
|
||||
logger
|
||||
);
|
||||
const enableRepoProps = await features.getValue(
|
||||
"use_repository_properties" /* UseRepositoryProperties */
|
||||
const repositoryOwnerType = getOptionalInput("repository-owner-type");
|
||||
logger.debug(
|
||||
`Repository owner type is '${repositoryOwnerType ?? "unknown"}'.`
|
||||
);
|
||||
const enableRepoProps = repositoryOwnerType === "Organization" && await features.getValue("use_repository_properties" /* UseRepositoryProperties */);
|
||||
const repositoryProperties = enableRepoProps ? await loadPropertiesFromApi(gitHubVersion, logger, repositoryNwo) : {};
|
||||
const jobRunUuid = v4_default();
|
||||
logger.info(`Job run UUID is ${jobRunUuid}.`);
|
||||
|
||||
Reference in New Issue
Block a user