Add a default config file.

This commit is contained in:
Federico Builes
2022-09-19 17:28:20 +02:00
parent 07a7056819
commit bf0cb7fac4
3 changed files with 3 additions and 1 deletions

1
.github/dependency-review-config.yml vendored Normal file
View File

@@ -0,0 +1 @@
fail-on-severity: low

View File

@@ -5,7 +5,7 @@ import * as core from '@actions/core'
import * as z from 'zod'
import {ConfigurationOptions, SEVERITIES} from './schemas'
export const CONFIG_FILEPATH = './.github/dependency-review.yml'
export const CONFIG_FILEPATH = './.github/dependency-review-config.yml'
function getOptionalInput(name: string): string | undefined {
const value = core.getInput(name)

View File

@@ -35,6 +35,7 @@ export const ConfigurationOptionsSchema = z
fail_on_severity: z.enum(SEVERITIES).default('low'),
allow_licenses: z.array(z.string()).default([]),
deny_licenses: z.array(z.string()).default([]),
config_file: z.string().optional().default('false'),
base_ref: z.string(),
head_ref: z.string()
})