Skip to content

Add Security Data Scanner findings to AI Guard result#5579

Open
y9v wants to merge 3 commits intomasterfrom
ai-guard-add-sds-findings
Open

Add Security Data Scanner findings to AI Guard result#5579
y9v wants to merge 3 commits intomasterfrom
ai-guard-add-sds-findings

Conversation

@y9v
Copy link
Copy Markdown
Member

@y9v y9v commented Apr 10, 2026

What does this PR do?
This PR adds sds_findings to AIGuard::Evaluation::Result, and adds SDS findings to the ai_guard metastruct tag.

Motivation:
The AI Guard evaluation API now returns sensitive data scanner results in sds_findings attribute.

Change log entry
Yes. AI Guard: Add AIGuard::Evaluation::Result#sds_findings method for getting matched Sensitive Data Scanner results.

Additional Notes:
APPSEC-61446

How to test the change?
CI and manual testing with appsec-app-generator.

@y9v y9v self-assigned this Apr 10, 2026
@y9v y9v requested review from a team as code owners April 10, 2026 15:38
@github-actions
Copy link
Copy Markdown

Typing analysis

Note: Ignored files are excluded from the next sections.

steep:ignore comments

This PR introduces 1 steep:ignore comment, and clears 1 steep:ignore comment.

steep:ignore comments (+1-1)Introduced:
lib/datadog/ai_guard/evaluation.rb:65
Cleared:
lib/datadog/ai_guard/evaluation.rb:64

Untyped methods

This PR introduces 1 partially typed method, and clears 1 partially typed method.

Partially typed methods (+1-1)Introduced:
sig/datadog/ai_guard/evaluation/result.rbs:28
└── def initialize: (::Hash[::String, untyped] raw_response_body) -> void
Cleared:
sig/datadog/ai_guard/evaluation/result.rbs:15
└── def initialize: (::Hash[::String, untyped] raw_response_body) -> void

If you believe a method or an attribute is rightfully untyped or partially typed, you can add # untyped:accept on the line before the definition to remove it from the stats.

@y9v y9v changed the title Ai guard add sds findings Add sds_findings attribute to AIGuard::Evaluation::Result Apr 10, 2026
@y9v y9v changed the title Add sds_findings attribute to AIGuard::Evaluation::Result Add Security Data Scanner findings to AI Guard result Apr 10, 2026
@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 bot commented Apr 10, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 85.19%
Overall Coverage: 95.42% (+0.05%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4165162 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant