gitlab.bandit.B108-1
385
Download Count*
License
Detected hardcoded temp directory. Consider using 'tempfile.TemporaryFile' instead.
Run Locally
Run in CI
Defintion
rules:
- id: bandit.B108-1
pattern: open("=~/^\/tmp.*/", ...)
message: >
Detected hardcoded temp directory. Consider using 'tempfile.TemporaryFile'
instead.
metadata:
cwe: "CWE-377: Insecure Temporary File"
license: MIT
severity: WARNING
languages:
- python
Short Link: https://sg.run/O81B