Skip to content

Scaffold LSD Depository #888

Scaffold LSD Depository

Scaffold LSD Depository #888

name: Cargo Audit
on:
pull_request:
branches: [main, v*.*]
push:
branches: [main, v*.*]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Run the job
jobs:
cargo-audit:
name: Cargo Vulnerability Scanner
runs-on: ubuntu-latest
steps:
# Check out GitHub repo
- uses: actions/checkout@v2
# Install cargo audit
- name: Install Cargo Audit
uses: actions-rs/[email protected]
with:
crate: cargo-audit
version: latest
# Run cargo audit using args from .cargo/audit.toml (ignores, etc.)
- name: Run Cargo Audit
# Ignoring warnings from solana_program_test dependencies which are only in dev dependencies
run: cargo audit -c always --ignore RUSTSEC-2023-0001 --ignore RUSTSEC-2020-0071