Find deprecated tempfile.mktemp() usage
Recipe ID
org.openrewrite.python.migrate.FindTempfileMktempArtifactopenrewrite-migrate-pythonFind usage of tempfile.mktemp() which is deprecated due to security concerns (race condition). Use mkstemp() or NamedTemporaryFile() instead.
Single recipepythonsecuritymigrationtempfile3.14Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.python.migrate.FindTempfileMktempIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python