File tree 3 files changed +39
-3
lines changed
3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ jobs:
118
118
run : |
119
119
make test-linux-musl
120
120
121
- rustfmt :
122
- name : Formatting
121
+ linting :
122
+ name : Lints
123
123
runs-on : ubuntu-latest
124
124
steps :
125
125
- uses : actions/checkout@master
@@ -128,13 +128,26 @@ jobs:
128
128
with :
129
129
toolchain : stable
130
130
components : rustfmt
131
+
131
132
- run : cargo fmt -- --check
132
133
133
134
- name : cargo-sort
134
135
run : |
135
136
cargo install cargo-sort --force
136
137
cargo sort -c -w
137
138
139
+ - name : cargo-deny install
140
+ run : |
141
+ cargo install --locked cargo-deny
142
+
143
+ - name : cargo-deny licenses
144
+ run : |
145
+ cargo deny check licenses
146
+
147
+ - name : cargo-deny bans
148
+ run : |
149
+ cargo deny check bans
150
+
138
151
sec :
139
152
name : Security audit
140
153
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ clippy:
57
57
clippy-nightly :
58
58
cargo +nightly clippy --workspace --all-features
59
59
60
- check : fmt clippy test
60
+ check : fmt clippy test deny
61
+
62
+ deny :
63
+ cargo deny check
61
64
62
65
install :
63
66
cargo install --path " ." --offline
Original file line number Diff line number Diff line change
1
+ [licenses ]
2
+ unlicensed = " deny"
3
+ allow = [
4
+ " MIT" ,
5
+ " Apache-2.0" ,
6
+ " BSD-2-Clause" ,
7
+ " BSD-3-Clause"
8
+ ]
9
+ copyleft = " warn"
10
+ allow-osi-fsf-free = " neither"
11
+ default = " deny"
12
+ confidence-threshold = 0.9
13
+
14
+ [[licenses .exceptions ]]
15
+ allow = [" Unicode-DFS-2016" ]
16
+ name = " unicode-ident"
17
+ version = " 1.0.3"
18
+
19
+ [bans ]
20
+ multiple-versions = " deny"
You can’t perform that action at this time.
0 commit comments