Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Llamaguard#243

Merged
pigri merged 4 commits intomainfrom
llamaguard
Nov 14, 2024
Merged

Llamaguard#243
pigri merged 4 commits intomainfrom
llamaguard

Conversation

@krichard1212
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread services/llmguard/main.py
excluded_categories: Optional[List[str]] = None
) -> str:
try:
logger.info(f"Analyzing text: '{text[:100]}{'...' if len(text) > 100 else ''}'")

Check notice

Code scanning / SonarCloud

Logging should not be vulnerable to injection attacks

<!--SONAR_ISSUE_KEY:AZMarvyh2X8wz7FYcgif-->Change this code to not log user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=openshieldai_openshield&issues=AZMarvyh2X8wz7FYcgif&open=AZMarvyh2X8wz7FYcgif&pullRequest=243">SonarCloud</a></p>
pigri
pigri previously approved these changes Nov 12, 2024
Signed-off-by: David Papp <pigri@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
14.1% Duplication on New Code (required ≤ 3%)
B Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@pigri pigri merged commit fbe37b4 into main Nov 14, 2024
@pigri pigri deleted the llamaguard branch November 14, 2024 13:44
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.

3 participants