From d3dce34d13ec065d5627854d1f3642383485e9d0 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 11 Oct 2022 09:42:17 +0200 Subject: [PATCH] Update trigger and actions --- .github/workflows/audit.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 1e0a9a6..e9020c1 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -3,26 +3,19 @@ on: schedule: - cron: '0 1 * * *' push: + branches: + - master + pull_request: paths: - '**/Cargo.toml' - '**/Cargo.lock' - pull_request: + - ".cargo/audit.toml" jobs: security_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Cache cargo registry, index and build directory - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ./target - key: audit-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - + - uses: actions/checkout@v3 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }}