Skip to content

Commit ff791fd

Browse files
committed
Disable Kotlin if flag set
1 parent 6fe8656 commit ff791fd

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/init-action.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ async function run() {
266266
getThreadsFlagValue(getOptionalInput("threads"), logger).toString()
267267
);
268268

269+
// Disable Kotlin extractor if feature flag set
270+
if (await features.getValue(Feature.DisableKotlinEnabled)) {
271+
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
272+
}
273+
269274
const sourceRoot = path.resolve(
270275
getRequiredEnvParam("GITHUB_WORKSPACE"),
271276
getOptionalInput("source-root") || ""

0 commit comments

Comments
 (0)