Skip to content

Commit 3479f3f

Browse files
committed
Load repository properties in setup-codeql action
1 parent f58d696 commit 3479f3f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/setup-codeql-action.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { CodeQL } from "./codeql";
1414
import { getRawLanguagesNoAutodetect } from "./config-utils";
1515
import { EnvVar } from "./environment";
1616
import { initFeatures } from "./feature-flags";
17+
import { loadRepositoryProperties } from "./feature-flags/properties";
1718
import { initCodeQL } from "./init";
1819
import { Logger } from "./logging";
1920
import { getRepositoryNwo } from "./repository";
@@ -123,6 +124,13 @@ async function run({
123124
logger,
124125
);
125126

127+
// Fetch the values of known repository properties that affect us.
128+
const repositoryPropertiesResult = await loadRepositoryProperties(
129+
repositoryNwo,
130+
logger,
131+
);
132+
const repositoryProperties = repositoryPropertiesResult.orElse({});
133+
126134
const jobRunUuid = uuidV4();
127135
logger.info(`Job run UUID is ${jobRunUuid}.`);
128136
core.exportVariable(EnvVar.JOB_RUN_UUID, jobRunUuid);

0 commit comments

Comments
 (0)