From aaed659f55985590fdfa02ff765e5e1a6fd48458 Mon Sep 17 00:00:00 2001 From: Tarek Date: Fri, 7 Jun 2024 19:28:21 +0300 Subject: [PATCH] feat(ci): add a workflow to run cargo audit Signed-off-by: Tarek --- .github/workflows/audit.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000..0d9741d0 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,28 @@ +name: Cargo Audit + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: "30 1 1,15 * *" + +jobs: + cargo_audit: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Install cargo audit + run: cargo install --locked cargo-audit + + - name: Run cargo audit + run: cargo audit