From 19544bb9b4b4c6046064b199ddd8a4b02de74f23 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 11 Mar 2026 19:32:36 +0000 Subject: [PATCH] Remove dead Python library extraction code --- lib/init-action.js | 7 ------- src/init-action.ts | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/lib/init-action.js b/lib/init-action.js index 1ccb23fc1..ca474231b 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -109956,13 +109956,6 @@ exec ${goBinaryPath} "$@"` dependencyCachingStatus = dependencyCachingResult.statusReport; config.dependencyCachingRestoredKeys = dependencyCachingResult.restoredKeys; } - if (await codeQlVersionAtLeast(codeql, "2.17.1")) { - } else { - core15.exportVariable( - "CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION", - "true" - ); - } if (getOptionalInput("setup-python-dependencies") !== void 0) { logger.warning( "The setup-python-dependencies input is deprecated and no longer has any effect. We recommend removing any references from your workflows. See https://github.blog/changelog/2024-01-23-codeql-2-16-python-dependency-installation-disabled-new-queries-and-bug-fixes/ for more information." diff --git a/src/init-action.ts b/src/init-action.ts index e1fe057fa..6fe89165b 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -624,17 +624,6 @@ async function run(startedAt: Date) { dependencyCachingResult.restoredKeys; } - // Suppress warnings about disabled Python library extraction. - if (await codeQlVersionAtLeast(codeql, "2.17.1")) { - // disabled by default, no warning - } else { - // disabled by default, prints warning if environment variable is not set - core.exportVariable( - "CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION", - "true", - ); - } - if (getOptionalInput("setup-python-dependencies") !== undefined) { logger.warning( "The setup-python-dependencies input is deprecated and no longer has any effect. We recommend removing any references from your workflows. See https://github.blog/changelog/2024-01-23-codeql-2-16-python-dependency-installation-disabled-new-queries-and-bug-fixes/ for more information.",