This commit is contained in:
Claire Song
2025-08-14 14:43:45 +00:00
parent 6e2bbef080
commit c1fa9df06b
2 changed files with 5 additions and 1 deletions
Generated Vendored
+4
View File
@@ -1605,6 +1605,7 @@ function addSummaryToSummary(vulnerableChanges, invalidLicenseChanges, deniedCha
const licenseIssues = countLicenseIssues(invalidLicenseChanges);
core.summary.addHeading('Dependency Review', 1);
out.push('# Dependency Review');
addDenyListsDeprecationWarningToSummary();
if (vulnerableChanges.length === 0 &&
licenseIssues === 0 &&
deniedChanges.length === 0 &&
@@ -1660,6 +1661,9 @@ function addSummaryToSummary(vulnerableChanges, invalidLicenseChanges, deniedCha
out.push(`\n[View full job summary](${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID})`);
return out.join('\n');
}
function addDenyListsDeprecationWarningToSummary() {
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, config) {
return scorecard.dependencies.reduce((total, dependency) => {
var _a, _b;
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long