From 0fde0686a25781e624a381a8d6d1fac3303d4eb7 Mon Sep 17 00:00:00 2001 From: Aydin Mercan Date: Tue, 8 Feb 2022 14:04:09 +0300 Subject: [PATCH] ci: add github action --- .github/workflows/audit.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 0000000..b98d42f --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,22 @@ +name: audit + +on: + schedule: + - cron: '0 0 * * *' + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: -D warnings + +jobs: + cargo_audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }}