diff options
author | Profpatsch <mail@profpatsch.de> | 2021-04-04T02·04+0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-05-17T23·00+0000 |
commit | 952afb7da9a4b563f4e6478aec73f304827c2777 (patch) | |
tree | 2e219a08f2e8b0ff19c79fcb95c1b542c9f08906 /users/Profpatsch/blog | |
parent | 72924facaebb9cf37d9cfd1da43335d5fe51fb6e (diff) |
feat(tools): add rust-crates-advisory r/2595
We have a bunch of crates in `third_party/rust-crates`; it would be great if we could check them for existing CVEs. This tool does that, it takes the rust security advisory database, parses the applicable CVEs, and cross-checks them against the actual crate versions we list in our package database. The dumb parser we wrote is tested against all entries in the database, so we will notice when upstream breaks their shit. Checking the semver stuff is easy enough with the semver crate. If an advisory matches, it prints the whole thing and fails the build. Change-Id: I9e912c43d37a685d9d7a4424defc467a171ea3c4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2818 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/Profpatsch/blog')
-rw-r--r-- | users/Profpatsch/blog/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/blog/default.nix b/users/Profpatsch/blog/default.nix index 584c12d8d73a..9d22e7f770c5 100644 --- a/users/Profpatsch/blog/default.nix +++ b/users/Profpatsch/blog/default.nix @@ -81,7 +81,7 @@ let me.netencode.record-splice-env runOr return500 "importas" "-i" "path" "path" - "if" [ me.lib.eprintf "GET \${path}\n" ] + "if" [ depot.tools.eprintf "GET \${path}\n" ] runOr return404 "backtick" "-ni" "TEMPLATE_DATA" [ "ifelse" [ bins.test "$path" "=" "/notes" ] @@ -118,7 +118,7 @@ let "importas" "?" "?" "ifelse" [ bins.test "$?" "-eq" "0" ] [] - "if" [ me.lib.eprintf "runOr: exited \${?}, running \${1}\n" ] + "if" [ depot.tools.eprintf "runOr: exited \${?}, running \${1}\n" ] "$1" ]; |