diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 53d16756..e82002aa 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -1,11 +1,25 @@ -name: Audit Check -on: [pull_request] +name: Security Audit +on: + pull_request: + paths: Cargo.lock + push: + branches: develop + paths: Cargo.lock + schedule: + - cron: '0 0 * * *' jobs: security_audit: + name: Security Audit runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Cache cargo bin + uses: actions/cache@v1 + with: + path: ~/.cargo/bin + key: ${{ runner.os }}-cargo-audit-v0.11.2 - uses: actions-rs/audit-check@v1 with: + args: --ignore RUSTSEC-2019-0031 token: ${{ secrets.GITHUB_TOKEN }}