[INFRA] Add Dependency Review step to prevent introducing vulnerable dependencies#4266
[INFRA] Add Dependency Review step to prevent introducing vulnerable dependencies#4266bowenliang123 wants to merge 1 commit intoapache:masterfrom
Conversation
c81e94c to
e11fad0
Compare
.github/workflows/dep.yml
Outdated
| - name: Dependency Review | ||
| uses: actions/dependency-review-action@v3 | ||
| with: | ||
| fail-on-severity: low |
There was a problem hiding this comment.
Is low too strict? Use moderate?
There was a problem hiding this comment.
The docs of action does not clarify how it classify the level of severity, so I prefer to keep it in low the same as the default value. We could lower this level if necessary in future, as it only affects future PRs.
There was a problem hiding this comment.
The risk for vulnerability is determined by the CVSS score. If you go to check the mvn central or NVD, it's common to see an artifact have some low-level vulnerabilities. I guess it is not practical for us to add such a critical rule that blocks PRs frequently
There was a problem hiding this comment.
OK, changed to moderate.
Codecov Report
@@ Coverage Diff @@
## master #4266 +/- ##
============================================
+ Coverage 53.38% 53.40% +0.01%
Complexity 13 13
============================================
Files 560 560
Lines 30562 30562
Branches 4139 4139
============================================
+ Hits 16315 16321 +6
+ Misses 12711 12708 -3
+ Partials 1536 1533 -3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
660e0b1 to
63a84b2
Compare
|
Thanks, merged to master. |
Why are the changes needed?
fail-on-severitytomoderatelevelHow was this patch tested?