Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code scanning alert no. 4: Clear-text logging of sensitive inform…
…ation (#52) Fixes [https://github.com/filipporomani/whatsapp-python/security/code-scanning/4](https://github.com/filipporomani/whatsapp-python/security/code-scanning/4) To fix the problem, we should avoid logging the entire JSON response directly. Instead, we can log only non-sensitive parts of the response or a generic message indicating success or failure. If detailed information is needed for debugging, it should be done in a secure manner, such as logging to a secure location with restricted access. 1. Identify the log statements that log the entire response. 2. Replace these log statements with more generic messages that do not include sensitive information. 3. Ensure that any necessary detailed logging is done securely. _Suggested fixes powered by Copilot Autofix. Review carefully before merging._ Signed-off-by: Filippo Romani <filippo@romani.cc> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- Loading branch information