Skip to content

Commit 04912c2

Browse files
authored
chore: add license and security check (#571)
1 parent e51f8c5 commit 04912c2

File tree

7 files changed

+56
-12
lines changed

7 files changed

+56
-12
lines changed

.github/workflows/audit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Security Audit
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
cargo-deny:
13+
permissions:
14+
checks: write
15+
contents: read
16+
issues: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
- uses: EmbarkStudios/cargo-deny-action@v2

deny.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[advisories]
2+
unmaintained = "none"
3+
4+
[licenses]
5+
allow = [
6+
"Apache-2.0",
7+
"BSD-2-Clause",
8+
"BSD-3-Clause",
9+
"ISC",
10+
"MIT",
11+
"MPL-2.0",
12+
"Unicode-3.0",
13+
"Zlib",
14+
]
15+
exceptions = [{ allow = ["OpenSSL"], name = "aws-lc-sys" }]
16+
17+
[bans]
18+
multiple-versions = "allow"
19+
wildcards = "deny"
20+
21+
[sources]
22+
unknown-registry = "deny"
23+
unknown-git = "deny"
24+
allow-git = [
25+
"https://github.com/taosdata/tokio-tungstenite.git",
26+
"https://github.com/taosdata/tungstenite-rs.git",
27+
]

taos-log/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name = "taos-log"
33
version = "0.1.0"
44
edition = "2021"
5+
license.workspace = true
56

67
[dependencies]
7-
tracing = { version = "*", default-features = false }
8+
tracing = { version = "0.1", default-features = false }
89
tracing-subscriber = { version = "0.3.20", default-features = false, features = [
910
"fmt",
1011
"std",
@@ -25,8 +26,8 @@ crossbeam = "0.8.4"
2526
log = "0.4.22"
2627
rand = "0.8.5"
2728
tempfile = "3.21.0"
28-
tokio = { version = "*", features = ["full"] }
29-
tracing = { version = "*", features = ["log"] }
29+
tokio = { version = "1", features = ["full"] }
30+
tracing = { version = "0.1", features = ["log"] }
3031
tracing-log = "0.2.0"
3132

3233
[features]

taos-macros/examples/macros-demo/Cargo.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ name = "macros-demo"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7-
[workspace]
8-
9-
[dependencies]
106

117
[dev-dependencies]
12-
138
taos-macros = { path = "../../" }
149
taos = { path = "../../../taos", features = ["test"] }
15-
16-
tokio = "*"
10+
tokio = "1"

taos-query/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ hmac = { version = "0.12.1", optional = true }
7878
rand = { version = "0.9.1", optional = true }
7979
sha1 = { version = "0.10.6", optional = true }
8080
sha2 = { version = "0.10.9", optional = true }
81-
tokio-tungstenite = { git = "https://github.com/taosdata/tokio-tungstenite.git", rev = "3420353", optional = true }
81+
tokio-tungstenite = { git = "https://github.com/taosdata/tokio-tungstenite.git", version = "0.23.1", rev = "3420353", optional = true }
8282

8383
[dev-dependencies]
8484
flate2 = "1"

taos-ws-sys/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "taos-ws-sys"
33
version = "0.2.2"
44
edition = "2021"
55
publish = false
6+
license.workspace = true
67

78
[lib]
89
name = "taosws"
@@ -50,7 +51,7 @@ taos-query = { version = "0.12.4", path = "../taos-query", default-features = fa
5051
"async",
5152
"test",
5253
] }
53-
tokio-tungstenite = { git = "https://github.com/taosdata/tokio-tungstenite.git", rev = "3420353" }
54+
tokio-tungstenite = { git = "https://github.com/taosdata/tokio-tungstenite.git", version = "0.23.1", rev = "3420353" }
5455

5556
[features]
5657
default = ["rustls-ring-crypto-provider"]

taos-ws/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ tracing = { version = "0.1", features = ["log"] }
4747

4848
[dependencies.tokio-tungstenite]
4949
git = "https://github.com/taosdata/tokio-tungstenite.git"
50+
version = "0.23.1"
5051
rev = "3420353"
5152

5253
[dev-dependencies]

0 commit comments

Comments
 (0)