From f113c4ea82d82674cdd00eda61ac3c33c3f916e5 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Fri, 18 Oct 2024 15:24:14 -0700 Subject: [PATCH] ci: Use "v2.0.0" branch for security check Signed-off-by: John Nunley --- .github/workflows/ci.yml | 5 ++++- Cargo.toml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7c3712..e567c88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + # rustsec/audit-check used to do this automatically + - name: Generate Cargo.lock + run: cargo generate-lockfile # https://github.com/rustsec/audit-check/issues/2 - - uses: rustsec/audit-check@master + - uses: rustsec/audit-check@v2.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 462958c..69ae170 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,9 @@ fastrand = "2.0.0" [target.'cfg(target_family = "wasm")'.dev-dependencies] wasm-bindgen-test = "0.3" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] } + [features] default = ["std"] std = []