Simplify Summary summary based on license-check and vulnerability-check
Omit details related to the license check of vulnerability check from the GitHub Actions Summary's summary if the respective check is disabled from the configuration.
This commit is contained in:
+5
-1
@@ -53,7 +53,11 @@ async function run(): Promise<void> {
|
||||
}
|
||||
)
|
||||
|
||||
summary.addSummaryToSummary(addedChanges, invalidLicenseChanges)
|
||||
summary.addSummaryToSummary(
|
||||
config.vulnerability_check ? addedChanges : null,
|
||||
config.license_check ? invalidLicenseChanges : null
|
||||
)
|
||||
|
||||
if (config.vulnerability_check) {
|
||||
summary.addChangeVulnerabilitiesToSummary(addedChanges, minSeverity)
|
||||
printVulnerabilitiesBlock(addedChanges, minSeverity)
|
||||
|
||||
Reference in New Issue
Block a user