From bfa73f630d2ac35a4661b69252b04a00ea73038c Mon Sep 17 00:00:00 2001 From: loverustfs <155562731+loverustfs@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:27:51 +0800 Subject: [PATCH] Create audit.yml --- .github/workflows/audit.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..7cd4eb54 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,27 @@ +name: Audit + +on: + push: + branches: + - main + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + pull_request: + branches: + - main + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + schedule: + - cron: '0 0 * * 0' # at midnight of each sunday + +jobs: + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/install-action@v2 + with: + tool: cargo-audit + - run: cargo audit -D warnings