chore: move format-audit-result.jq out of //users/sterni
In the spirit of the readTree filter we should also not include files in user directories from the outside. Change-Id: I1abe36a721048900d2758b5986063b68b8d1af93 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5200 Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
c3684740ad
commit
5d06425655
4 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
inherited: true
|
inherited: true
|
||||||
owners:
|
owners:
|
||||||
- Profpatsch
|
- Profpatsch
|
||||||
|
- sterni
|
||||||
|
|
|
@ -176,7 +176,7 @@ let
|
||||||
"maintainers"
|
"maintainers"
|
||||||
""
|
""
|
||||||
"-f"
|
"-f"
|
||||||
../../users/sterni/nixpkgs-crate-holes/format-audit-result.jq
|
./format-audit-result.jq
|
||||||
]
|
]
|
||||||
"if"
|
"if"
|
||||||
[ depot.tools.eprintf "%s\n" "$report" ]
|
[ depot.tools.eprintf "%s\n" "$report" ]
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
# This is a jq script to format the JSON output of cargo-audit into a short
|
||||||
|
# markdown report for humans. It is used by //users/sterni/nixpkgs-crate-holes
|
||||||
|
# and //tools/rust-crates-advisory:check-all-our-lock-files which will provide
|
||||||
|
# you with example invocations.
|
||||||
|
#
|
||||||
|
# It needs the following arguments passed to it:
|
||||||
|
#
|
||||||
|
# - maintainers: Either the empty string or a list of maintainers to @mention
|
||||||
|
# for the current lock file.
|
||||||
|
# - attr: An attribute name (or otherwise unique identifier) to associate the
|
||||||
|
# report for the current lock file with.
|
||||||
|
|
||||||
# Link to human-readable advisory info for a given vulnerability
|
# Link to human-readable advisory info for a given vulnerability
|
||||||
def link:
|
def link:
|
||||||
[ "https://rustsec.org/advisories/", .advisory.id, ".html" ] | add;
|
[ "https://rustsec.org/advisories/", .advisory.id, ".html" ] | add;
|
|
@ -147,7 +147,7 @@ let
|
||||||
bins.jq
|
bins.jq
|
||||||
"-rj"
|
"-rj"
|
||||||
"-f"
|
"-f"
|
||||||
./format-audit-result.jq
|
../../../tools/rust-crates-advisory/format-audit-result.jq
|
||||||
"--arg"
|
"--arg"
|
||||||
"attr"
|
"attr"
|
||||||
strAttr
|
strAttr
|
||||||
|
|
Loading…
Reference in a new issue