Skip to content

Commit e6b2c0d

Browse files
committed
Python: suppress dependency extraction warning
See github/codeql#16127 (which will be released as part of 2.17.1)
1 parent 4e8e343 commit e6b2c0d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: src/init-action.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,14 @@ async function run() {
444444
// before that, you needed to set this flag to enable this behavior (supported since
445445
// 2.13.1). Since dependency installation is no longer supported in the action, we
446446

447-
if (await codeQlVersionAbove(codeql, "2.16.0")) {
448-
// do nothing
447+
if (await codeQlVersionAbove(codeql, "2.17.1")) {
448+
// disabled by default, no warning
449+
} else if (await codeQlVersionAbove(codeql, "2.16.0")) {
450+
// disabled by default, prints warning if environment variable is not set
451+
core.exportVariable(
452+
"CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION",
453+
"true",
454+
);
449455
} else if (await codeQlVersionAbove(codeql, "2.13.1")) {
450456
core.exportVariable(
451457
"CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION",

0 commit comments

Comments
 (0)