Audit Rust and npm dependencies in CI - #10
Merged
Merged
Conversation
A new Security audit workflow runs cargo audit against src-tauri/Cargo.lock and npm audit on pull requests, pushes to main, and weekly, so advisories published against unchanged dependencies are caught too. Known vulnerabilities fail the check; RustSec unmaintained/unsound notices (today seven, all from Tauri's GTK stack) remain warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Adds a Security audit workflow (
.github/workflows/security-audit.yml) with two jobs:cargo-auditrunscargo audit --file src-tauri/Cargo.lock, usingcargo-audit0.22.2 installed with--locked.npm-auditrunsnpm auditagainstpackage-lock.json.The workflow runs on pull requests, on pushes to
main, every Monday at 06:17 UTC, and on manual dispatch. The weekly run catches advisories that are published against dependencies the repository hasn't changed.A known vulnerability fails the check. RustSec "unmaintained" and "unsound" notices stay as warnings. There are seven today, all coming from Tauri's GTK stack (
glib,proc-macro-error,unic-*), and nothing in this repository can resolve them.It is a separate workflow so the weekly run doesn't rebuild and install-test every package. The existing
Linux packagesworkflow is unchanged.docs/development.mdnow describes the workflow and how to run both audits locally.Validation
cargo auditreports 0 vulnerabilities with 7 allowed warnings, andnpm auditreports 0 vulnerabilities.run:line is a fixed command with no event-controlled input.Review notes
mainruleset does not require the new checks yet. To make a failing audit block merges, addcargo-auditandnpm-auditas required status checks.🤖 Generated with Claude Code