← Back to Pull requests

Harden CI #1010

Closed
unknown closed this pull request without merging on Oct 13, 2026 12:00 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 17:07 UTC
Author

  • Do not restore the Rust and npm caches in build-js-binaries and build-wasm on tag and release runs, as these jobs build the native binaries and wasm published to npm.

  • Install cargo-fuzz with a pinned version and --locked, so that its dependencies are the ones from its published lockfile.

  • Install twine from uv.lock (new build dependency group) instead of uvx, and check wheels integrity with unzip -t in inspect-python-assets.

  • Verify the uv installer provenance with gh attestation verify on the host before running it in the manylinux container of the PGO runtime wheel build, instead of piping curl to sh.

  • Remove the unused contents: write permission from the npm release job.

  • Scope the id-token: write permission to the CodSpeed job instead of the whole workflow.

  • Disable the uv cache in the PyPI release job.

  • Update all GitHub Actions to the commit of their latest release, with matching version comments (except dtolnay/rust-toolchain, which has no release versioning). This includes major bumps of actions/checkout, actions/setup-node, actions/setup-python, astral-sh/setup-uv, CodSpeedHQ/action, codecov/codecov-action and j178/prek-action.
  • <!-- This is an auto-generated description by cubic. -->
    ---

    Summary by cubic


    Hardens the CI pipeline against supply chain attacks: release jobs no longer trust cached or unpinned tooling, the uv installer is provenance-checked, and workflow permissions are narrowed.

    Supply chain hardening

  • Skip Rust and npm cache restores in build-js-binaries and build-wasm on tag and release runs, since these jobs publish the native binaries and wasm.

  • Pin cargo-fuzz to 0.13.2 and install with --locked, so its dependencies come from its published lockfile.

  • Install twine from the new build dependency group in uv.lock instead of uvx, and check every wheel's zip integrity with unzip -t before release.

  • Verify the uv installer with gh attestation verify on the host before running it in the manylinux container of the PGO runtime wheel build.

  • Remove the unused contents: write permission from the npm release job, scope id-token: write to the CodSpeed job only, and disable the uv cache in the PyPI release and inspect-python-assets jobs.
  • Dependencies

  • Update all GitHub Actions to their latest release commits, including major bumps of actions/checkout, actions/setup-node, actions/setup-python, astral-sh/setup-uv, CodSpeedHQ/action, codecov/codecov-action, and j178/prek-action.

  • Add Dependabot for GitHub Actions with a monthly schedule.
  • <sup>Written for commit df1dc582997794fb68ac829ef8c4a2677f75f7f9. Summary will update on new commits.</sup>

    <a href="https://cubic.dev/pr/pydantic/monty/pull/1010?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/pydantic/monty/1010?returnTo=https%3A%2F%2Fgithub.com%2Fpydantic%2Fmonty%2Fpull%2F1010&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

    <!-- End of auto-generated description by cubic. -->

    Diff: 476 lines (+357 / -119) across 5 files Reviewer: Viicos Review duration: 5452m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 476 lines diff across 5 files
    0.46
    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.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1010"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 45.8% (MEDIUM) · Higher = larger blast radius
    45.8%
    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: 18.1% · Safe to merge
    18.1%
    Repository