Skip to content

feat(all): progress

feat(all): progress #1

Workflow file for this run

name: Security Audit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Run security audit daily at 2 AM UTC
- cron: '0 2 * * *'
jobs:
security:
name: Security Audit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install cargo-machete
run: cargo install cargo-machete
- name: Install cargo-outdated
run: cargo install cargo-outdated
- name: Run cargo audit
run: cargo audit
continue-on-error: false
- name: Check for unused dependencies
run: cargo machete
continue-on-error: true
- name: Check for outdated dependencies
run: cargo outdated --exit-code 1
continue-on-error: true
- name: Display dependency tree
run: cargo tree
continue-on-error: true
- name: Display dependency tree with duplicates
run: cargo tree --duplicates
continue-on-error: true
- name: Display dependency tree with licenses
run: cargo tree --format "{p} {l}"
continue-on-error: true