[MINOR] Backport braces depth guard for React tooling #5528
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 252 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.331
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5528"
general
weight: 0.35
tbonelee
What is this PR for?
The React npm audit job fails because
braces@3.0.3is affected by GHSA-vfj7-8cjw-p6xm. The upstream fix is under review in micromatch/braces#72, but there is no patched release or confirmed release date.A downstream project pins a fork containing the fix. This PR instead uses
patch-packageto apply the depth-limit fix from micromatch/braces#72 at28d440bto the publishedbraces@3.0.3, without taking unrelated unpublished changes. The local, version-pinned patch keeps the workaround confined to this package and makes it straightforward to remove when an official release is available.CI explicitly applies and verifies the patch. The audit policy temporarily allows only the two affected development-dependency paths, until December 4, 2026. Other high- and critical-severity findings still fail the job. If this approach is accepted, I will open a follow-up Jira issue to remove the patch and audit exceptions once an official fixed release is available.
What type of PR is it?
Improvement
Todos
[ ] Open a follow-up Jira issue for removing the temporary patch and audit exceptions if this approach is accepted
What is the Jira issue?
N/A
How should this be tested?
From
zeppelin-web-angular/projects/zeppelin-react:The patch check fails before the patch is applied and passes afterward. Locally, the audit policy, lint, build, and all 89 React tests passed. GitHub Actions has not yet been verified on this branch.
Screenshots (if appropriate)
N/A
Questions:
Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? Yes, documented in the React README