Update trigger and actions

This commit is contained in:
Valentin Brandl 2022-10-11 09:42:17 +02:00
parent 24b9f06aad
commit d3dce34d13
No known key found for this signature in database
GPG Key ID: 62E7C7F2C48DBBF2

View File

@ -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 }}