Add min-comment to fix max-comment length issue

This commit is contained in:
Justin Hutchings
2024-05-06 00:26:50 +00:00
committed by Eli Reisman
parent 8d625cd32e
commit 48fae2e703
5 changed files with 138 additions and 8 deletions

View File

@@ -134,6 +134,13 @@ async function run(): Promise<void> {
scorecard,
config
)
const minSummary = summary.getMinSummaryForComment(
vulnerableChanges,
invalidLicenseChanges,
deniedChanges,
scorecard,
config
)
if (snapshot_warnings) {
summary.addSnapshotWarnings(config, snapshot_warnings)
@@ -166,7 +173,7 @@ async function run(): Promise<void> {
core.setOutput('dependency-changes', JSON.stringify(changes))
summary.addScannedDependencies(changes)
printScannedDependencies(changes)
await commentPr(core.summary, config)
await commentPr(core.summary, config, minSummary)
} catch (error) {
if (error instanceof RequestError && error.status === 404) {
core.setFailed(