From 6b5744c33d2140691d17af630c346ae8dcdc4fdb Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 18 Mar 2022 17:49:28 +0100 Subject: [PATCH] .github/workflows: Add cargo audit (#2430) Run cargo audit on each push and on a daily schedule. --- .github/workflows/cargo-audit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cargo-audit.yml diff --git a/.github/workflows/cargo-audit.yml b/.github/workflows/cargo-audit.yml new file mode 100644 index 00000000000..fd07d49b690 --- /dev/null +++ b/.github/workflows/cargo-audit.yml @@ -0,0 +1,20 @@ +name: cargo audit +on: + schedule: + - cron: '0 0 * * *' + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + pull_request: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' +jobs: + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }}