Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ jobs:
cargo +${{ steps.msrv.outputs.msrv }} test --workspace --no-fail-fast
fi

- name: Install cargo-audit
run: cargo install --locked cargo-audit

- name: Security audit
run: cargo audit --deny warnings

- name: Auto-commit README changes (any branch)
if: always()
run: |
Expand Down
6 changes: 6 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ cargo clippy --workspace --all-targets --all-features -- -D warnings
echo "🧪 Running tests (all features)..."
cargo test --workspace --all-features

echo "🛡️ Running cargo audit..."
if ! command -v cargo-audit >/dev/null 2>&1; then
cargo install --locked cargo-audit >/dev/null
fi
cargo audit

# Uncomment if you want to validate SQLx offline data
# echo "📦 Validating SQLx prepare..."
# cargo sqlx prepare --check --workspace
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ All notable changes to this project will be documented in this file.

## [0.5.1] - 2025-09-24

### Changed
- Replaced the optional `sqlx` dependency with `sqlx-core` so enabling the
feature no longer pulls in `rsa` via the MySQL driver, fixing the
`RUSTSEC-2023-0071` advisory reported by `cargo audit`.

### Security
- Added `cargo audit` to the pre-commit hook and CI workflow; published a
README badge to surface the audit status.

### Added
- Composite GitHub Action (`.github/actions/cargo-deny`) that installs and runs
`cargo-deny` checks for reuse across workflows.
Expand Down
Loading
Loading