diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c005767b..8f7f2427 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,15 @@ jobs: components: rustfmt - run: cargo +nightly fmt --all -- --check + audit: + name: cargo audit + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v7 + - uses: taiki-e/install-action@cargo-audit + - run: cargo audit + clippy: name: clippy (${{ matrix.os }}) runs-on: ${{ matrix.os }} diff --git a/Cargo.lock b/Cargo.lock index 66fc9a66..b3604957 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1194,9 +1194,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.40" +version = "0.23.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b" +checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" dependencies = [ "log", "once_cell", @@ -1218,9 +1218,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.13" +version = "0.103.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" dependencies = [ "ring", "rustls-pki-types", diff --git a/devkit.toml b/devkit.toml index f7a5c84f..bfdad284 100644 --- a/devkit.toml +++ b/devkit.toml @@ -29,6 +29,11 @@ programs = ["git"] args = ["worktree", "remove"] reason = "Use devkit's issue binary to remove worktrees: issue end [branch-name]" +[tasks.audit] +description = "Check Cargo.lock against the RustSec advisory database" +run = ["cargo", "audit"] +guard = true + [tasks.build] description = "Build the workspace" run = ["cargo", "build", "--workspace", "--locked"]