Skip to content

Commit 960e1a9

Browse files
Merge pull request #212 from code-inflation/feature/cache-cargo-audit
Cache cargo-audit installation for faster security checks
2 parents e6b2f9d + 3bbaa16 commit 960e1a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/security-checks.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Cache cargo-audit
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.cargo/bin/cargo-audit
22+
key: cargo-audit-${{ runner.os }}-v0.21.2
1823
- name: Install cargo audit
19-
run: cargo install cargo-audit
24+
run: |
25+
if ! command -v cargo-audit &> /dev/null; then
26+
cargo install cargo-audit
27+
fi
2028
- name: Run Cargo Audit
2129
run: cargo audit
2230
continue-on-error: true

0 commit comments

Comments
 (0)