Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license check job to runner #74

Merged
merged 1 commit into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ jobs:
- run: rustup update stable
- run: cargo build --features rusoto-native-tls --no-default-features --locked
- run: cargo test --features rusoto-native-tls --no-default-features --locked
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update stable
- run: cargo install --version 0.6.2 cargo-deny --no-default-features
- run: cargo deny check --disable-fetch licenses
37 changes: 37 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[licenses]
unlicensed = "deny"

# Deny licenses unless they are specifically listed here
copyleft = "deny"
allow-osi-fsf-free = "neither"
default = "deny"

# We want really high confidence when inferring licenses from text
confidence-threshold = 0.93

allow = [
"Apache-2.0",
#"BSD-2-Clause", # OK but currently unused; commenting to prevent warning
"BSD-3-Clause",
"BSL-1.0",
#"CC0-1.0", # OK but currently unused; commenting to prevent warning
"ISC",
"MIT",
"OpenSSL",
"Unlicense",
#"Zlib", # OK but currently unused; commenting to prevent warning
]

[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]

[[licenses.clarify]]
name = "webpki"
expression = "ISC"
license-files = [
{ path = "LICENSE", hash = 0x001c7e6c },
]