diff --git a/src/main.ts b/src/main.ts index f58e1d1..39a2754 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,11 @@ async function run(): Promise { headRef: refs.head }) + if (!changes) { + core.info('No Dependency Changes found. Skipping Dependency Review.') + return + } + const minSeverity = config.fail_on_severity const scopedChanges = filterChangesByScopes(config.fail_on_scopes, changes) const filteredChanges = filterAllowedAdvisories( diff --git a/src/summary.ts b/src/summary.ts index 8c868fc..e73ce56 100644 --- a/src/summary.ts +++ b/src/summary.ts @@ -151,8 +151,6 @@ export function addLicensesToSummary( core.debug( `${invalidLicenseChanges.unresolved.length} licenses could not be validated` ) - - core.summary.addSeparator() } const licenseIssueTypes: InvalidLicenseChangeTypes[] = [