Skip to content

Commit bb6eb29

Browse files
authored
chore(release): speed up cargo-deny and fix advisores (#12)
* chore(release): speed up cargo-deny and fix advisores
1 parent 044425a commit bb6eb29

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ jobs:
3636
target
3737
key: cargo-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
3838

39-
- name: Install cargo-deny v0.17.0
40-
run: cargo install cargo-deny --version 0.17.0 --locked
39+
- name: Install cargo-deny (fast)
40+
uses: taiki-e/install-action@v2
41+
with:
42+
tool: cargo-deny
43+
44+
- name: Cache cargo-deny DB
45+
uses: actions/cache@v4
46+
with:
47+
path: ~/.cargo/advisory-db
48+
key: cargo-deny-advisory-db-${{ hashFiles('**/Cargo.toml') }}
4149

4250
- name: Run CI checks
4351
run: |

deny.toml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,11 @@
33
# We want really high confidence when inferring licenses from text
44
confidence-threshold = 0.93
55
allow = [
6-
"Apache-2.0",
7-
"Apache-2.0 WITH LLVM-exception",
8-
"MIT",
9-
"BSD-3-Clause",
10-
"ISC",
11-
"Unicode-3.0",
12-
"Zlib",
13-
]
14-
exceptions = [
15-
# Use exceptions for these as they only have a single user
16-
{ allow = ["CDLA-Permissive-2.0"], crate = "webpki-roots" },
6+
"MIT"
177
]
188

199
[sources]
2010
unknown-registry = "deny"
2111
unknown-git = "deny"
2212

2313
[advisories]
24-
unmaintained = "workspace"
25-
ignore = [
26-
]

0 commit comments

Comments
 (0)