← Back to Pull requests

[MNT] Pin GitHub Actions to full commit SHAs #2430

Open
unknown opened this pull request with 264 lines diff across 3 files
View on GitHub
unknown unknown commented on Sep 17, 2026 05:23 UTC
Author

Reference Issues/PRs

Fixes #2399.

What does this implement/fix? Explain your changes.

The Test, CodeQL, and PyPI Release workflows execute actions through mutable tags. Pin all 26 action references to full commit SHAs using action-pin v2.0.0, keeping the original tag beside each SHA for review and future updates.

This covers 13 references in test.yml, 4 in codeql.yml, and 9 in pypi_release.yml, including the CodeQL subpath actions and pypa/gh-action-pypi-publish@release/v1.

What should a reviewer concentrate their feedback on?

The selected SHAs correspond to the existing refs, verified directly against all eight upstream action repositories with git ls-remote. Workflow triggers, jobs, permissions, inputs, scripts, and the existing GitHub Actions Dependabot configuration are preserved.

Did you add any tests for the change?

Validation completed:

  • pre-commit run --files .github/workflows/test.yml .github/workflows/codeql.yml .github/workflows/pypi_release.yml passes all applicable hooks.

  • action-pin --check --dir .github/workflows passes; action-pin --diff --dir .github/workflows produces no further changes.

  • Parsed all three YAML files and compared them with main, verifying that only uses values changed. Reversing the generated SHA/version annotations reproduces the original text.

  • git diff --check passes.
  • No Python application code or tests changed. The full test matrix was not run locally. The Test and CodeQL PR workflows are awaiting maintainer approval.

    Any other comments?

    Zizmor integration remains the separate follow-up proposed in #2399.

    PR checklist

  • The PR title starts with [MNT].

  • Ran the configured pre-commit hooks on all changed files.

  • Verified every pin against the original upstream ref and checked that workflow behavior is otherwise unchanged.
  • Diff: 264 lines (+198 / -66) across 3 files Reviewer: phoeenniixx Review duration: 64151m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 264 lines diff across 3 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    40%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.334
    Real PR Conversation Timeline
    1 comments
    "Review active on #2430"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% 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: 46.3% (MEDIUM) · Higher = larger blast radius
    46.3%
    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: 40.9% · Lower = rushed or shallow review
    40.9%
    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: 27.3% · Safe to merge
    27.3%