Scaffold LSD Depository #872
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: 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 |