Support autobuilding multiple languages in autobuild Action
This commit is contained in:
parent
9ba4d500aa
commit
0d2fa3c636
15 changed files with 73 additions and 46 deletions
4
lib/analyze-action.js
generated
4
lib/analyze-action.js
generated
|
|
@ -102,7 +102,7 @@ function doesGoExtractionOutputExist(config) {
|
|||
* steps.
|
||||
*
|
||||
* - We detect whether an autobuild step is present by checking the
|
||||
* `CODEQL_ACTION_DID_AUTOBUILD_GOLANG` environment variable, which is set
|
||||
* `util.DID_AUTOBUILD_GO_ENV_VAR_NAME` environment variable, which is set
|
||||
* when the autobuilder is invoked.
|
||||
* - We approximate whether manual build steps are present by looking at
|
||||
* whether any extraction output already exists for Go.
|
||||
|
|
@ -115,7 +115,7 @@ async function runAutobuildIfLegacyGoWorkflow(config, featureFlags, logger) {
|
|||
logger.debug("Won't run Go autobuild since Go extraction reconciliation is not enabled.");
|
||||
return;
|
||||
}
|
||||
if (process.env["CODEQL_ACTION_DID_AUTOBUILD_GOLANG"] === "true") {
|
||||
if (process.env[util.DID_AUTOBUILD_GO_ENV_VAR_NAME] === "true") {
|
||||
// This log line is info level while Go extraction reconciliation is in beta.
|
||||
// We will make it debug level once Go extraction reconciliation is GA.
|
||||
logger.info("Won't run Go autobuild since it has already been run.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue