-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add support for fetching from repository mentioned in pom file #289
Conversation
Issue: aquasecurity#286 ## Description This change allows packages to be fetched from repository other than https://repo.maven.apache.org/maven2/ - Get username and password from settings file for the corresponding server ID mentioned in the pom file - Added support for authentication if username and password mentioned while fetching the package
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.
Hello @renypaul
Thanks for your work!
I left some comments.
Can you also added some tests for these changes?
Regards, Dmitriy
- Merging the servers with precedence to global settings.xml - Checking for releases and snapshots - Avoid pluginRepository for feteching dependend packages - Added test case
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.
I refactored a little.
@renypaul Can you take a look please?
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com>
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com>
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com>
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.
Thanks @DmitriyLewen for the careful review and suggestions |
@knqyf263 Gentle reminder on merge. Also it will be helpful to know when we can expect trivy with this change. FYI @DmitriyLewen |
Hopefully, I'll check it next week. |
Gentle reminder @knqyf263 |
Hello @renypaul We have moved Do you have time to open a new PR for Trivy with these changes? |
Thanks @DmitriyLewen I have created a PR at https://github.com/aquasecurity/trivy/pull/6171/files . It will be great if this can be included in the next release. Please feel free to update the code if needed. |
|
Issue: #286
Description
This change allows packages to be fetched from repository other than https://repo.maven.apache.org/maven2/