Skip to content

Potential fix for code scanning alert no. 11: Clear-text logging of sensitive information#2

Draft
freedomsha wants to merge 1 commit into
masterfrom
alert-autofix-11
Draft

Potential fix for code scanning alert no. 11: Clear-text logging of sensitive information#2
freedomsha wants to merge 1 commit into
masterfrom
alert-autofix-11

Conversation

@freedomsha

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/freedomsha/taskcoach/security/code-scanning/11

The best fix is to keep user feedback but never print the password itself. Replace all prints that interpolate pwd* with redacted/safe messages (for example, “Mot de passe récupéré (valeur masquée).”). This preserves behavior (indicating success/failure and cache/reset flow) without exposing sensitive data.

In taskcoach/taskcoachlib/widgetstk/passwordtk.py, update the __main__ example block around lines 110–123:

  • Replace the three print(f"... {pwdX}") lines with constant redacted strings.
  • Do not alter password retrieval logic, caching behavior, or keyring access.
  • No new imports, methods, or dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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.

1 participant