Python: suppress dependency extraction warning

See https://github.com/github/codeql/pull/16127 (which will be released
as part of 2.17.1)
This commit is contained in:
Rasmus Wriedt Larsen 2024-04-08 10:44:12 +02:00
parent 4e8e3439dd
commit e6b2c0d6b8
No known key found for this signature in database

View file

@ -444,8 +444,14 @@ async function run() {
// before that, you needed to set this flag to enable this behavior (supported since
// 2.13.1). Since dependency installation is no longer supported in the action, we
if (await codeQlVersionAbove(codeql, "2.16.0")) {
// do nothing
if (await codeQlVersionAbove(codeql, "2.17.1")) {
// disabled by default, no warning
} else if (await codeQlVersionAbove(codeql, "2.16.0")) {
// disabled by default, prints warning if environment variable is not set
core.exportVariable(
"CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION",
"true",
);
} else if (await codeQlVersionAbove(codeql, "2.13.1")) {
core.exportVariable(
"CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION",