Skip to content
Open
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
24 changes: 24 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: License Check

on:
push:
branches: [main]
pull_request:

jobs:
license-audit:
runs-on: ubuntu-latest
env:
RUST_VERSION: 1.85.0

steps:
- uses: actions/checkout@v4

- name: Set up Rust and cargo deny
uses: dtolnay/rust-toolchain@master
with:
toolchain: {{ env.RUST_VERSION }}
run: rustup run {{ env.RUST_VERSION }} cargo install cargo-deny

- name: Run cargo-deny
run: rustup run {{ env.RUST_VERSION }} cargo deny check licenses
15 changes: 15 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[licenses]
allow = [
"0BSD",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"CDLA-Permissive-2.0",
"CC0-1.0",
"ISC",
"MIT",
"Unlicensed",
"Unicode-DFS-2016",
"Unicode-3.0",
"Zlib",
]
Loading