← Back to Pull requests

ci: pin Actions and Poetry, and add an OSV check #102

Closed
unknown closed this pull request without merging on Nov 26, 2026 11:14 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 20:59 UTC
Author

Pins

  • Every action is pinned to a commit SHA, with its version in a comment.

  • Dependabot updates both.
  • pypa/gh-action-pypi-publish moves from its release/v1 branch, which

  • Dependabot cannot update, to v1.14.3.
  • The knative-*.yaml workflows stay at knative/actions@main, since knobots

  • syncs them.
  • The workflows install Poetry 2.5.1 from .github/requirements.txt instead

  • of the newest release. Dependabot now watches that file too.
  • publish.yaml builds with poetry build on Python 3.12 instead of

  • python -m build. Poetry 2.5.1 requires poetry-core 2.5.0 exactly, so
    the build backend is pinned as well. The wheel and sdist for 0.8.1 are
    byte-identical to before.
  • ci.yaml also runs poetry build, so a Poetry update that breaks the

  • build fails its pull request, not the release.

    OSV check

    The same check as knative-extensions/func-go#208. OSV-Scanner scans the
    base branch and the pull request, and fails when the pull request adds an
    advisory the base branch does not have. Advisories already on main do not
    fail it. Python has no call analysis, so any new advisory fails it. Results
    show as pull request annotations and job artifacts, not code scanning
    alerts.

    It runs with --no-resolve. .github/requirements.txt names only Poetry,
    and without the flag the scanner guesses versions for Poetry's
    dependencies. On this PR it guessed anyio 4.9.0, certifi 2026.7.22,
    filelock 3.19.1, idna 3.9.0 and virtualenv 21.9.1 and failed on their 24
    advisories, while CI's pip installed 4.16.0, 2026.11.20, 4.3.1, 3.20 and
    21.15.13, all past the fixes.

    Not from this PR: "Publish to TestPyPI" fails on every push to main
    (400 File already exists, since the version stays 0.8.1). After this
    merges, the "Build distribution" job of that run shows whether the new
    build works.

    🤖 Generated with Claude Code

    Diff: 233 lines (+174 / -59) across 2 files Reviewer: aliok Review duration: 2294m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 233 lines diff across 2 files
    0.37
    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.326
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #102"
    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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    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: 14.6% · Safe to merge
    14.6%