Fix Gitlab/JsonSafeParse violation in llm/chain/tools/identifier.rb

What does this MR do and why?

Replace Gitlab::Json.parse with Gitlab::Json.safe_parse

Fix Gitlab/JsonSafeParse violation in llm/chain/tools/identifier.rb. The safe_parse method provides protection against large and deeply nested JSON.

Relates #586166

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading