-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enforce correct type for security-severity in sarif output (#5091)
- Loading branch information
1 parent
4f892f7
commit f0c8339
Showing
7 changed files
with
9 additions
and
9 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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
"deb" | ||
], | ||
"cvssv3_baseScore": 6.5, | ||
"security-severity": 6.5 | ||
"security-severity": "6.5" | ||
} | ||
} | ||
] | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
"deb" | ||
], | ||
"cvssv3_baseScore": 6.5, | ||
"security-severity": 6.5 | ||
"security-severity": "6.5" | ||
} | ||
} | ||
] | ||
|
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 |
---|---|---|
|
@@ -51,7 +51,7 @@ describe('snyk test --sarif', () => { | |
|
||
expect(stdout).toContain('"artifactsScanned": 1'); | ||
expect(stdout).toContain('"cvssv3_baseScore": 5.3'); | ||
expect(stdout).toContain('"security-severity": 5.3'); | ||
expect(stdout).toContain('"security-severity": "5.3"'); | ||
expect(stdout).toContain('"fullyQualifiedName": "[email protected]"'); | ||
expect(stdout).toContain('Upgrade to [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
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