Skip to content

Commit 368ae34

Browse files
committed
cache did not work, so make audit workflow separate
1 parent 9410d6f commit 368ae34

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,3 @@ jobs:
2121
- name: install ${{ matrix.rust }} toolchain
2222
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
2323
- run: cargo build
24-
security-audit:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- name: cache build
28-
uses: actions/cache@v4
29-
with:
30-
path: |
31-
~/.cargo/registry/index/
32-
~/.cargo/registry/cache/
33-
target/
34-
key: key-${{ hashFiles('Cargo.lock') }}
35-
- uses: actions/checkout@v6
36-
- uses: rustsec/audit-check@v2
37-
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: security audit
2+
on:
3+
push:
4+
paths:
5+
- '**/Cargo.toml'
6+
- '**/Cargo.lock'
7+
env:
8+
CARGO_TERM_COLOR: always
9+
jobs:
10+
security-audit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: rustsec/audit-check@v2
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)