Add a default config file.
This commit is contained in:
1
.github/dependency-review-config.yml
vendored
Normal file
1
.github/dependency-review-config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
fail-on-severity: low
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user