mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
[Govulncheck] Fix the command that checks for duplicated reports (#2861)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
2
.github/scripts/govulncheck-submit-issues.sh
vendored
2
.github/scripts/govulncheck-submit-issues.sh
vendored
@@ -46,7 +46,7 @@ do
|
|||||||
affected_versions="$(echo ${vuln} | jq -r '.value[]' | xargs)"
|
affected_versions="$(echo ${vuln} | jq -r '.value[]' | xargs)"
|
||||||
ticket_title="${vuln_key} reported"
|
ticket_title="${vuln_key} reported"
|
||||||
|
|
||||||
reported_issues="$(gh issue -R opentofu/opentofu list --search "\"${ticket_title}\"" --json number)"
|
reported_issues="$(gh issue -R opentofu/opentofu list --search "\"${ticket_title}\"" --state "all" --json number)"
|
||||||
no_of_issues="$(echo ${reported_issues} | jq -r '. | length')"
|
no_of_issues="$(echo ${reported_issues} | jq -r '. | length')"
|
||||||
reported_issues="$(echo $reported_issues| jq -r '.[] | .number' | xargs)"
|
reported_issues="$(echo $reported_issues| jq -r '.[] | .number' | xargs)"
|
||||||
[[ ${no_of_issues} -ge 1 ]] && echo "Vulnerabilties found but already reported for ${vuln_key} in: ${reported_issues}" && continue
|
[[ ${no_of_issues} -ge 1 ]] && echo "Vulnerabilties found but already reported for ${vuln_key} in: ${reported_issues}" && continue
|
||||||
|
|||||||
Reference in New Issue
Block a user