licenses check exclusion list

This commit is contained in:
Stefan Petrushevski
2023-03-08 12:38:34 +01:00
parent d11e757f70
commit 600458c5dd
7 changed files with 50 additions and 4 deletions
+10
View File
@@ -143,6 +143,16 @@ export function addLicensesToSummary(
`<strong>Denied Licenses</strong>: ${config.deny_licenses.join(', ')}`
)
}
if (config.allow_dependencies_licenses) {
core.summary.addRaw(
"<strong>Allow Dependencies (Exceptions)' Licenses</strong>: true"
)
for (const [ecosystem, dependencies] of Object.entries(
config.allow_dependencies_licenses
)) {
core.summary.addRaw(`- ${ecosystem}</strong>: ${dependencies.join(', ')}`)
}
}
core.debug(
`found ${invalidLicenseChanges.unlicensed.length} unknown licenses`