-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codemod to set shell=False
for subprocess commands
#193
Conversation
2a988b8
to
4fcc014
Compare
shell=False
for subprocess commands
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #193 +/- ##
==========================================
- Coverage 96.35% 96.34% -0.01%
==========================================
Files 82 83 +1
Lines 3837 3860 +23
==========================================
+ Hits 3697 3719 +22
- Misses 140 141 +1
|
4fcc014
to
458500f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I have some requests for updates to metadata.
Also there's the question of whether this should be retroactively applied to our own security
API.
Co-authored-by: Dan D'Avella <[email protected]>
1659568
to
ed87f3d
Compare
ed87f3d
to
b673e03
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Overview
Codemod that checks any of the
subprocess
functions / class instantiations that have ashell
kwarg and ensures it is set toTrue
This is the most secure fix, but there are some valid cases for using shell=True hence the review guidance.