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

Commit

Permalink
Get rid of chrono
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koenw committed Jun 23, 2022
1 parent 2965ac4 commit 92feb1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -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"] }
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/gh-webhook-reactor.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit 92feb1e

Please sign in to comment.