[go: nahoru, domu]

Skip to content

Commit

Permalink
Python: suppress dependency extraction warning
Browse files Browse the repository at this point in the history
See github/codeql#16127 (which will be released
as part of 2.17.1)
  • Loading branch information
RasmusWL committed Apr 8, 2024
1 parent 4e8e343 commit e6b2c0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e6b2c0d

Please sign in to comment.