Skip to content

fix(ci): generate lockfile before security audit - #36

Merged
febyeji merged 1 commit into
mainfrom
fix/security-audit-lockfile
Jul 27, 2026
Merged

fix(ci): generate lockfile before security audit#36
febyeji merged 1 commit into
mainfrom
fix/security-audit-lockfile

Conversation

@febyeji

@febyeji febyeji commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Generate an ephemeral Cargo.lock before running rustsec/audit-check@v2.
  • Ignore three rustls-webpki advisories that enter the lockfile only through dev dependencies pinned for backward-compatibility and integration tests.

Root cause

rustsec/audit-check@v2 no longer runs cargo generate-lockfile, unlike v1.4.1. Since ldk-node is a library and intentionally ignores Cargo.lock, the scheduled audit failed before it could inspect any dependencies.

Generating the lockfile exposed three advisories for rustls-webpki 0.101.7. That version is only pulled in by ldk-node 0.6.2 and electrsd 0.36.1, which are dev dependencies retained for compatibility and integration testing.

Impact

Scheduled and manually dispatched security audits can inspect the resolved dependency graph again without committing a library lockfile. Runtime dependencies remain fully audited; only the three documented dev-only advisories are excluded.

Validation

rustsec/audit-check v2 no longer generates Cargo.lock. Create an ephemeral lockfile for the library audit and ignore advisories that only enter through dev dependencies pinned for backward-compatibility and integration tests.
@febyeji
febyeji force-pushed the fix/security-audit-lockfile branch from 879c0d6 to e2a9b07 Compare July 27, 2026 03:31
@febyeji
febyeji marked this pull request as ready for review July 27, 2026 03:37
@febyeji
febyeji merged commit b8e2370 into main Jul 27, 2026
32 of 48 checks passed
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