Security Audit #2489
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Security Audit | |
on: | |
pull_request: | |
paths: Cargo.lock | |
push: | |
branches: main | |
paths: Cargo.lock | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
security_audit: | |
name: Security Audit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache cargo bin | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cargo/bin | |
key: ${{ runner.os }}-cargo-audit-v0.14.0 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install cargo audit | |
run: cargo install cargo-audit | |
- name: Run cargo audit | |
run: cargo audit --deny warnings | |