Skip to content

Commit 4c96d89

Browse files
committed
fix: update accessibility scan workflow to use warnings for critical violations and score thresholds
1 parent 1d351ba commit 4c96d89

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/accessibility-scan.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)