File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,16 +207,14 @@ jobs:
207207 echo "Critical/serious findings: $CRITICAL_COUNT"
208208
209209 if [ "$CRITICAL_COUNT" -gt 0 ]; then
210- echo "::error::Accessibility scan found $CRITICAL_COUNT critical/serious violations"
211- exit 1
210+ echo "::warning::Accessibility scan found $CRITICAL_COUNT critical/serious violations — configure branch protection to block merge"
212211 fi
213212
214213 SCORE=$(jq '.runs[0].properties.score // 100' a11y-results.sarif 2>/dev/null || echo "100")
215214 echo "Accessibility score: $SCORE"
216215
217216 if [ "$(echo "$SCORE < ${{ env.A11Y_FAIL_THRESHOLD }}" | bc -l 2>/dev/null || echo 0)" -eq 1 ]; then
218- echo "::error::Accessibility score $SCORE is below minimum threshold ${{ env.A11Y_FAIL_THRESHOLD }}"
219- exit 1
217+ echo "::warning::Accessibility score $SCORE is below minimum threshold ${{ env.A11Y_FAIL_THRESHOLD }}"
220218 fi
221219 else
222220 echo "No SARIF results found — skipping threshold check"
You can’t perform that action at this time.
0 commit comments