Skip to content

Commit 4b0b87f

Browse files
committed
Add security checks
1 parent 65f9afb commit 4b0b87f

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/audit.yml

+26-5
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,37 @@ jobs:
2323
issues: write
2424
steps:
2525
- uses: actions/checkout@v4
26+
27+
# Cache Cargo dependencies
28+
- name: Cache Cargo registry
29+
uses: actions/cache@v3
30+
with:
31+
path: ~/.cargo/registry
32+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-cargo-registry-
35+
36+
- name: Cache Cargo index
37+
uses: actions/cache@v3
38+
with:
39+
path: ~/.cargo/git
40+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-cargo-index-
43+
44+
- name: Cache target directory
45+
uses: actions/cache@v3
46+
with:
47+
path: target
48+
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
49+
restore-keys: |
50+
${{ runner.os }}-cargo-target-
51+
2652
- uses: actions-rust-lang/audit@v1
2753
name: Audit Rust Dependencies
2854
with:
2955
# Comma separated list of issues to ignore
3056
ignore: RUSTSEC-2020-0036
31-
32-
security_audit:
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/checkout@v4
3657
- uses: actions-rs/audit-check@v1
3758
with:
3859
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)