From 6287833b953bce1817a8699993c5c765886e246b Mon Sep 17 00:00:00 2001 From: Dan Bond Date: Sat, 19 Feb 2022 11:20:10 -0800 Subject: [PATCH] CI: add cargo audit status check Signed-off-by: Dan Bond --- .github/workflows/audit.yml | 20 ++++++++++++++++++++ README.md | 1 + 2 files changed, 21 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..0871b563 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,20 @@ +name: Audit + +on: + pull_request: + # Runs when Cargo files are updated in a PR. + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + schedule: + # Runs every Sunday at midnight. + - cron: 0 0 * * 0 + +jobs: + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 44685eb2..1e9c900c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ ![Rust](https://github.com/libbpf/libbpf-rs/workflows/Rust/badge.svg?branch=master) +![Audit](https://github.com/libbpf/libbpf-rs/workflows/Audit/badge.svg?branch=master) WARNING: The API is not stable and is subject to breakage. Any breakage will include a minor version bump pre-1.0 and a major version bump post-1.0.