← Back to Pull requests

[Code Security] Document runtime context for SAST, Secrets, and IaC findings #41763

Closed
unknown closed this pull request without merging on Nov 25, 2026 20:43 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 01:17 UTC
Author

<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->

What does this PR do? What is the motivation?

Documents runtime context for Static Code Analysis (SAST), Secret Scanning, and IaC Security findings. These findings map to the services that run the affected code and show those services' runtime risks.

  • New page: "Prioritize Findings with Runtime Context" (security/code_security/runtime_context). It covers how SAST, SCA, Secret Scanning, and IaC Security findings inherit runtime risks, which risks apply to each product, and where runtime context appears: the explorers, the finding side panel, and the Summary page.

  • Screenshots: four screenshots from the demo org on the new page, in static/images/code_security/runtime_context/: the Risks facets in the explorer, the Related To and Severity Breakdown sections of the finding side panel, and the Summary page funnel.

  • Navigation: adds a "Prioritize Findings with Runtime Context" entry under Code Security.

  • Product pages: adds a short runtime context section to the SAST, Secret Scanning, and IaC Security overview pages.

  • Shared section, "Link findings to Datadog services and teams": describes how Datadog combines several mapping sources, and that a finding can map to more than one service. It replaces the earlier "one method per finding" description. It also removes the Error Tracking method and frames name-based inference as a fallback.
  • Merge readiness

  • Ready for merge
  • Technical review requested from the assignees before merge:

  • Mapping sources and their descriptions in the shared section

  • Runtime risk definitions and per-product availability

  • UI labels for facets, the side panel, and Summary page views
  • AI assistance

    Drafted with Claude Code from the product specification and reviewed by the author.

    Additional notes

    The "Link findings to Datadog services and teams" section is a shared partial. It renders on the SAST setup, SCA, SCA setup, and Getting Started with Code Security pages.

    Update, Nov 23: the Runtime Context facet (With runtime context, No runtime context) and the @runtime_context.is_available field are being removed from the product, so this PR no longer mentions them. The explorer section covers only the Risks facets. This update also applies the reviewed copy (Related To, Severity Breakdown, Static (SAST) funnel only) and restores the CRLF line endings in secret_scanning/_index.md, so that file now shows only the 5 added lines.

    Update, Nov 24 (commit 59e4d6e): addresses the docs team review. The page and nav entry are renamed to "Prioritize Findings with Runtime Context" (the URL doesn't change), and the page now covers SCA alongside SAST, Secret Scanning, and IaC Security. The risk definitions match the product wording, the runtime context sections on the Secret Scanning and IaC Security pages move after "View and filter findings", and the shared mapping section lists the Symbol Database languages and restores the Error Tracking source.

    🤖 Generated with Claude Code

    Diff: 405 lines (+303 / -102) across 5 files Reviewer: melamos Review duration: 14126m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.68) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 405 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.359
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #41763"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.0% (HIGH) · Higher = larger blast radius
    68.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.4% · Safe to merge
    29.4%