diff --git a/Cargo.lock b/Cargo.lock index 92c7d2b..2b6563a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -526,7 +526,6 @@ dependencies = [ "async-global-executor", "async-std", "backoff", - "chrono", "futures-lite", "git2", "indexmap", @@ -544,6 +543,7 @@ dependencies = [ "tide-github", "tokio", "url", + "uuid", ] [[package]] @@ -2816,6 +2816,15 @@ dependencies = [ "serde", ] +[[package]] +name = "uuid" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f" +dependencies = [ + "getrandom 0.2.7", +] + [[package]] name = "value-bag" version = "1.0.0-alpha.9" diff --git a/Cargo.toml b/Cargo.toml index f3ae8ad..1abe053 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ log = "0.4" pretty_env_logger = "0.4" structopt = "0.3" indexmap = "1.8" -chrono = "0.4" surf = "2.3" git2 = "0.14" backoff = { version = "0.4", features = ["futures", "async-std"] } @@ -29,6 +28,7 @@ url = "2.2" tokio = { version = "1.17", features = ["rt", "rt-multi-thread", "macros"] } async-global-executor = { version = "2.1", features = ["async-io", "tokio"] } futures-lite = "1.12" +uuid = { version = "1.1", features = ["v4"] } [[bin]] name = "cis" diff --git a/src/bin/gh-webhook-reactor.rs b/src/bin/gh-webhook-reactor.rs index 8957e4f..6b3fdda 100644 --- a/src/bin/gh-webhook-reactor.rs +++ b/src/bin/gh-webhook-reactor.rs @@ -154,7 +154,7 @@ async fn main() -> tide::Result<()> { "{}_{}_{}", payload.repository.name, command.join(" "), - chrono::Utc::now().timestamp_nanos() + uuid::Uuid::new_v4(), ); let repo: Repository = match payload.repository.try_into() {