Add deprecation warning, fix lint issues

This commit is contained in:
Claire Song
2025-08-14 14:25:52 +00:00
parent 9ca24b6906
commit 6e2bbef080
3 changed files with 27 additions and 5 deletions

View File

@@ -30,6 +30,8 @@ export function addSummaryToSummary(
core.summary.addHeading('Dependency Review', 1)
out.push('# Dependency Review')
addDenyListsDeprecationWarningToSummary()
if (
vulnerableChanges.length === 0 &&
licenseIssues === 0 &&
@@ -106,6 +108,12 @@ export function addSummaryToSummary(
return out.join('\n')
}
function addDenyListsDeprecationWarningToSummary(): void {
core.summary.addRaw(
`${icons.warning} The <em>deny-licenses</em> option is deprecated and will be removed in a future version, use <em>allow-licenses</em> instead.<br>`
)
}
function countScorecardWarnings(
scorecard: Scorecard,
config: ConfigurationOptions