-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 932 Bytes
/
dependency-audit.yml
File metadata and controls
41 lines (36 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Dependency security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
security_audit:
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- name: Check out
uses: actions/checkout@v4
- name: Cache audit-check build
id: cache-audit-check
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Run audit-check action
run: |
which cargo-deny || cargo install cargo-deny
cargo deny check