From 03685b1bde365dd9a77f2818356359740254c9c1 Mon Sep 17 00:00:00 2001 From: Slatian Date: Fri, 28 Mar 2025 23:02:28 +0100 Subject: [PATCH] Added some basic automatic security screening using cargo audit --- .forgejo/workflows/cargo_audit.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/cargo_audit.yaml diff --git a/.forgejo/workflows/cargo_audit.yaml b/.forgejo/workflows/cargo_audit.yaml new file mode 100644 index 0000000..eae8340 --- /dev/null +++ b/.forgejo/workflows/cargo_audit.yaml @@ -0,0 +1,26 @@ +--- +name: Cargo Audit + +on: + push: + paths: + - 'Cargo.toml' + - 'Cargo.lock' + schedule: + # Frinday evening 18:20 + - cron: 20 18 0 0 5 + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + audit: + name: Audit + runs-on: docker + container: + image: codeberg.org/unobtanium/unobtanium-ci-builder:latest + steps: + - uses: https://codeberg.org/slatian/shell-ci-checkout@v1 + - run: cargo audit +