← Back to Pull requests

[security] Address all zizmor findings in github actions workflows #122

Closed
unknown closed this pull request without merging on Oct 09, 2026 11:27 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 17:32 UTC
Author

Motivation

This follows up on https://github.com/ROCm/rockrel/pull/121, fixing all preexisting zizmor findings (https://github.com/ROCm/rockrel/actions/runs/37590913671/job/112692403606?pr=121).

Technical Details

See https://docs.zizmor.sh/audits/ for documentation for each audit
See https://github.com/ROCm/TheRock/blob/main/docs/development/style_guides/github_actions_style_guide.md#security-guidelines and https://github.com/ROCm/TheRock/issues/8272 for how these have been handled in TheRock.

Test Plan

1. Zizmor locally

    λ py -V:3.12 -m venv 3.12.venv && .\3.12.venv\Scripts\activate.bat
    (3.12.venv) λ pip install zizmor

    # before
    (3.12.venv) λ zizmor --persona regular --config .github\scan_tools_configs\zizmor.yml .
    ...
    84 findings (47 suppressed, 14 unsafe fixes): 0 informational, 2 low, 12 medium, 23 high

    # after
    (3.12.venv) λ zizmor --persona regular --config .github\scan_tools_configs\zizmor.yml .
     INFO zizmor: � zizmor v1.30.1
     WARN audit: zizmor: zizmor is running in offline mode by default; some audits and auto-fixes will not be available. see https://docs.zizmor.sh/usage/#operating-modes for details
     INFO audit: zizmor: � completed .\.github\dependabot.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_release.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_release_asan.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_release_linux_jax_wheels.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_release_linux_pytorch_wheels.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_release_windows_pytorch_wheels.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_repackage.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_repackage_linux.yml
     INFO audit: zizmor: � completed .\.github\workflows\multi_arch_repackage_windows.yml
     INFO audit: zizmor: � completed .\.github\workflows\pr-security-scan.yml
     INFO audit: zizmor: � completed .\.github\workflows\pre-commit.yml
     INFO audit: zizmor: � completed .\.github\workflows\test_artifacts.yml
     INFO audit: zizmor: � completed .\.github\workflows\test_native_linux_packages_install.yml
     INFO audit: zizmor: � completed .\.github\workflows\test_pytorch_wheels_full.yml
     INFO audit: zizmor: � completed .\.github\workflows\unit_tests.yml
     INFO audit: zizmor: � completed .\.github\workflows\weekly-security-scan.yml
     INFO audit: zizmor: � completed .\.pre-commit-config.yaml
    No findings to report. Good job! (8 ignored, 45 suppressed)
    

2. Zizmor on the PR

Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • Diff: 361 lines (+270 / -91) across 4 files Reviewer: cgoea Review duration: 2515m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 361 lines diff across 4 files
    0.66
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #122"
    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: 65.8% (HIGH) · Higher = larger blast radius
    65.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: 26% · Safe to merge
    26%
    Repository