Tech story/113650 codeql #220
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds codeql scanning script + improves a replacements in our source code.
This PR should include updated chat-components from this PR: Cognigy/chat-components#204
Our scan shows similar results to what a customer has reported. Yet, after closer investigation, we conclude most alerts as false positive.
Beside one minor special case treatment (fixed in chat-components, see related PR), all the other findings are located out of the sanitization pipeline, and represent an adequate approach in their code areas.
We have included a couple of a "safer" replacements which should lower the alert noise. Other findings should be put to "ignore" by the customer.