Skip to content
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

Check for no action passed in argparse rule #396

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Mar 28, 2024

The default value for action when no value is passed is "store" which is the exact value we are trying to detect for issues. So if a program creates CLI arguments via add_argument with api-key or password arg and unset action, it needs to surface this as an issue.

The default value for action when no value is passed is "store"
which is the exact value we are trying to detect for issues. So
if a program creates CLI arguments via add_argument with api-key
or password arg and unset action, it needs to surface this as an
issue.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
@ericwb ericwb merged commit 97f9587 into securesauce:main Mar 28, 2024
7 checks passed
@ericwb ericwb deleted the default_action branch March 28, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant