Add filtering by low severity as the default.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ type ConfigurationOptions = {
|
|||||||
export function readConfigFile(filePath: string = CONFIG_FILEPATH): ConfigurationOptions {
|
export function readConfigFile(filePath: string = CONFIG_FILEPATH): ConfigurationOptions {
|
||||||
// By default we want to fail on all severities and allow all licenses.
|
// By default we want to fail on all severities and allow all licenses.
|
||||||
var defaultOptions: ConfigurationOptions = {
|
var defaultOptions: ConfigurationOptions = {
|
||||||
fail_on_severity: "all",
|
fail_on_severity: "low",
|
||||||
allow_licenses: ['all'],
|
allow_licenses: ['all'],
|
||||||
deny_licenses: []
|
deny_licenses: []
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ async function run(): Promise<void> {
|
|||||||
|
|
||||||
let filteredChanges = filterChangesBySeverity(minSeverity as Severity, changes)
|
let filteredChanges = filterChangesBySeverity(minSeverity as Severity, changes)
|
||||||
|
|
||||||
for (const change of changes) {
|
for (const change of filteredChanges) {
|
||||||
if (
|
if (
|
||||||
change.change_type === 'added' &&
|
change.change_type === 'added' &&
|
||||||
change.vulnerabilities !== undefined &&
|
change.vulnerabilities !== undefined &&
|
||||||
|
|||||||
Reference in New Issue
Block a user