Skip to content

Python: Remove deprecated library APIs - #23230

Open
jketema wants to merge 1 commit into
mainfrom
jketema/python-dep
Open

jketema wants to merge 1 commit into
mainfrom
jketema/python-dep

Conversation

@jketema

@jketema jketema commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Remove deprecated AST, API-graph, data-flow, type-tracking, and security aliases, plus the old FileOpen module and renamed fluent-context helper. Retain experimental queries and their supporting libraries.

Remove deprecated AST, API-graph, data-flow, type-tracking, and security aliases, plus the old FileOpen module and renamed fluent-context helper. Retain experimental queries and their supporting libraries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7be1d7da-9061-47a8-bf98-b3169476add9
@jketema
jketema marked this pull request as ready for review November 24, 2026 18:13
@jketema
jketema requested a review from a team as a code owner November 24, 2026 18:13
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Removing public Python QL modules, aliases, and location predicates breaks downstream custom-query contracts, requiring human review of compatibility and migration impact beyond in-repository callers.

No open issues 🎉

What changed in this PR

Removes deprecated APIs from the Python CodeQL libraries and query helpers while retaining experimental queries and their supporting libraries.

Changes:

  • Removes obsolete AST, API-graph, data-flow, type-tracking, and security aliases and predicates.
  • Deletes Resources.FileOpen and the renamed InsecureContextConfiguration alias.
  • Adds breaking-change notes for both library and query packs.
File Description
python/​ql/​src/​Security/​CWE-327/​FluentApiModel.qll Removes the deprecated configuration alias.
python/​ql/​src/​Resources/​FileOpen.qll Deletes the deprecated file-resource module.
python/​ql/​src/​change-notes/​2026-11-18-outdated-deprecations.md Documents query-pack removals and replacements.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​XpathInjectionCustomizations.qll Removes the deprecated source alias.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​UrlRedirectCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​UnsafeDeserializationCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​SqlInjectionCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​ServerSideRequestForgeryCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​RegexInjectionCustomizations.qll Removes the deprecated source alias.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​ReflectedXSSCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​PolynomialReDoSCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​PathInjectionCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​PamAuthorizationCustomizations.qll Removes the deprecated source alias.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​LogInjectionCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​LdapInjectionCustomizations.qll Removes deprecated source and both sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​HttpHeaderInjectionCustomizations.qll Removes the deprecated source alias.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​CookieInjectionCustomizations.qll Removes the deprecated source alias.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​CommandInjectionCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​security/​dataflow/​CodeInjectionCustomizations.qll Removes deprecated source and sanitizer aliases.
python/​ql/​lib/​semmle/​python/​Exprs.qll Removes Str and StrConst aliases.
python/​ql/​lib/​semmle/​python/​dataflow/​new/​TypeTracking.qll Removes the AttributeName alias.
python/​ql/​lib/​semmle/​python/​dataflow/​new/​internal/​DataFlowPublic.qll Removes deprecated Node.hasLocationInfo.
python/​ql/​lib/​semmle/​python/​dataflow/​new/​FlowSummary.qll Removes deprecated summary-component aliases.
python/​ql/​lib/​semmle/​python/​dataflow/​new/​BarrierGuards.qll Removes the StringConstCompareBarrier alias.
python/​ql/​lib/​semmle/​python/​ApiGraphs.qll Removes deprecated API-node hasLocationInfo.
python/​ql/​lib/​change-notes/​2026-11-18-outdated-deprecations.md Documents library-pack API removals.

Review effort: Balanced (adaptive)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants