From d927fb0b972423d29d991f352e78fb0f2d5c0a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 7 Nov 2021 16:16:46 +0300 Subject: [PATCH] chore(security): optimize cargo-audit workflow --- .github/workflows/audit.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 78ab242..e2f9ae8 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -1,12 +1,23 @@ name: Security Audit + on: schedule: - - cron: '0 0 * * 0' + - cron: "0 0 * * 0" + jobs: audit: - runs-on: ubuntu-latest + name: Audit + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 - - uses: actions-rs/audit-check@v1 + - name: Checkout the repository + uses: actions/checkout@master + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + - name: Run cargo-audit + uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }}