Skip to content

Commit 2a11ed7

Browse files
authored
chore: add license checker (#2)
# What 💻 - Adds license checker # Why ✋ - Required for open sourcing # Evidence 📷 Include screenshots, screen recordings, or `console` output here demonstrating that your changes work as intended <!-- All sections below are optional. You can uncomment any section applicable to your Pull Request. --> <!-- # Notes 📝 * Any notes/thoughts that the reviewers should know prior to reviewing the code? -->
1 parent 6f51f00 commit 2a11ed7

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ jobs:
1515
- name: Status
1616
run: |
1717
exit 0
18+
19+
license-check:
20+
name: license-check
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
24+
- uses: EmbarkStudios/cargo-deny-action@76cd80eb775d7bbbd2d80292136d74d39e1b4918 # v2.0.14
25+
with:
26+
manifest-path: "./tools/mock-server/Cargo.toml"
27+
command: check
28+
command-arguments: "--hide-inclusion-graph"

tools/mock-server/LICENSE-MIT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Matter Labs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

tools/mock-server/deny.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[graph]
2+
targets = [
3+
"x86_64-unknown-linux-gnu",
4+
"aarch64-unknown-linux-gnu",
5+
"x86_64-apple-darwin",
6+
"aarch64-apple-darwin",
7+
]
8+
all-features = false
9+
no-default-features = false
10+
11+
[output]
12+
feature-depth = 1
13+
14+
[advisories]
15+
ignore = [
16+
]
17+
18+
[licenses]
19+
allow = [
20+
"MIT",
21+
"Apache-2.0",
22+
"Unlicense",
23+
"BSD-2-Clause",
24+
"BSD-3-Clause",
25+
"BSL-1.0",
26+
"Unicode-3.0",
27+
]
28+
exceptions = [
29+
# exceptions are in place due to https://github.com/matter-labs/zksync-os
30+
# CC0 is a bit unclear about source code: https://tldrlegal.com/license/creative-commons-cc0-1.0-universal
31+
]
32+
confidence-threshold = 0.8
33+
34+
[[licenses.clarify]]
35+
crate = "ring"
36+
# SPDX considers OpenSSL to encompass both the OpenSSL and SSLeay licenses
37+
# https://spdx.org/licenses/OpenSSL.html
38+
# ISC - Both BoringSSL and ring use this for their new files
39+
# MIT - "Files in third_party/ have their own licenses, as described therein. The MIT
40+
# license, for third_party/fiat, which, unlike other third_party directories, is
41+
# compiled into non-test libraries, is included below."
42+
# OpenSSL - Obviously
43+
expression = "ISC AND MIT AND OpenSSL"
44+
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
45+
46+
[licenses.private]
47+
ignore = false
48+
registries = []
49+
50+
[bans]
51+
multiple-versions = "allow"
52+
wildcards = "allow"
53+
highlight = "all"
54+
workspace-default-features = "allow"
55+
external-default-features = "allow"
56+
allow = []
57+
skip = []
58+
skip-tree = []
59+
60+
[sources]
61+
unknown-registry = "deny"
62+
unknown-git = "allow"
63+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
64+
allow-git = []
65+
66+
[sources.allow-org]
67+
github = []
68+
gitlab = []
69+
bitbucket = []

0 commit comments

Comments
 (0)