Skip to content

Commit 94db370

Browse files
committed
CI: adding check that we do not infringe copyright licenses
1 parent 43cf0ea commit 94db370

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/license.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: License Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
license-audit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Rust
15+
uses: dtolnay/rust-toolchain
16+
with:
17+
toolchain: 1.85.0
18+
19+
- name: Install cargo-deny
20+
run: cargo install cargo-deny
21+
22+
- name: Run cargo-deny
23+
run: cargo deny check licenses

deny.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[licenses]
2+
allow = [
3+
"0BSD",
4+
"Apache-2.0",
5+
"BSD-2-Clause",
6+
"BSD-3-Clause",
7+
"CDLA-Permissive-2.0",
8+
"CC0-1.0",
9+
"ISC",
10+
"MIT",
11+
"Unlicensed",
12+
"Unicode-DFS-2016",
13+
"Unicode-3.0",
14+
"Zlib",
15+
]

0 commit comments

Comments
 (0)