Skip to content

Commit 4e08f07

Browse files
chore: add cargo-deny action (#107)
*Issue #, if available:* *Description of changes:* - Add `cargo-deny` action for license vetting By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent febfa7d commit 4e08f07

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
uses: actions/setup-go@v5
4040
with:
4141
go-version: "stable"
42+
- name: Check licenses
43+
run: |
44+
cargo install cargo-deny
45+
cargo-deny check licenses
4246
- name: Build
4347
run: cargo build --verbose
4448
- name: Run tests

deny.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[licenses]
2+
# List of explicitly allowed licenses
3+
# See https://spdx.org/licenses/ for list of possible licenses
4+
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
5+
allow = ["MIT", "Apache-2.0", "Unicode-3.0", "ISC", "BSD-3-Clause", "OpenSSL"]

0 commit comments

Comments
 (0)