Skip to content

Commit 9340148

Browse files
author
Cass Fridkin
committed
use cargo-deny
1 parent 47957c2 commit 9340148

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
22

33
name: CI
4-
on: push
4+
on: [push, pull_request]
55
jobs:
66
build-and-test:
77
name: Build and Test
@@ -33,11 +33,19 @@ jobs:
3333
args: ${{ matrix.mode }} --verbose
3434
lint:
3535
runs-on: ubuntu-latest
36-
name: Lint
36+
name: Clippy
3737
steps:
3838
- uses: actions/checkout@v2
3939
name: Checkout Repo
4040
- uses: actions-rs/cargo@v1
4141
name: Run Clippy
4242
with:
4343
command: clippy
44+
cargo-deny:
45+
runs-on: ubuntu-latest
46+
name: Cargo Deny
47+
steps:
48+
- uses: actions/checkout@v2
49+
name: Checkout Repo
50+
- uses: EmbarkStudios/cargo-deny-action@v1
51+
name: Run cargo-deny

deny.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[advisories]
2+
db-path = "~/.cargo/advisory-db"
3+
db-urls = ["https://github.com/rustsec/advisory-db"]
4+
notice = "deny"
5+
unmaintained = "warn"
6+
vulnerability = "deny"
7+
yanked = "deny"
8+
9+
[licenses]
10+
allow = ["MIT", "Apache-2.0"]
11+
allow-osi-fsf-free = "neither"
12+
confidence-threshold = 0.8
13+
default = "deny"
14+
unlicensed = "deny"
15+
16+
[[licenses.exceptions]]
17+
allow = ["Unicode-DFS-2016"]
18+
name = "unicode-ident"
19+
20+
[sources]
21+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
22+
unknown-git = "deny"
23+
unknown-registry = "deny"

envcrypt-test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
edition = "2021"
3+
license = "MIT OR Apache-2.0"
34
name = "envcrypt-test"
45
publish = false
56
version = "0.0.0"

0 commit comments

Comments
 (0)