Skip to content

Commit

Permalink
Set CODEQL_EXTRACTOR_GO_BUILD_TRACING on again
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Nov 7, 2022
1 parent ac6daf3 commit a136448
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
31 changes: 30 additions & 1 deletion lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion src/languages.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as core from "@actions/core";

import { Logger } from "./logging";

// All the languages supported by CodeQL
Expand Down Expand Up @@ -45,7 +47,17 @@ export function isTracedLanguage(language: Language, logger: Logger): boolean {
);
}

return ["cpp", "csharp", "go", "java", "swift"].includes(language);
if (language === Language.go) {
core.exportVariable("CODEQL_EXTRACTOR_GO_BUILD_TRACING", "on");
}

return [
Language.cpp,
Language.csharp,
Language.go,
Language.java,
Language.swift,
].includes(language);
}

export function isScannedLanguage(language: Language, logger: Logger): boolean {
Expand Down

0 comments on commit a136448

Please sign in to comment.