-
Notifications
You must be signed in to change notification settings - Fork 0
feat: address suggestions from SonarCloud #44
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
Conversation
| print("Strong Password: ", password) | ||
|
|
||
| # Output the generated password | ||
| print("Strong Password:", password) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (password)
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 year ago
To fix the problem, we should avoid logging the generated password in clear text. Instead, we can log a message indicating that a password has been generated without revealing the actual password. This way, we maintain the functionality of informing the user that a password has been generated without exposing sensitive information.
We need to modify the code in the file strong_passgen_for_prod.py to replace the line that logs the password with a more secure message.
-
Copy modified lines R50-R51
| @@ -49,3 +49,3 @@ | ||
|
|
||
| # Output the generated password | ||
| print("Strong Password:", password) | ||
| # Output a message indicating that a strong password has been generated | ||
| print("A strong password has been generated successfully.") |
|


No description provided.