← Back to Pull requests

ci: close Jira security issues once a stable release ships the fix #162081

Open
c2h5oh opened this pull request with 860 lines diff across 4 files
View on GitHub
c2h5oh c2h5oh commented on Nov 30, 2026 21:48 UTC
Author

What does this PR do?

Companion to #162050. After each stable release, this closes the Jira issues that workflow filed for Dependabot alerts and privately reported security advisories, once a published stable release contains the fix. Each issue gets a comment naming the first release that shipped the fix (the release whose changes since the previous stable release brought it in) and the evidence: the fixing commit, or the commits that name the advisory.

When it runs

It runs right after the release, but as its own workflow, triggered when these finish:

  • a green Stable Release run with a stable title (canary and commit builds don't count);

  • a green Stable Release Publication run;

  • a manual run, with an optional dry run.
  • It is deliberately not a job inside stable-release.yml. A failing job there would turn the release red and set off the reconciler's reruns and burned claims. Here, a Jira outage can't affect a release.

    How it decides what was fixed

    It checks all published releases on every run, not just the one that triggered it. A green run is often still an unpublished draft that release.py publish or a later sequencer pass publishes, so the triggering run's version is not reliable. A missed run catches up on the next one, and rerunning is harmless: only open issues are looked at.

    Releases are the published, non-prerelease vX.Y.Z tags. The old date-style tags such as v2026.9.24 are not versions.

    Dependabot alert: GitHub must have marked it fixed. The fixing commit is the newest first-parent commit on main that touched the alert's manifest at or before fixed_at. The issue is credited to the first published release that contains that commit.

    Private security report: credited to the first published release containing any commit whose message names the advisory's GHSA or CVE id.

  • Ids must match exactly.

  • Reverts, and the commits they revert, don't count.

  • A cherry-pick onto a release/ branch counts.

  • If no commit names the advisory, a published* advisory's patched version of hermes-agent is used, matched on its own minor version line. Patched versions on a triage report are the reporter's guess and are ignored.
  • Closing:

  • The comment is sent as part of the same request that moves the issue to done. An issue that can't be closed gets no comment, and no duplicate comment on later runs.

  • A failed lookup or close for one issue doesn't stop the others. The run exits 1 at the end with the number of failures.
  • Public logs: this repo is public, so the run prints only counts, versions and Jira keys. Error messages hide advisory ids and alert numbers.

    Changes Made

  • .github/workflows/release-security-jira.yml:

  • - Triggers listed above, with a job-level if that a test runs through the repo's _gha_expr evaluator.
    - Concurrency is set on the job, so runs that will be skipped never displace a pending real run.
    - Uses the trusted-automation environment and permissions: {} at workflow level.
    - Fails early if the GitHub App credentials are missing.
  • scripts/ci/release_security_jira.py: standard library and git only.

  • tests/ci/test_release_security_jira.py: 16 behaviour tests. Git runs against a real throwaway repository with a main line, a release/1.0 maintenance branch and a CalVer tag. GitHub and Jira are faked.

  • .github/workflows/README.md: a section under "Stable releases", a row in the full index, and the workflow count corrected from 47 to 49.
  • Setup required

    Same trusted-automation environment as #162050:

  • The GitHub App needs Contents: read, Dependabot alerts: read and Repository security advisories: read.

  • The Jira account also needs permission to transition issues and add comments in the project.

  • Optional settings:

  • - vars.JIRA_DONE_TRANSITION: which transition to use. By default it picks the first one into a done status.
    - vars.JIRA_RESOLUTION: a resolution to set, e.g. Fixed.

    How to Test

    1. Merge #162050 and configure both workflows.
    2. Run gh workflow run release-security-jira.yml -f dry_run=true and check the "would close" keys and versions it reports.
    3. Publish a stable release, or run without dry_run. Check the comments and the done status in Jira.

    Verification so far

  • Tests: all 16 pass. Each one fails when the behaviour it covers is deliberately broken.

  • Linters: ruff and actionlint report nothing.

  • Live GitHub data, read-only, no Jira calls, run from a subdirectory:

  • - Script: 16 published stable releases; the check took about 11 s and peaked at about 610 MB of memory.
    - Dependabot: all 80 alerts fixed since November are matched to a release (v0.23.0, v0.23.1 or v0.23.3). None is matched to a release published before GitHub marked the alert fixed.
    - Private reports: 18 of 738 are matched, all through commits naming their id. Most closed reports never reference a fix.
  • Review: two rounds of adversarial review, with every finding fixed. The second round also confirmed that the first round's findings were fixed.

  • Jira: not exercised for real yet; only checked against fakes.

  • Not yet run: the full just test and just check.
  • Notes

  • Shared code with #162050: both are based on main, so this one copies its small HTTP client and the label names. A shared module can follow once both land.

  • Known limits:

  • - The fixing commit for a Dependabot alert is inferred from commit times. A late-pushed commit to the same manifest can only delay the closure, never close an issue early.
    - A security report whose fix is never referenced in a commit message stays open until someone closes it or publishes the advisory with a patched version.

    Type of Change

  • ✨ New feature (non-breaking change that adds functionality)
  • Diff: 860 lines (+859 / -1) across 4 files Reviewer: arkheioncorp Review duration: 4625m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.71) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.71 · 860 lines diff across 4 files
    0.71
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.61 · 1 substantive comment(s)
    0.61
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    78%
    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.400
    Sensitive Paths sensitive_paths
    0.071
    Real PR Conversation Timeline
    3 items
    github-actions[bot] github-actions[bot] commented on Nov 30, 2026 21:48 UTC
    Bot

    <!-- hermes-ci-review-bot -->

    ૮ >ﻌ< ა ci review

    <sub>ran on 90bc60a — ci: close Jira security issues once a stable release ships t</sub>

    ❌ Job failures

    Python lints / Python lints / Ratchet the PR against the base branch tip · View job

    Job Python lints / Python lints / Ratchet the PR against the base branch tip failed.

    ---

    Python lints / Python lints / Run footgun checker · View job

    Job Python lints / Python lints / Run footgun checker failed.

    ---

    ⚠️ Warnings

    CI timings · View report · View job

    Wall time 10m39s vs 7m57s (+34.0%). 9 job(s) slower, 10 faster,

  • OS-specific tests / macOS-only tests (2/2): -134.0s

  • OS-specific tests / macOS-only tests (1/2): -47.0s

  • JS & TS checks / JS & TS checks: +31.0s

  • Catalog tests / Catalog tests: -31.0s

  • Repository guards / Repository guards: -28.0s
  • ---

    ℹ️ Info

    CI caches · View report · View job

    37 / 37 cache hits (0 misses)
    6171.90 MiB restored
    0 B not restored.

    <details>
    <summary>per-job cache results</summary>

    <h3>hits</h3>

    <table><thead><tr><th>Job</th><th>Step</th><th>Logs</th><th>Restored</th><th>Δ vs main</th></tr></thead><tbody>
    <tr><td>JS &amp; TS checks / JS &amp; TS checks</td><td>Set up the locked JS build toolchain / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040215#step:4:1">view step</a></td><td>156.04 MiB</td><td>+0 B</td></tr>
    <tr><td>JS &amp; TS checks / JS &amp; TS checks</td><td>Set up the locked JS build toolchain / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040215#step:4:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>JS &amp; TS checks / JS &amp; TS checks</td><td>Set up the locked JS build toolchain / Restore node dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040215#step:4:1">view step</a></td><td>180.90 MiB</td><td>+0 B</td></tr>
    <tr><td>JS &amp; TS checks / JS &amp; TS checks</td><td>Restore node_modules</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040215#step:6:1">view step</a></td><td>263.28 MiB</td><td>+0 B</td></tr>
    <tr><td>Python lints / Python lints</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041414#step:4:1">view step</a></td><td>83.13 MiB</td><td>+0 B</td></tr>
    <tr><td>Rust tests / cargo test (bootstrap installer)</td><td>Restore cargo cache</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041474#step:5:1">view step</a></td><td>715.87 MiB</td><td>+0 B</td></tr>
    <tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040040#step:4:1">view step</a></td><td>156.04 MiB</td><td>+0 B</td></tr>
    <tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore node dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040040#step:4:1">view step</a></td><td>71.71 MiB</td><td>unknown</td></tr>
    <tr><td>Repository guards / Repository guards</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040384#step:36:1">view step</a></td><td>156.04 MiB</td><td>+0 B</td></tr>
    <tr><td>Repository guards / Repository guards</td><td>Run ./.github/actions/setup-pm / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040384#step:36:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Repository guards / Repository guards</td><td>Run ./.github/actions/setup-pm / Restore node dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208040384#step:36:1">view step</a></td><td>180.90 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (2/3)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041342#step:5:1">view step</a></td><td>155.62 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (2/3)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041342#step:5:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (2/3)</td><td>Run tests</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041342#step:8:1">view step</a></td><td>0.10 MiB</td><td>unknown</td></tr>
    <tr><td>Catalog tests / Catalog tests</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041375#step:4:1">view step</a></td><td>83.13 MiB</td><td>+0 B</td></tr>
    <tr><td>Catalog tests / Catalog tests</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041375#step:4:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (3/3)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041392#step:5:1">view step</a></td><td>155.62 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (3/3)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041392#step:5:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (3/3)</td><td>Run tests</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041392#step:8:1">view step</a></td><td>0.10 MiB</td><td>unknown</td></tr>
    <tr><td>Remote terminal backends / SSH + Docker backends (real sshd, real daemon)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041395#step:6:1">view step</a></td><td>83.13 MiB</td><td>+0 B</td></tr>
    <tr><td>Remote terminal backends / SSH + Docker backends (real sshd, real daemon)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041395#step:6:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (1/3)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041401#step:5:1">view step</a></td><td>155.62 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (1/3)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041401#step:5:1">view step</a></td><td>77.22 MiB</td><td>+0 B</td></tr>
    <tr><td>Python tests / Run tests (1/3)</td><td>Restore per-file duration cache</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041401#step:7:1">view step</a></td><td>0.10 MiB</td><td>unknown</td></tr>
    <tr><td>Bootstrap installer / install.sh protocol + small fresh-install E2E</td><td>Prepare tools for the real small-graph installer test / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041602#step:10:1">view step</a></td><td>83.13 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208042105#step:5:1">view step</a></td><td>236.12 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208042105#step:5:1">view step</a></td><td>106.70 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041664#step:5:1">view step</a></td><td>107.22 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041664#step:5:1">view step</a></td><td>87.53 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041590#step:5:1">view step</a></td><td>107.22 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041590#step:5:1">view step</a></td><td>87.53 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041973#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041973#step:4:1">view step</a></td><td>222.58 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041973#step:4:1">view step</a></td><td>860.47 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041969#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041969#step:4:1">view step</a></td><td>222.58 MiB</td><td>+0 B</td></tr>
    <tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/46520546376/job/142208041969#step:4:1">view step</a></td><td>860.47 MiB</td><td>+0 B</td></tr>
    </tbody></table>

    <h3>misses</h3>

    none

    <p>Compressed archive bytes. Not-restored bytes use the main-size reference; missing sizes remain unknown.</p>

    </details>

    arkheioncorp arkheioncorp commented on Nov 30, 2026 23:32 UTC
    Reviewer

    Automated review — REQUEST_CHANGES

    Blocking: scripts/ci/release_security_jira.py:161 calls subprocess.run() in local_git() without a timeout. A stalled git child can hold the workflow until the job-level timeout, and this violates the repository health rule HX006. The required Python lints and All required checks pass (v2) checks are already failing for this exact finding.

    Please add a finite timeout and handle subprocess.TimeoutExpired through the existing sanitized error path.

    Verified: the 16 behavior tests passed locally; CI reports that Ruff passed, but the health gate blocks the PR.

    Reviewers
    Assignees
    c2h5oh c2h5oh
    Labels
    risk: low confidence: 78.1% 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: 70.6% (HIGH) · Higher = larger blast radius
    70.6%
    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: 78.1% · Lower = rushed or shallow review
    78.1%
    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: 15.5% · Safe to merge
    15.5%