Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependencies): loosen constraints on dependency checker #26708

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

rusackas
Copy link
Member

SUMMARY

Right now, the dependency checker action blocks PRs if they introduce a package with a "high" severity CVE. This is becoming counterproductive in several PRs, particularly as we mess around with cleaning up packages. For example, you might fix one or more critical issues by upgrading to packages that include a high issue in their dependency tree. Let's just block on critical for now, and tigthen the screws after 4.0, perhaps.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d34874c) 69.48% compared to head (1694ec9) 69.48%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #26708   +/-   ##
=======================================
  Coverage   69.48%   69.48%           
=======================================
  Files        1894     1894           
  Lines       74138    74138           
  Branches     8243     8243           
=======================================
  Hits        51514    51514           
  Misses      20555    20555           
  Partials     2069     2069           
Flag Coverage Δ
hive 53.85% <ø> (ø)
javascript 56.86% <ø> (ø)
mysql 78.02% <ø> (ø)
postgres 78.13% <ø> (ø)
presto 53.80% <ø> (ø)
python 83.01% <ø> (ø)
sqlite 77.71% <ø> (ø)
unit 56.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mistercrunch
Copy link
Member

Is there any way to make it warn on high but not block. I mean in theory it's good to know if there's a known issue with a new package being brought in, but clearly it misses the mark as vulnerabilities are often discovered after the package is introduced.

@rusackas
Copy link
Member Author

No, the action either blocks or it doesn't.... there's no warning system (or at least not one people will pay attention to). The moderate/high/critical warnings people are mostly likely to see are the ones that show up when they do npm install -where you'll currently see 14 critical warnings. In some cases, it's impossible to fix the critical vulnerabilities without introducing high vulnerabilities, thus the need to (temporarily) lower this threshold.

@rusackas rusackas merged commit ffc357c into master Jan 22, 2024
52 checks passed
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@rusackas rusackas deleted the loosen-dependency-checker branch April 16, 2024 16:51
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants