Skip to content

CI: run cargo audit on main's schedule only, not on pull requests - #936

Merged
schmitch merged 1 commit into
mainfrom
schmitch/audit-on-schedule-only
Dec 2, 2026
Merged

schmitch merged 1 commit into
mainfrom
schmitch/audit-on-schedule-only

Conversation

@schmitch

@schmitch schmitch commented Dec 2, 2026

Copy link
Copy Markdown
Member

cargo audit no longer runs in CI. The daily Audit workflow (audit.yml: main's Cargo.lock, 9:00 Berlin, and on demand) is the only place it runs.

Why

ci.yml's audit job ran for every change to Cargo.lock, .cargo/audit.toml or the job's own lines, and failed on whatever RustSec advisory was open that day. #927, a Dependabot bump of the job's install action, failed on twelve advisories for crates it does not touch (run).

What changes

  • ci.yml: the audit job and the changes job's audit output are removed.
  • ci-changes.sh: the audit group (Cargo.lock, .cargo/audit.toml) is removed. A change to .cargo/audit.toml alone now runs no CI job.
  • release.yml: audit leaves REQUIRED_JOBS. A release is no longer blocked by an open advisory; DEVELOPMENT.md says to look at the latest Audit run before one.
  • audit.yml: unchanged but for its comments. It keeps its schedule and workflow_dispatch.
  • DEVELOPMENT.md, the comments in dependabot.yml and .cargo/audit.toml: brought in line. DEVELOPMENT.md says how to check a fix before it merges: a local cargo audit, or a manual run of the workflow on the fix's branch.

Notes for the reviewer

  • audit is not among the required status checks of the main ruleset, so no setting has to change for pull requests to merge.
  • Nothing audits a lockfile change before it merges any more. A Dependabot update that brings in a crate with a known advisory shows up in the next morning's run.
  • The daily run has failed since at least 27 November without a pull request picking it up. The advisories themselves are fixed in a pull request of their own, from schmitch/elegant-gates-mvqubk.
  • No changelog fragment: the change does not reach the people who run Forge.

No issue asks for this change.


Generated by Claude Code

ci.yml's `audit` job ran for every change to Cargo.lock,
.cargo/audit.toml or the job's own lines, and failed on whatever RustSec
advisory was open that day: a Dependabot bump of the job's install action
failed on twelve advisories for crates it did not touch.

The Audit workflow (audit.yml) already audits main's lockfile every
morning and on demand; it is now the only place cargo audit runs. The
`audit` job, its group in ci-changes.sh and its entry in the release
gate's REQUIRED_JOBS are removed, and DEVELOPMENT.md says how a fix is
checked before it merges (a local run, or a manual run of the workflow on
the fix's branch).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012e6DJY4xSPLWVHnr546DHR
@schmitch
schmitch enabled auto-merge December 2, 2026 16:14
@schmitch
schmitch added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 19b8284 Dec 2, 2026
33 of 35 checks passed
@schmitch
schmitch deleted the schmitch/audit-on-schedule-only branch December 2, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants