mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-22 02:12:58 +03:00
add cargo deny to CI (#1285)
* check duplicate dependencies * also use cargo-deny for licenses checking * also run cargo deny check in make check
This commit is contained in:
parent
d4949a676b
commit
6630dca197
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -118,8 +118,8 @@ jobs:
|
||||
run: |
|
||||
make test-linux-musl
|
||||
|
||||
rustfmt:
|
||||
name: Formatting
|
||||
linting:
|
||||
name: Lints
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
@ -128,6 +128,7 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt
|
||||
|
||||
- run: cargo fmt -- --check
|
||||
|
||||
- name: cargo-sort
|
||||
@ -135,6 +136,18 @@ jobs:
|
||||
cargo install cargo-sort --force
|
||||
cargo sort -c -w
|
||||
|
||||
- name: cargo-deny install
|
||||
run: |
|
||||
cargo install --locked cargo-deny
|
||||
|
||||
- name: cargo-deny licenses
|
||||
run: |
|
||||
cargo deny check licenses
|
||||
|
||||
- name: cargo-deny bans
|
||||
run: |
|
||||
cargo deny check bans
|
||||
|
||||
sec:
|
||||
name: Security audit
|
||||
runs-on: ubuntu-latest
|
||||
|
5
Makefile
5
Makefile
@ -57,7 +57,10 @@ clippy:
|
||||
clippy-nightly:
|
||||
cargo +nightly clippy --workspace --all-features
|
||||
|
||||
check: fmt clippy test
|
||||
check: fmt clippy test deny
|
||||
|
||||
deny:
|
||||
cargo deny check
|
||||
|
||||
install:
|
||||
cargo install --path "." --offline
|
||||
|
20
deny.toml
Normal file
20
deny.toml
Normal file
@ -0,0 +1,20 @@
|
||||
[licenses]
|
||||
unlicensed = "deny"
|
||||
allow = [
|
||||
"MIT",
|
||||
"Apache-2.0",
|
||||
"BSD-2-Clause",
|
||||
"BSD-3-Clause"
|
||||
]
|
||||
copyleft = "warn"
|
||||
allow-osi-fsf-free = "neither"
|
||||
default = "deny"
|
||||
confidence-threshold = 0.9
|
||||
|
||||
[[licenses.exceptions]]
|
||||
allow = ["Unicode-DFS-2016"]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.3"
|
||||
|
||||
[bans]
|
||||
multiple-versions = "deny"
|
Loading…
Reference in New Issue
Block a user