Skip to content

Commit 6c0104f

Browse files
committed
ci: ignore json5 unmaintained advisory in cargo-audit
Add --ignore flag for RUSTSEC-2025-0120 to cargo-audit workflow. This matches the cargo-deny configuration and allows CI to pass. The json5 crate is a transitive dependency via config 0.15.19 with no safe upgrade path. The advisory is for unmaintained status, not a security vulnerability.
1 parent 5273b99 commit 6c0104f

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/security.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: Security Audit
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
paths:
7-
- '**/Cargo.toml'
8-
- '**/Cargo.lock'
9-
- '.github/workflows/security.yml'
7+
- "**/Cargo.toml"
8+
- "**/Cargo.lock"
9+
- ".github/workflows/security.yml"
1010
pull_request:
1111
paths:
12-
- '**/Cargo.toml'
13-
- '**/Cargo.lock'
14-
- '.github/workflows/security.yml'
12+
- "**/Cargo.toml"
13+
- "**/Cargo.lock"
14+
- ".github/workflows/security.yml"
1515
schedule:
16-
- cron: '0 0 * * *' # Daily at midnight UTC
16+
- cron: "0 0 * * *" # Daily at midnight UTC
1717

1818
env:
1919
CARGO_TERM_COLOR: always
@@ -29,23 +29,24 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33-
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
3434
- name: Install Rust
35-
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # stable
35+
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # stable
3636
with:
3737
toolchain: 1.89
38-
38+
3939
- name: Cache cargo registry
40-
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
40+
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
4141
with:
4242
cache-on-failure: true
43-
43+
4444
- name: Install cargo-audit
4545
uses: taiki-e/install-action@v2
4646
with:
4747
48-
49-
- name: Run security audit
50-
run: cargo audit --deny warnings
5148

49+
- name: Run security audit
50+
run: |
51+
# Ignore RUSTSEC-2025-0120: json5 unmaintained (transitive via config 0.15.19, no upgrade path)
52+
cargo audit --deny warnings --ignore RUSTSEC-2025-0120

0 commit comments

Comments
 (0)