Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 92feb1e

Browse files
committed
Get rid of chrono
We don't actually need it and there seems to be a security issue that has been open for years: chronotope/chrono#499. Chrono is still present in `Cargo.lock` though, so it seems one of our dependencies still uses chrono, but I'll leave that for another day.
1 parent 2965ac4 commit 92feb1e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Cargo.lock

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ log = "0.4"
1717
pretty_env_logger = "0.4"
1818
structopt = "0.3"
1919
indexmap = "1.8"
20-
chrono = "0.4"
2120
surf = "2.3"
2221
git2 = "0.14"
2322
backoff = { version = "0.4", features = ["futures", "async-std"] }
@@ -29,6 +28,7 @@ url = "2.2"
2928
tokio = { version = "1.17", features = ["rt", "rt-multi-thread", "macros"] }
3029
async-global-executor = { version = "2.1", features = ["async-io", "tokio"] }
3130
futures-lite = "1.12"
31+
uuid = { version = "1.1", features = ["v4"] }
3232

3333
[[bin]]
3434
name = "cis"

src/bin/gh-webhook-reactor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async fn main() -> tide::Result<()> {
154154
"{}_{}_{}",
155155
payload.repository.name,
156156
command.join(" "),
157-
chrono::Utc::now().timestamp_nanos()
157+
uuid::Uuid::new_v4(),
158158
);
159159

160160
let repo: Repository = match payload.repository.try_into() {

0 commit comments

Comments
 (0)