From 6c9c29bde3def701b9b7c51182f551d4b45e1ee4 Mon Sep 17 00:00:00 2001 From: Toni Bergholm Date: Fri, 10 Jul 2026 10:17:29 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20add=20RustSec=20advisory=20scan=20(cargo?= =?UTF-8?q?=20audit)=20=E2=80=94=20audit=20Medium=20(#29)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New audit.yml workflow (separate from ci.yml, like codeql.yml, to allow a daily cron + lockfile path filters without rerunning the test matrix): rustsec/audit-check@v2 on Cargo.toml/Cargo.lock changes, daily schedule, and manual dispatch. Advisory DB is deliberately fetched live each run; vulnerabilities fail, unmaintained-crate advisories warn. Current lockfile scans clean (one warning: RUSTSEC-2026-0173, proc-macro-error2 via defmt-macros). Claude-Session: https://claude.ai/code/session_01LhadyW9scQL95h3ag9yySB --- .github/workflows/audit.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..020d1686 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,33 @@ +name: audit + +on: + push: + branches: [main] + paths: + - "**/Cargo.toml" + - "Cargo.lock" + - ".github/workflows/audit.yml" + pull_request: + paths: + - "**/Cargo.toml" + - "Cargo.lock" + - ".github/workflows/audit.yml" + schedule: + # Daily: the advisory database is deliberately fetched live each run, so + # newly published RustSec advisories flag here without any code change. + - cron: "23 6 * * *" + workflow_dispatch: + +permissions: + contents: read + checks: write + +jobs: + audit: + name: cargo audit (RustSec advisories) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: rustsec/audit-check@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }}