Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Conversation

@akshay-online
Copy link
Collaborator

Fixes https://github.com/microsoft/AzDevOpsDemoGenerator/security/code-scanning/1

To fix the problem, we need to ensure that the json string is sanitized before it is used in the CreateServiceEndPoint method. This involves removing or masking any sensitive information such as passwords. We can achieve this by calling a sanitization method on the json string before it is used to create the StringContent.

  • Add a sanitization method to the Utility class if it doesn't already exist.
  • Call this sanitization method on the json string before creating the StringContent in the CreateServiceEndPoint method.

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

…ed data

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@akshay-online akshay-online marked this pull request as ready for review December 10, 2024 07:22
@akshay-online akshay-online merged commit 66ac5f5 into main Dec 10, 2024
3 checks passed
@akshay-online akshay-online deleted the alert-autofix-1 branch December 10, 2024 07:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants