alembic 1.20.1
- Source
- https://github.com/sqlalchemy/alembic
- Tag scanned
rel_1_20_1- Compared with
rel_1_20_0(0 signals introduced since)- Files
- 149 scanned, 30 skipped (binary, oversized, or unrecognised)
- Signals
- 2 critical · 0 warn · 6 info
- Scan time
- 9.0 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 8 of 8 warn and critical signals; 6 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 08:43
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= =inconclusive Module-level compile and exec of a local bootstrap file during test setup.Reasoning
Reads a bootstrap file from a path and compiles and execs it at import time, injecting into module globals. The file is local and in the repo, so this is a loader pattern rather than a remote payload. The module-scope execution is unusual and warrants a look at what bootstrap_file contains, which the snippet does not show.
-
=inconclusive Executes the local bootstrap code at module import.Reasoning
Executes the compiled bootstrap code in module globals at import time. It is the same loader as the preceding compile, and it reads only a repo-local file. Whether that file is trustworthy depends on its contents, which are not shown.
-
= returnlikely benign Name-based dispatch to type-rendering helper functions.Reasoning
Looks up a locally defined _render_<visit_name>_type function by name from globals to dispatch on a type's visit name. This is a common, legitimate dispatch pattern, and the name is built from a fixed type attribute, not attacker input.
-
=likely benign Generates operation method bodies from text via exec.Reasoning
exec builds a function from generated source text with explicit globals and a local namespace, then attaches it to a class. This matches alembic's generation of operation method signatures and docs. The text is produced internally, not from untrusted input.
-
returnlikely benign Builds a callable from generated source text using exec.Reasoning
exec compiles a function from locally generated source text into a namespace and returns it. This is a known helper for building functions with specific signatures. Nothing in the snippet shows external or encoded input.
-
=likely benign Test evaluates rendered migration code to verify output.Reasoning
eval runs generated Python source in a test to check that rendered migration code is valid and produces the expected operations. This is a standard round-trip test technique with no external input.
-
=likely benign Test evaluates rendered migration code and asserts on the SQL.Reasoning
Same round-trip test pattern: eval of rendered py_code followed by an assertion on the emitted SQL. The input is generated by the library under test.
-
likely benign Test evaluates rendered constraint code and checks the ALTER TABLE output.
Reasoning
Same eval-based round-trip test for rendered foreign key constraint code. It is a benign testing construct.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&