mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Introduce a feature-flag to enable/disable lua-based tracing.
This allows us to gradually roll out (or even roll back) Lua-based tracing in case problems occur.
This commit is contained in:
committed by
GitHub
parent
e655565390
commit
9e9a8428c3
4
lib/init.js
generated
4
lib/init.js
generated
@@ -46,13 +46,13 @@ async function initConfig(languagesInput, queriesInput, packsInput, configFile,
|
||||
return config;
|
||||
}
|
||||
exports.initConfig = initConfig;
|
||||
async function runInit(codeql, config, sourceRoot, processName, processLevel) {
|
||||
async function runInit(codeql, config, sourceRoot, processName, processLevel, featureFlags) {
|
||||
var _a, _b;
|
||||
fs.mkdirSync(config.dbLocation, { recursive: true });
|
||||
try {
|
||||
if (await (0, util_1.codeQlVersionAbove)(codeql, codeql_1.CODEQL_VERSION_NEW_TRACING)) {
|
||||
// Init a database cluster
|
||||
await codeql.databaseInitCluster(config, sourceRoot, processName, processLevel);
|
||||
await codeql.databaseInitCluster(config, sourceRoot, processName, processLevel, featureFlags);
|
||||
}
|
||||
else {
|
||||
for (const language of config.languages) {
|
||||
|
||||
Reference in New Issue
Block a user