Skip to content

Commit

Permalink
add audit job for auditing packages with vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
LivacoNew committed Sep 8, 2024
1 parent 9140b19 commit b97c406
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Audit for vulnerabilities

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
audit:
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v3
with:
repository: LivacoNew/CrabFetch
ref: master
path: CrabFetch

# Setup Rust & Cargo's Cache
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: CrabFetch

# Install cargo audit
- name: Install Cargo Audit
run: |
cargo install cargo-audit --locked
# Run it
- name: cargo audit
run: |
cd CrabFetch
cargo audit

0 comments on commit b97c406

Please sign in to comment.