Skip to content

Conversation

@ordokr
Copy link

@ordokr ordokr commented Dec 30, 2025

In response to #64

Summary

  • Adds tauri audit (Rust + JS), outputs: human/json/sarif
  • Deterministic ignore/dedupe/sort; GitHub-friendly SARIF (stable ruleId + artifact locations)
  • Exit code contract (0/1/2/3) enforced consistently
  • Adds tauri build --audit and build.audit config + schema
  • Docs: build.audit example + GitHub Actions SARIF upload + exit-code table

Testing

  • cargo fmt
  • cargo clippy -p tauri-cli --manifest-path crates/tauri-cli/Cargo.toml -- -D warnings
  • cargo test -p tauri-cli --manifest-path crates/tauri-cli/Cargo.toml
  • Manual e2e exit-code checks (policy violation=1, warn=0, exec failure=2, config error=3)
    EOF
    )"

- Centralize audit exit codes and provide mapping comment.
- Confine  parsing to a small helper to avoid serializing full config.
- Replace ad-hoc  usages with  for consistent exit codes.
…xiting

- Update config loader to return schema validation errors so callers can map to exit code 3.
…xit-code table

- Example  with mode, failOn, ignores, and sarifPath
- GitHub Actions snippet to upload generated SARIF
- Exit-code table for 0/1/2/3
- Expose `--audit` to run dependency audit as part of `tauri build`
- Honor `build.audit` config to run audit during build when appropriate
- Wire `Audit` command into main CLI
@ordokr ordokr requested a review from a team as a code owner December 30, 2025 01:59
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

1 participant