mango-v4/.github/workflows/ci-cargo-audit.yml

28 lines
617 B
YAML
Raw Normal View History

2022-05-09 12:36:08 -07:00
name: Cargo Audit
on:
push:
2022-05-09 12:36:08 -07:00
branches:
- main
- dev
pull_request:
2022-04-11 06:00:36 -07:00
workflow_dispatch:
jobs:
2022-05-09 12:36:08 -07:00
cargo-audit:
2022-04-11 06:00:36 -07:00
name: Cargo Vulnerability Scanner
2022-05-09 12:36:08 -07:00
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
2022-05-09 12:36:08 -07:00
- name: Checkout
uses: actions/checkout@v2
2022-04-11 06:00:36 -07:00
# Install cargo audit
- name: Install Cargo Audit
uses: actions-rs/install@v0.1
with:
crate: cargo-audit
version: latest
2022-04-11 06:00:36 -07:00
# Run cargo audit using args from .cargo/audit.toml (ignores, etc.)
- name: Run Cargo Audit
run: cargo audit -c always