2023-10-26 00:39:57 +00:00
|
|
|
# This runs `cargo audit` on all dependencies (only if Cargo deps changed)
|
|
|
|
|
|
|
|
name: Audit
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '**/Cargo.toml'
|
|
|
|
- '**/Cargo.lock'
|
2024-08-09 19:44:53 +00:00
|
|
|
workflow_dispatch:
|
2023-10-26 00:39:57 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
audit:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Cache
|
2024-06-13 15:37:26 +00:00
|
|
|
uses: actions/cache@v4
|
2023-10-26 00:39:57 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo
|
|
|
|
target
|
|
|
|
key: audit
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
2024-02-25 20:50:58 +00:00
|
|
|
run: cargo install cargo-audit --locked
|
2023-10-26 00:39:57 +00:00
|
|
|
- name: Audit
|
|
|
|
run: cargo audit
|