From b3c387090cade2212a2a5a7a7c19c835509e29f2 Mon Sep 17 00:00:00 2001 From: Genysys <33553806+Genysys@users.noreply.github.com> Date: Sat, 28 May 2022 00:33:25 +0400 Subject: [PATCH] feat(ci): adds cargo audit workflow (#1318) * feat(ci): adds cargo audit workflow * feat(audit): ignore serde_cbor dev-dependency --- .cargo/audit.toml | 4 ++++ .github/workflows/audit-on-push.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .cargo/audit.toml create mode 100644 .github/workflows/audit-on-push.yml diff --git a/.cargo/audit.toml b/.cargo/audit.toml new file mode 100644 index 00000000..c73dfd47 --- /dev/null +++ b/.cargo/audit.toml @@ -0,0 +1,4 @@ +[advisories] +ignore = [ + "RUSTSEC-2021-0127", # serde_cbor dependency through the criterion dev-dependency +] diff --git a/.github/workflows/audit-on-push.yml b/.github/workflows/audit-on-push.yml new file mode 100644 index 00000000..e46bb3cc --- /dev/null +++ b/.github/workflows/audit-on-push.yml @@ -0,0 +1,14 @@ +name: Security audit +on: + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' +jobs: + security_audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file