← Back to Pull requests

Add github action static analysis with Zizmor and actionlint #3799

Merged
UnknownPlatypus merged 6 files (79 lines) on Nov 07, 2026 10:16 UTC
View on GitHub
UnknownPlatypus UnknownPlatypus commented on Nov 07, 2026 02:12 UTC
Author

I have made things!

I've ported the setup I use in https://github.com/UnknownPlatypus/djangofmt (and that astral is using for ruff/uv).
It ads 2 tools and fix issues:

  • https://zizmor.sh/

  • https://rhysd.github.io/actionlint/
  • Given the amount of security incident around github actions I think it's worth hardening.

    AI Policy


  • I have read and agree to the AI Policy, removed any "Co-Authored-By" lines attributing coding agents, and manually reviewed the final result
  • Diff: 79 lines (+62 / -17) across 6 files Reviewer: None requested Review duration: 483m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.49) × (1 − Review Confidence (0.66)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.49 · 79 lines diff across 6 files
    0.49
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.56 · 5 substantive comment(s)
    0.56
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    65%
    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.262
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    6 items
    sobolevn sobolevn commented on code on Nov 07, 2026 08:04 UTC
    Code Review
    .pre-commit-config.yaml:1
    @@ -39,4 +49,5 @@ ci:
       autoupdate_schedule: weekly
       submodules: false
       skip:
    +    - actionlint
    sobolevn sobolevn commented on code on Nov 07, 2026 08:05 UTC
    Code Review
    .pre-commit-config.yaml:1
    @@ -31,6 +31,16 @@ repos:
         rev: 46787482b9fb2003c56e0f7592e312ef381829d9  # frozen: 0.13.6
         hooks:
           - id: uv-lock
    +  - repo: https://github.com/zizmorcore/zizmor-pre-commit
    +    rev: 06a39750ec31860bb44f2acf67182c40016cd1e7  # frozen: v1.32.0

    Please, run pre-commit autoupdate --freeze, this is not the latest version :)

    UnknownPlatypus UnknownPlatypus commented on code on Nov 07, 2026 09:29 UTC
    Code Review
    .pre-commit-config.yaml:1
    @@ -39,4 +49,5 @@ ci:
       autoupdate_schedule: weekly
       submodules: false
       skip:
    +    - actionlint

    last time I tried it it could not build because it was exceeding the pre-commit.ci free tier size limit but I'm all for it if it works now

    UnknownPlatypus UnknownPlatypus commented on code on Nov 07, 2026 09:32 UTC
    Code Review
    .pre-commit-config.yaml:1
    @@ -31,6 +31,16 @@ repos:
         rev: 46787482b9fb2003c56e0f7592e312ef381829d9  # frozen: 0.13.6
         hooks:
           - id: uv-lock
    +  - repo: https://github.com/zizmorcore/zizmor-pre-commit
    +    rev: 06a39750ec31860bb44f2acf67182c40016cd1e7  # frozen: v1.32.0
    UnknownPlatypus UnknownPlatypus commented on code on Nov 07, 2026 09:51 UTC
    Code Review
    .pre-commit-config.yaml:1
    @@ -39,4 +49,5 @@ ci:
       autoupdate_schedule: weekly
       submodules: false
       skip:
    +    - actionlint

    seem to work, awesome, will switch djangofmt

    Reviewers
    None requested
    Assignees
    UnknownPlatypus UnknownPlatypus
    Labels
    risk: low confidence: 65.8% 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: 48.5% (MEDIUM) · Higher = larger blast radius
    48.5%
    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: 65.8% · Lower = rushed or shallow review
    65.8%
    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: 16.6% · Safe to merge
    16.6%