Skip to content

Commit

Permalink
Update devDependencies and release 6.4.0 (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner authored Dec 7, 2022
1 parent e4385b6 commit e082a65
Show file tree
Hide file tree
Showing 4 changed files with 969 additions and 540 deletions.
4 changes: 3 additions & 1 deletion docs/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* This file generates the `schema.json` file. */

import { type NSPRecord } from "../lib/nsp-record";

export interface Schema {
/** @default https://github.com/IBM/audit-ci/raw/main/docs/schema.json */
$schema?: string;
Expand Down Expand Up @@ -44,7 +46,7 @@ export interface Schema {
*
* @default []
*/
allowlist?: string[];
allowlist?: (string | NSPRecord)[];

/**
* Output format for audit-ci.
Expand Down
33 changes: 32 additions & 1 deletion docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@
"$ref": "#/definitions/Schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"NSPContent": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"expiry": {
"type": [
"string",
"number"
]
},
"notes": {
"type": "string"
}
},
"type": "object"
},
"NSPRecord": {
"additionalProperties": {
"$ref": "#/definitions/NSPContent"
},
"type": "object"
},
"Schema": {
"additionalProperties": false,
"properties": {
Expand All @@ -13,7 +37,14 @@
"default": [],
"description": "Vulnerable modules, advisories, and paths to allowlist from preventing integration.",
"items": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/NSPRecord"
}
]
},
"type": "array"
},
Expand Down
Loading

0 comments on commit e082a65

Please sign in to comment.