Add filtering by low severity as the default.

This commit is contained in:
Federico Builes
2022-05-31 17:08:22 +02:00
parent b601c09c4e
commit 731e67eca2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ type ConfigurationOptions = {
export function readConfigFile(filePath: string = CONFIG_FILEPATH): ConfigurationOptions {
// By default we want to fail on all severities and allow all licenses.
var defaultOptions: ConfigurationOptions = {
fail_on_severity: "all",
fail_on_severity: "low",
allow_licenses: ['all'],
deny_licenses: []
}
+1 -1
View File
@@ -32,7 +32,7 @@ async function run(): Promise<void> {
let filteredChanges = filterChangesBySeverity(minSeverity as Severity, changes)
for (const change of changes) {
for (const change of filteredChanges) {
if (
change.change_type === 'added' &&
change.vulnerabilities !== undefined &&