mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Fix language inclusion test
`in` checks the indices of an array, not the values.
This commit is contained in:
2
lib/analyze-action.js
generated
2
lib/analyze-action.js
generated
@@ -114,7 +114,7 @@ async function runGoAutobuilderIfLegacyWorkflow(config, featureFlags, logger) {
|
||||
logger.debug("Won't run the Go autobuilder since Go extraction reconciliation is not enabled.");
|
||||
return;
|
||||
}
|
||||
if (!(languages_1.Language.go in config.languages)) {
|
||||
if (!config.languages.includes(languages_1.Language.go)) {
|
||||
logger.info("Won't run the Go autobuilder since Go analysis is not enabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -153,7 +153,7 @@ async function runGoAutobuilderIfLegacyWorkflow(
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!(Language.go in config.languages)) {
|
||||
if (!config.languages.includes(Language.go)) {
|
||||
logger.info(
|
||||
"Won't run the Go autobuilder since Go analysis is not enabled."
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user