Skip to content

fix: generate Cargo.lock before security audit#24

Merged
jdx merged 2 commits intomainfrom
fix/security-audit-lockfile
Feb 15, 2026
Merged

fix: generate Cargo.lock before security audit#24
jdx merged 2 commits intomainfrom
fix/security-audit-lockfile

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Feb 15, 2026

Summary

  • The security audit CI job fails because Cargo.lock doesn't exist — library crates don't commit it per Rust convention
  • Adds a cargo generate-lockfile step before running cargo-audit

Test plan

  • Verify the security-audit job passes in CI

🤖 Generated with Claude Code


Note

Low Risk
CI-only changes plus an additional advisory ignore; no production code paths are modified, but ignoring a security advisory can mask a real issue until dependencies are upgraded.

Overview
Ensures the security-audit GitHub Actions job no longer fails on crates that don’t commit Cargo.lock by adding a cargo generate-lockfile step before running rustsec/audit-check.

Updates .cargo/audit.toml to ignore RUSTSEC-2026-0009 (a transitive time crate DoS advisory via sigstore) so audits remain green until upstream dependencies are updated.

Written by Cursor Bugbot for commit afa31d4. This will update automatically on new commits. Configure here.

Library crates don't commit Cargo.lock, so it needs to be generated
before running cargo-audit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Transitive dependency from sigstore (time crate DoS via stack exhaustion).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON, but a Cloud Agent failed to start.

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Generate Cargo.lock
run: cargo generate-lockfile
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Audit job uses unpinned Rust toolchain

Medium Severity

security-audit now runs cargo generate-lockfile without installing a Rust toolchain. This step depends on whatever cargo version is preinstalled on ubuntu-latest, so the job can fail when the runner image lags behind the crate’s required toolchain.

Fix in Cursor Fix in Web

@jdx jdx merged commit 71c2cd1 into main Feb 15, 2026
8 checks passed
@jdx jdx deleted the fix/security-audit-lockfile branch February 15, 2026 13:18
@jdx jdx mentioned this pull request Feb 15, 2026
@jdx jdx mentioned this pull request Apr 3, 2026
jdx added a commit that referenced this pull request Apr 4, 2026
## 🤖 New release

* `sigstore-verification`: 0.2.1 -> 0.2.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.2.2](v0.2.1...v0.2.2)
- 2026-04-04

### Added

- add builder pattern for customizable GitHub API URL
([#36](#36))

### Fixed

- generate Cargo.lock before security audit
([#24](#24))

### Other

- *(deps)* pin dtolnay/rust-toolchain action to 29eef33
([#33](#33))
- *(deps)* update jdx/mise-action digest to 1648a78
([#34](#34))
- *(deps)* update jdx/mise-action action to v4
([#31](#31))
- *(deps)* update swatinem/rust-cache digest to e18b497
([#30](#30))
- *(deps)* update release-plz/action digest to 1528104
([#29](#29))
- *(deps)* update jdx/mise-action digest to 5228313
([#28](#28))
- *(deps)* update jdx/mise-action digest to e79ddf6
([#27](#27))
- *(deps)* pin dependencies
([#26](#26))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: this PR only updates release metadata (crate version and
changelog) without changing library code or behavior.
> 
> **Overview**
> Prepares the `v0.2.2` release by bumping `Cargo.toml` from `0.2.1` to
`0.2.2` and adding the corresponding `CHANGELOG.md` section.
> 
> The changelog notes the builder pattern for a customizable GitHub API
URL, a fix to generate `Cargo.lock` before security audit, and several
CI/dependency pin updates.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
9b5a822. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

1 participant