From 02ed2438109976a4c2e2da1aa23bd12c64c2f3e8 Mon Sep 17 00:00:00 2001 From: hdbg Date: Sat, 14 Feb 2026 18:44:32 +0100 Subject: [PATCH] ci(server): introduce `cargo-audit` pipeline --- .woodpecker/server-audit.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .woodpecker/server-audit.yaml diff --git a/.woodpecker/server-audit.yaml b/.woodpecker/server-audit.yaml new file mode 100644 index 0000000..55e3a86 --- /dev/null +++ b/.woodpecker/server-audit.yaml @@ -0,0 +1,26 @@ +when: + - event: pull_request + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + - event: push + branch: main + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + +steps: + - name: test + image: jdxcode/mise:latest + directory: server + environment: + CARGO_TERM_COLOR: always + CARGO_TARGET_DIR: /usr/local/cargo/target + CARGO_HOME: /usr/local/cargo/registry + volumes: + - cargo-target:/usr/local/cargo/target + - cargo-registry:/usr/local/cargo/registry + commands: + - apt-get update && apt-get install -y pkg-config + # Install only the necessary Rust toolchain and test runner to speed up the CI + - mise install rust + - mise install cargo:cargo-audit + - mise exec cargo:cargo-audit -- cargo audit \ No newline at end of file