Use a more definitive name for the config file.
This commit is contained in:
@@ -53,4 +53,7 @@ test('it properly filters changes by severity', async () => {
|
|||||||
|
|
||||||
result = filterChangesBySeverity('low', changes)
|
result = filterChangesBySeverity('low', changes)
|
||||||
expect(changes).toEqual([npmChange, rubyChange])
|
expect(changes).toEqual([npmChange, rubyChange])
|
||||||
|
|
||||||
|
result = filterChangesBySeverity('critical', changes)
|
||||||
|
expect(changes).toEqual([npmChange, rubyChange])
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -13633,7 +13633,7 @@ const fs = __importStar(__nccwpck_require__(7147));
|
|||||||
const yaml_1 = __importDefault(__nccwpck_require__(4083));
|
const yaml_1 = __importDefault(__nccwpck_require__(4083));
|
||||||
const schemas_1 = __nccwpck_require__(1129);
|
const schemas_1 = __nccwpck_require__(1129);
|
||||||
const path_1 = __importDefault(__nccwpck_require__(1017));
|
const path_1 = __importDefault(__nccwpck_require__(1017));
|
||||||
exports.CONFIG_FILEPATH = './.github/dep-review.yml';
|
exports.CONFIG_FILEPATH = './.github/dependency-review.yml';
|
||||||
function readConfigFile(filePath = exports.CONFIG_FILEPATH) {
|
function readConfigFile(filePath = exports.CONFIG_FILEPATH) {
|
||||||
// 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.
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -3,7 +3,7 @@ import YAML from 'yaml'
|
|||||||
import {ConfigurationOptions, ConfigurationOptionsSchema} from './schemas'
|
import {ConfigurationOptions, ConfigurationOptionsSchema} from './schemas'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
|
||||||
export const CONFIG_FILEPATH = './.github/dep-review.yml'
|
export const CONFIG_FILEPATH = './.github/dependency-review.yml'
|
||||||
|
|
||||||
export function readConfigFile(
|
export function readConfigFile(
|
||||||
filePath: string = CONFIG_FILEPATH
|
filePath: string = CONFIG_FILEPATH
|
||||||
|
|||||||
Reference in New Issue
Block a user