Skip to content

Commit

Permalink
Merge pull request #31076 from ericsmalling/reduce-github-searches
Browse files Browse the repository at this point in the history
Reduce curl calls to GH by eliminating duplicate CVEs
  • Loading branch information
k8s-ci-robot authored Oct 20, 2023
2 parents a0dacb1 + ff33330 commit 1adf363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ periodics:
RESULT=$(echo $RESULT_UNFILTERED | jq \
'{vulnerabilities: .vulnerabilities | map(select((.type != "license") and (.version != "0.0.0"))) | select(length > 0) }')
if [[ ${RESULT} ]]; then
CVE_IDs=$(echo $RESULT | jq '.vulnerabilities[].identifiers.CVE')
CVE_IDs=$(echo $RESULT | jq '.vulnerabilities[].identifiers.CVE | unique[]' | sort -u)
#convert string to array
CVE_IDs_array=(`echo ${CVE_IDs}`)
#TODO:Implement deduplication of CVE IDs in future
Expand Down

0 comments on commit 1adf363

Please sign in to comment.