Skip to content

Conversation

@krishnprakash
Copy link
Owner

Potential fix for https://github.com/krishnprakash/cloudflare-docs/security/code-scanning/3

To fix the problem, we need to avoid logging sensitive information such as client_id and client_secret. Instead, we can log a message indicating that the service token was created without including the sensitive details. This change will ensure that sensitive information is not exposed in the logs while maintaining the functionality of the code.

  • Remove the logging of client_id and client_secret.
  • Log a generic message indicating the creation of the service token.

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

…nsitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Mar 29, 2025

CI run failed: build logs

@krishnprakash krishnprakash marked this pull request as ready for review March 29, 2025 02:47
@krishnprakash krishnprakash merged commit 04eb87a into production Mar 29, 2025
9 checks passed
@krishnprakash krishnprakash deleted the alert-autofix-3.12 branch March 29, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants