File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7814,7 +7814,11 @@ determine_trust() {
78147814 out "$code"
78157815 fi
78167816 fileout "${jsonID}${json_postfix}" "CRITICAL" "failed $code. $addtl_warning"
7817- set_grade_cap "T" "Issues with the chain of trust $code"
7817+ if [[ "$code" =~ "chain incomplete" ]]; then
7818+ set_grade_cap "B" "Issues with chain of trust $code"
7819+ else
7820+ set_grade_cap "T" "Issues with chain of trust $code"
7821+ fi
78187822 else
78197823 # alt least one ok and other(s) not ==> display the culprit store(s)
78207824 if "$some_ok"; then
@@ -7834,7 +7838,12 @@ determine_trust() {
78347838 if ! [[ ${certificate_file[i]} =~ Java ]]; then
78357839 # Exemption for Java AND rating, as this store doesn't seem to be as complete.
78367840 # We won't penalize this but we still need to raise a red flag. See #1648
7837- set_grade_cap "T" "Issues with chain of trust $code"
7841+ # set_grade_cap "T" "Issues with chain of trust $code"
7842+ if [[ "$code" =~ "chain incomplete" ]]; then
7843+ set_grade_cap "B" "Issues with chain of trust $code"
7844+ else
7845+ set_grade_cap "T" "Issues with chain of trust $code"
7846+ fi
78387847 fi
78397848 fi
78407849 done
You can’t perform that action at this time.
0 commit comments