← Back to Pull requests

automation: re-evaluate held security branches after each Renovate run #718

Closed
unknown closed this pull request without merging on Nov 25, 2026 19:26 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 14:15 UTC
Author

What this PR does / why we need it:

A held security branch (kept while a fixed CVE has no CVSS score yet) was never re-checked: Renovate only pushes a branch when its content changes, so after the initial hold nothing ran the gate on it again — even once the missing score was published. #715 sat frozen for ten days because of this.

The Renovate workflow now re-evaluates every held security branch (no open pull request, no validation already in progress) after each run, by dispatching the PR opener on it. The opener accepts workflow_dispatch for this — dispatched on a branch, it runs the same validate/open/cleanup logic as a push. Branches that predate the trigger fall back to re-running their latest validation run.

Once a score appears, the gate approves or rejects the update, and the review issue closes itself.

Special notes for your reviewer:

  • The dispatch uses the default GITHUB_TOKEN: workflow_dispatch is the documented exception to that token's no-recursion guard.

  • After this merges, the next Renovate run should clean up both currently held branches and close #715 on its own.
  • Release note:

    ``release-note
    NONE
    ``

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

    Summary by CodeRabbit

  • New Features

  • - Renovate automation rechecks held security updates after each run and can restart their review when no pull request or validation is in progress.
    - The pull request opener can be started manually and only proceeds when the branch still matches the validated commit.
    - After successful validation, an existing intervention issue is closed when an open pull request exists for the branch.
  • Documentation

  • - Updated the automation guide with the recheck process, possible review outcomes, and authentication details.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 240 lines (+180 / -60) across 3 files Reviewer: RamLavi Review duration: 311m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 240 lines diff across 3 files
    0.62
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #718"
    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: 61.9% (MEDIUM) · Higher = larger blast radius
    61.9%
    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: 24.4% · Safe to merge
    24.4%