Audit #7
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: | |
# Schedule daily updates. | |
schedule: [ { cron: "0 0 * * *" } ] | |
# (optional) Run workflow manually. | |
workflow_dispatch: | |
# (optional) Run workflow when pushing on master. | |
push: | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
pull_request: | |
jobs: | |
audit: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
# Prevent sudden announcement of a new advisory from failing ci: | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
log-level: error | |
command: check ${{ matrix.checks }} | |
arguments: --all-features | |
security_audit: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Security Audit | |
uses: actions-rust-lang/audit@v1 |