remove CODEQL_ACTION_TRACED_LANGUAGES and CODEQL_ACTION_SCANNED_LANGUAGES
This commit is contained in:
parent
e5ad069f2c
commit
396f7167d8
15 changed files with 54 additions and 57 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import * as core from '@actions/core';
|
||||
|
||||
import { getCodeQL } from './codeql';
|
||||
import * as sharedEnv from './shared-environment';
|
||||
import { getCodeQL, isTracedLanguage } from './codeql';
|
||||
import * as config_utils from './config-utils';
|
||||
import * as util from './util';
|
||||
|
||||
interface AutobuildStatusReport extends util.StatusReportBase {
|
||||
|
|
@ -42,11 +42,13 @@ async function run() {
|
|||
return;
|
||||
}
|
||||
|
||||
const config = await config_utils.getConfig();
|
||||
|
||||
// Attempt to find a language to autobuild
|
||||
// We want pick the dominant language in the repo from the ones we're able to build
|
||||
// The languages are sorted in order specified by user or by lines of code if we got
|
||||
// them from the GitHub API, so try to build the first language on the list.
|
||||
const autobuildLanguages = process.env[sharedEnv.CODEQL_ACTION_TRACED_LANGUAGES]?.split(',') || [];
|
||||
const autobuildLanguages = config.languages.filter(isTracedLanguage);
|
||||
language = autobuildLanguages[0];
|
||||
|
||||
if (!language) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue