← Back to Pull requests

automation: security-only Renovate policy and generated PR hygiene #711

Closed
unknown closed this pull request without merging on Nov 12, 2026 11:41 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 20:02 UTC
Author

What this PR does / why we need it:

Follow-up to #705/#706/#707 based on the first fully successful Renovate run (run 42890552941): the run itself worked end to end, but it opened routine update PRs (#709/#710), created a dependency dashboard (#708) full of dependencies this automation never touches, and its debug log exposed two config and output-hygiene defects. This PR makes the automation security-only and fixes the generated output.

  • Config applied once (92121610) — the workflow passed renovate.json through the action's configurationFile input while Renovate also discovered the same file as repository config. Renovate merges both sources and concatenates array options such as extends, so :gitSignOff was applied twice and every generated commit carried a duplicated sign-off trailer. The input is dropped; repository autodiscovery now applies the file exactly once.

  • Clean pull request bodies (31489209) — the opener used gh pr create --fill-first, which copies the candidate commit's full message into the PR body; Renovate commit bodies carry little besides sign-off trailers, so generated descriptions were bare trailer blocks. The CVSS summary was then appended in a separate edit that could duplicate itself on every re-push. The opener now builds the body explicitly: commit subject as title, commit body without sign-off trailers, a note about the validation that ran, and the CVSS summary for security updates in the same step. For existing PRs the summary is appended only when its content changed.

  • Security-only policy (4efb7eb2) — routine dependency bumps are out of scope for this automation. A blanket package rule now disables every routine update; OSV vulnerability alerts still flow because Renovate injects them with forced vulnerabilityAlerts settings that override the rule, so every renovate/security/ branch remains alert-driven and passes the CVSS gate before a PR can open. The grouping rules and the scoped k8s.io disable rule are subsumed and removed.

  • Dependency dashboard dropped (5dea531e) — the dashboard listed every detected dependency, including the ones this automation deliberately never updates, so most of its content was noise under a security-only policy. :dependencyDashboard is removed; Renovate closes #708 automatically on its next run.

  • Intervention tracking (a379a30c) — a security update can pass the CVSS gate and still fail automated validation, for example when a major bump changes an API and vendoring breaks. The branch was then deleted silently like any false alarm, and because the gate ran after the vendoring check its approval was not even recorded. The gate now runs first and captures its verdict as a workflow output, and a new security-intervention-tracker job opens one deduplicated [renovate-security-intervention] <branch> issue per branch whose update passed the gate but failed validation — created with the failing run and resolution instructions, refreshed on every evaluation, respecting a human closure, and closed automatically once validation passes. The branch is still cleaned up so it cannot go stale; the issue is the durable record asking for human intervention.
  • Special notes for your reviewer:

  • #709/#710 (the routine update PRs from that run) were closed and their branches deleted ahead of this PR, per the security-only policy.

  • #708 (dashboard) closes itself on the next Renovate run after this merges; no manual action needed.

  • The otlptracegrpc security branch stuck in limbo since run 2 (branch existed with a red check, so Renovate neither pushed nor opened the PR) was deleted manually; the next Renovate run recreates it and the fixed opener should finally open its PR — the gate already approved that exact bump.

  • The gate-before-vendoring reorder only affects renovate/security/ branches; the validation steps themselves are unchanged.

  • Docs (docs/renovate-automation.md) are updated within each commit.
  • Release note:

    ``release-note
    NONE
    ``

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Automation
    New and existing pull requests include the latest security summary and validation details; existing summaries are refreshed rather than duplicated.
    Security checks run before vendoring and Go version validation. Scan failures and validation failures can be tracked in issues, which close after validation and pull request creation succeed.
    Routine dependency updates are disabled; vulnerability-alert updates remain enabled.
    Documentation
    Updated guidance covers pull request content, security checks and issue tracking, and Renovate configuration.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 614 lines (+460 / -154) across 7 files Reviewer: RamLavi Review duration: 938m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 614 lines diff across 7 files
    0.73
    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%
    60%
    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.384
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #711"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 73.4% (HIGH) · Higher = larger blast radius
    73.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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.0% · Safe to merge
    29.0%