-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OS CLI output - actionable focus on upgrade
Improve snyk-open-source CLI output as follows: - Moving actionable content closer to the users’ visual focus (moving issues to fix by upgrading lower in the output)
- Loading branch information
1 parent
225e490
commit 1417fe3
Showing
3 changed files
with
66 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,14 @@ | |
exports[`with license issues 1`] = ` | ||
" | ||
License issues: | ||
✗ Unknown license [High Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Legal instructions: | ||
○ for LGPL-3.0 license: I am legal license instruction | ||
Issues to fix by upgrading: | ||
Upgrade [email protected] to [email protected] to fix | ||
|
@@ -36,32 +44,24 @@ Issues to fix by upgrading: | |
introduced by: | ||
[email protected] | ||
[email protected] > [email protected] | ||
[email protected] > [email protected] | ||
License issues: | ||
✗ Unknown license [High Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Legal instructions: | ||
○ for LGPL-3.0 license: I am legal license instruction" | ||
[email protected] > [email protected]" | ||
`; | ||
|
||
exports[`with pins & unfixable & showVulnsPaths = all 1`] = ` | ||
" | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6 | ||
Issues to fix by upgrading dependencies: | ||
Upgrade [email protected] to [email protected] to fix | ||
✗ Content Spoofing [Medium Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6" | ||
[email protected]" | ||
`; | ||
|
||
exports[`with reachable info 1`] = ` | ||
|
@@ -78,21 +78,28 @@ Issues to fix by upgrading: | |
exports[`with showVulnPaths = some 1`] = ` | ||
" | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
introduced by [email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6 | ||
Issues to fix by upgrading dependencies: | ||
Upgrade [email protected] to [email protected] to fix | ||
✗ Content Spoofing [Medium Severity][URL] in [email protected] | ||
introduced by [email protected] | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
introduced by [email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6" | ||
introduced by [email protected]" | ||
`; | ||
|
||
exports[`with upgrades & patches 1`] = ` | ||
" | ||
Patchable issues: | ||
Patch available for [email protected] | ||
✗ Insecure Randomness [Low Severity (originally Medium)][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Issues to fix by upgrading: | ||
Upgrade [email protected] to [email protected] to fix | ||
|
@@ -104,12 +111,5 @@ Issues to fix by upgrading: | |
[email protected] | ||
✗ Denial of Service (DoS) [Low Severity (originally Medium)][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Patchable issues: | ||
Patch available for [email protected] | ||
✗ Insecure Randomness [Low Severity (originally Medium)][URL] in [email protected] | ||
introduced by: | ||
[email protected]" | ||
[email protected]" | ||
`; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,19 +233,19 @@ Testing src... | |
Tested 2 dependencies for known issues, found 32 issues, 2 vulnerable paths. | ||
Issues to fix by upgrading dependencies: | ||
Upgrade [email protected] to [email protected] to fix | ||
✗ Content Spoofing [Medium Severity][URL] in [email protected] | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6 | ||
Issues with no direct upgrade or patch: | ||
✗ Directory Traversal [Low Severity][URL] in [email protected] | ||
Issues to fix by upgrading dependencies: | ||
Upgrade [email protected] to [email protected] to fix | ||
✗ Content Spoofing [Medium Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
This issue was fixed in versions: 2.2.18, 3.0.12, 3.1.6 | ||
|
@@ -270,6 +270,14 @@ Testing src... | |
Tested 2 dependencies for known vulnerabilities, found 4 vulnerabilities, 4 vulnerable paths. | ||
Patchable issues: | ||
Patch available for [email protected] | ||
✗ Insecure Randomness [Low Severity (originally Medium)][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Issues to fix by upgrading: | ||
Upgrade [email protected] to [email protected] to fix | ||
|
@@ -284,14 +292,6 @@ Issues to fix by upgrading: | |
[email protected] | ||
Patchable issues: | ||
Patch available for [email protected] | ||
✗ Insecure Randomness [Low Severity (originally Medium)][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Organization: another-org | ||
Package manager: npm | ||
|
@@ -310,6 +310,15 @@ Testing src... | |
Tested 3 dependencies for known issues, found 6 issues, 8 vulnerable paths. | ||
License issues: | ||
✗ Unknown license [High Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Legal instructions: | ||
○ for LGPL-3.0 license: I am legal license instruction | ||
Issues to fix by upgrading: | ||
Upgrade [email protected] to [email protected] to fix | ||
|
@@ -346,15 +355,6 @@ Issues to fix by upgrading: | |
[email protected] > [email protected] | ||
License issues: | ||
✗ Unknown license [High Severity][URL] in [email protected] | ||
introduced by: | ||
[email protected] | ||
Legal instructions: | ||
○ for LGPL-3.0 license: I am legal license instruction | ||
Organization: lili2311 | ||
Package manager: rubygems | ||
|