Skip to content

Commit ceed35c

Browse files
committed
ci: dev
1 parent c47435d commit ceed35c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/security.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,32 @@ jobs:
4747
with:
4848
toolchain: stable
4949

50+
- name: Restore cache
51+
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
52+
with:
53+
path: |
54+
~/.cargo/bin/
55+
~/.cargo/registry/index/
56+
~/.cargo/registry/cache/
57+
~/.cargo/git/db/
58+
key: cargo-audit-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.run_id }}
59+
restore-keys: |
60+
cargo-audit-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
61+
cargo-audit-${{ runner.os }}-
62+
5063
- name: Install cargo-audit
51-
run: cargo install cargo-audit
64+
run: cargo install cargo-audit --locked || true
5265

5366
- name: Run cargo audit
5467
run: cargo audit
68+
69+
- name: Save cache
70+
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
71+
if: always()
72+
with:
73+
path: |
74+
~/.cargo/bin/
75+
~/.cargo/registry/index/
76+
~/.cargo/registry/cache/
77+
~/.cargo/git/db/
78+
key: cargo-audit-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.run_id }}

0 commit comments

Comments
 (0)