aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-17 11:32:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-17 11:32:14 +0100
commit1abbe5b31f828c89a8636f2e0d90e17ee3a39759 (patch)
tree2a5f12bc1ab0615019ee98eb1b96bee17da0d68b
parent698ace75f8011bd13f273a2b3d52684390c4ae0c (diff)
downloadvulns-1abbe5b31f828c89a8636f2e0d90e17ee3a39759.tar.gz
bippy: move git json to a different section
Based on reviews from the CVE developers Also add product field, as we know that. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xscripts/bippy17
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/bippy b/scripts/bippy
index 412f30a4..24247370 100755
--- a/scripts/bippy
+++ b/scripts/bippy
@@ -774,17 +774,32 @@ if [[ "${JSON_FILE}" != "" ]] ; then
# -s versionType="custom" \
# )
+ p=$(jo -a -- "Linux")
+ platforms=$(jo -- platforms="${p}")
+
# We want vuln_array_json to be expanded without quotes
# shellcheck disable=SC2086
a=$(jo -- \
product="Linux" \
vendor="Linux" \
+ platforms="${p}" \
defaultStatus="${default_status}" \
+ repo="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git" \
${vuln_array_json} \
+ )
+
+ # We want git_array_json to be expanded without quotes
+ # shellcheck disable=SC2086
+ ag=$(jo -- \
+ product="Linux" \
+ vendor="Linux" \
+ platforms="${p}" \
+ defaultStatus="unaffected" \
+ repo="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git" \
${git_array_json} \
)
- affected=$(jo -a -- "${a}")
+ affected=$(jo -a -- "${ag}" "${a}")
# We want url_string_json to be expanded without quotes
# shellcheck disable=SC2086