✨ add remediation guidance for unpinned pip installs#4946
Open
✨ add remediation guidance for unpinned pip installs#4946
Conversation
Signed-off-by: Damien Perdomo Galletti <[email protected]>
Author
|
Please let me know if any adjustments or additional tests are required. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4946 +/- ##
==========================================
+ Coverage 66.80% 69.70% +2.89%
==========================================
Files 230 251 +21
Lines 16602 15668 -934
==========================================
- Hits 11091 10921 -170
+ Misses 4808 3873 -935
- Partials 703 874 +171 🚀 New features to boost your workflow:
|
Member
|
/scdiff generate Pinned-Dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature improvement (adds remediation guidance for unpinned pip installs).
What is the current behavior?
Unpinned
pip installcommands are detected by the Pinned-Dependencies check, but no remediation guidance is provided to users.What is the new behavior (if this is a feature change)?
When an unpinned
pip installcommand is detected, the result now includes a remediation message suggesting:Using
--require-hashesUsing hashed lockfiles
Generating hashed requirements with pip-tools
Following pip secure install best practices
Tests for the changes have been added (for bug fixes/features)
Which issue(s) this PR fixes
NONE
Special notes for your reviewer
This change mirrors the remediation pattern already implemented for NuGet, providing more actionable guidance for Python users.
Does this PR introduce a user-facing change?
Yes. It adds remediation guidance for unpinned
pip installcommands in the Pinned-Dependencies check output.