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

src/init-action.ts

Lines changed: 8 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy