-
Notifications
You must be signed in to change notification settings - Fork 359
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
docs(guided remediation): document override strategy for Maven remediation #1181
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1181 +/- ##
==========================================
+ Coverage 67.81% 67.82% +0.01%
==========================================
Files 174 174
Lines 16769 16769
==========================================
+ Hits 11372 11374 +2
+ Misses 4767 4766 -1
+ Partials 630 629 -1 ☔ View full report in Codecov by Sentry. |
{: .note } | ||
The `override` strategy is currently only supported in `--non-interactive` mode. | ||
|
||
Maven allows for the version specification of direct and indirect dependencies to be overwritten by a POM's `<dependencyManagement>`. This mechanism can be used to force a vulnerable dependency to be updated to a newer, non-vulnerable version. Overriding dependency versions can enable otherwise inaccessible updates, but it also risks breaking the application if the new version is incompatible with other dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We update the normal <dependencies>
section if it already exists there right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll adjust the wording
docs/guided-remediation.md
Outdated
|
||
| File Format | Supported [Remediation Strategies](#remediation-strategies) | | ||
| :---------------------------------------------- | :---------------------------------------------------------- | | ||
| `package-lock.json` lockfile | [`in-place`](#in-place-lockfile-remediation) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably also worth spelling out the package ecosystem in (new) first column?
``` | ||
|
||
<details markdown="1"> | ||
<summary><b>Sample override output</b></summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: regenerate output with #1210
#1286 adds support for Maven registry during resolution. As a follow up, this PR updates the documentation for transitive scanning about specifying data source during resolution as well as specifying Maven registry. This PR also corrects the deps.dev API version we are using. We also need to update the documentation in #1181.
WIP
Currently at rendered at https://michaelkedar.github.io/osv-scanner/experimental/guided-remediation/