Fixing a bug with GHSA filtering.

Co-authored-by: Christine Nagadya <[email protected]>
This commit is contained in:
Federico Builes
2022-10-11 15:17:34 +02:00
co-authored by Christine Nagadya
parent 1d9bfbbddf
commit 2dd6c6a3d7
3 changed files with 19 additions and 10 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {readConfig} from '../src/config'
import {
filterChangesBySeverity,
filterChangesByScopes,
removeAllowedAdvisories
filterAllowedAdvisories
} from '../src/filter'
import {getDeniedLicenseChanges} from './licenses'
import * as summary from './summary'
@@ -30,7 +30,7 @@ async function run(): Promise<void> {
const minSeverity = config.fail_on_severity as Severity
const scopedChanges = filterChangesByScopes(config.fail_on_scopes, changes)
const filteredChanges = removeAllowedAdvisories(
const filteredChanges = filterAllowedAdvisories(
config.allow_ghsas,
scopedChanges
)