Skips dependency review if no changes detected

This commit is contained in:
David Losert
2023-03-02 07:47:09 +00:00
committed by GitHub
parent b7a25f4e9b
commit 6b34d93738
2 changed files with 5 additions and 2 deletions

View File

@@ -29,6 +29,11 @@ async function run(): Promise<void> {
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(

View File

@@ -151,8 +151,6 @@ export function addLicensesToSummary(
core.debug(
`${invalidLicenseChanges.unresolved.length} licenses could not be validated`
)
core.summary.addSeparator()
}
const licenseIssueTypes: InvalidLicenseChangeTypes[] = [