You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Security run on a repository with issues turned off fails at Security fix publishing #2094
On 2026-11-11, three scheduled Security runs on thirdshift.app (0.29.1) failed at the end, each on a repository that has GitHub issues turned off. Each one:
ran the full audit and recorded its findings as private Security advisories (3–8 per repository);
started Security fix publishing (security-fix-publishing Session) for the top finding;
failed when publication listed issues:
gh issue list failed: the '<owner>/<repo>' repository has disabled issues
One of them took 1 h 47 m before failing. Each lands in Needs you as a failed Security run, although the advisories are all there.
Where
src/security/fixing.rspublish() → publication::publish(...), which files the Security fix Ticket as an issue. Nothing checks beforehand whether the repository accepts issues.
Expected
A repository with issues turned off can't hold a Security fix Ticket. Possible approaches:
check has_issues before Security fix publishing, end the run with its findings recorded, and say why no Ticket was filed;
or check it before the run starts, if a Security run without a Ticket isn't wanted.
Either way, the run shouldn't spend a publishing Session and then report Failed.
Confirmed by source inspection at selected Base commit 5e573fe. Preserve Security auditing and private finding recording when public fix Tickets cannot be filed; skip fixing with an explicit explanation rather than failing after a publishing Session.
Diagnosis and evidence
src/security/fixing.rs:53–68 creates the publishing Worktree and runs SecurityFixPublishing before publication validates the proposal.
src/security/fixing/publication.rs:149 unconditionally calls issues_created_since for an advisory-backed finding. src/github.rs:444 implements this with gh issue list; its failure propagates before Ticket creation.
src/security.rs:249 turns publication errors into failed fix outcomes, and src/processes/security.rs returns Outcome::Fixed even when publication failed before dispatch.
No has_issues, hasIssues or equivalent capability check exists in src or tests.
Checking only immediately before publication is insufficient: src/security.rs:214 selects an existing reproduced finding before the unchanged-Base gate, and src/processes/security.rs:61 skips auditing whenever that pending finding exists. An unfixable finding would repeatedly take priority over later audits.
ADR-0015 and docs/guide.md describe report-only Security runs as supported behavior. Findings waiting for the Day shift legitimately remain in Needs you independently of run failure.
Recommended implementation
Read repository issue capability through the GitHub adapter and use confirmed has_issues=false to disable fix selection/publication for that invocation, before selecting a pending fix. Preserve normal audit, reproduction and unchanged-Base behavior.
Complete otherwise successful audits successfully, retaining their private records and waiting-finding metadata. Explain in progress output and the Run notification that fixing was skipped because repository issues are disabled. Do not describe the finding as attempted or fixed, create a fix link, dispatch a Ticket run, or start a Security fix publishing Session.
Cover the shared Custom process path: src/processes/findings.rs also calls fix_record, and src/processes/security_audit.rs suppresses audits when an allowed fix is pending. Apply consistent capability handling so an unpublishable fix neither fails its Step nor suppresses an otherwise eligible audit.
Distinguish a confirmed disabled setting from failed or malformed metadata reads. Preserve genuine dependency failures and existing publication privacy checks. Keep private-repository finding-storage failures outside this Ticket's scope; those findings themselves require issues.
Document the behavior in docs/guide.md and affected hand-written site descriptions; regenerate the manual as required.
Acceptance and validation
Extend tests/fakes/gh.rs to represent has_issues, defaulting existing fixtures to enabled. Add regressions for findings reproduced by a new audit and an older reproduced finding on a changed Base, with issues disabled: audit/recording succeeds, publishing and dispatch do not run, the skip reason is visible, and advisory evidence remains intact. Cover both single-Ticket and Spec-sized fixes, repeated-run/unchanged-Base behavior, the Custom process path, and metadata errors. Keep enabled-repository fixing and report-only behavior passing. Use tests/security_run.rs, src/security/tests.rs and relevant process tests; finish implementation validation with scripts/affected-tests main.
No source changes or GitHub writes were made during triage.
Activity
JacobStephens2 commentedon Nov 12, 2026
Agent Brief
Confirmed by source inspection at selected Base commit 5e573fe. Preserve Security auditing and private finding recording when public fix Tickets cannot be filed; skip fixing with an explicit explanation rather than failing after a publishing Session.
Diagnosis and evidence
Recommended implementation
Acceptance and validation
Extend tests/fakes/gh.rs to represent has_issues, defaulting existing fixtures to enabled. Add regressions for findings reproduced by a new audit and an older reproduced finding on a changed Base, with issues disabled: audit/recording succeeds, publishing and dispatch do not run, the skip reason is visible, and advisory evidence remains intact. Cover both single-Ticket and Spec-sized fixes, repeated-run/unchanged-Base behavior, the Custom process path, and metadata errors. Keep enabled-repository fixing and report-only behavior passing. Use tests/security_run.rs, src/security/tests.rs and relevant process tests; finish implementation validation with scripts/affected-tests main.
No source changes or GitHub writes were made during triage.
Name Security outcome variants in run's fixing-skipped match
Merge pull request #2125 from JacobStephens2/issue-2094
Merge origin/main into issue-2096