new dev
This commit is contained in:
+2
@@ -508,6 +508,8 @@ function run() {
|
||||
if (failOnSeverityParams) {
|
||||
minSeverity = failOnSeverityParams;
|
||||
}
|
||||
// debug
|
||||
core.debug(`Config: \n\t ${JSON.stringify(config, null, 2)}`);
|
||||
const scopedChanges = (0, filter_1.filterChangesByScopes)(config.fail_on_scopes, changes);
|
||||
const filteredChanges = (0, filter_1.filterAllowedAdvisories)(config.allow_ghsas, scopedChanges);
|
||||
const vulnerableChanges = (0, filter_1.filterChangesBySeverity)(minSeverity, filteredChanges).filter(change => change.change_type === 'added' &&
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -44,6 +44,9 @@ async function run(): Promise<void> {
|
||||
minSeverity = failOnSeverityParams
|
||||
}
|
||||
|
||||
// debug
|
||||
core.debug(`Config: \n\t ${JSON.stringify(config, null, 2)}`)
|
||||
|
||||
const scopedChanges = filterChangesByScopes(config.fail_on_scopes, changes)
|
||||
const filteredChanges = filterAllowedAdvisories(
|
||||
config.allow_ghsas,
|
||||
|
||||
Reference in New Issue
Block a user