diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000..0d9741d0 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,28 @@ +name: Cargo Audit + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: "30 1 1,15 * *" + +jobs: + cargo_audit: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Install cargo audit + run: cargo install --locked cargo-audit + + - name: Run cargo audit + run: cargo audit