From b373a4f541219fd385acef209299cae8fe546cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Mon, 4 Dec 2023 23:12:23 -0600 Subject: [PATCH] Update examples to v0.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit regenerates the files in the examples directory with to the latest version of the spec. Signed-off-by: Adolfo GarcĂ­a Veytia (Puerco) --- examples/csaf/openvex.json | 21 +++++++++++++-------- examples/openvex/demo.vex.json | 17 ++++++++++------- examples/openvex/document1.vex.json | 20 +++++++++++++------- examples/openvex/document2.vex.json | 20 +++++++++++++------- 4 files changed, 49 insertions(+), 29 deletions(-) diff --git a/examples/csaf/openvex.json b/examples/csaf/openvex.json index fed960d..a67e8bc 100644 --- a/examples/csaf/openvex.json +++ b/examples/csaf/openvex.json @@ -1,17 +1,22 @@ { - "@context": "https://openvex.dev/ns", - "@id": "https://openvex.dev/docs/example/vex-9fb3463de1b57", + "@context": "https://openvex.dev/ns/v0.2.0", + "@id": "https://openvex.dev/docs/public/vex-69c8fa4a8a04ef5aec7da2b02a5a3eb77ec7a18848387ed73160230fb4cdb713", "author": "Wolfi J Inkinson", "role": "Document Creator", - "timestamp": "2023-01-08T18:02:03.647787998-06:00", - "version": "1", + "version": 1, "statements": [ { - "vulnerability": "CVE-2014-123456", + "vulnerability": { + "name": "CVE-2014-123456" + }, "products": [ - "pkg:generic/component2@2.39.0-r1" + { + "@id": "pkg:generic/component2@2.39.0-r1" + } ], - "status": "fixed" + "status": "fixed", + "timestamp": "2023-12-05T05:10:11.176427804Z" } - ] + ], + "timestamp": "2023-12-05T05:10:11.176427147Z" } diff --git a/examples/openvex/demo.vex.json b/examples/openvex/demo.vex.json index e14f28f..ba60a11 100644 --- a/examples/openvex/demo.vex.json +++ b/examples/openvex/demo.vex.json @@ -1,16 +1,19 @@ { - "@context": "https://openvex.dev/ns", - "@id": "https://openvex.dev/docs/example/vex-9fb3463de1b57", + "@context": "https://openvex.dev/ns/v0.2.0", + "@id": "https://openvex.dev/docs/public/vex-d7653e1c3ccc092c02e2cfd2b12549be29264ff28f9f704f599613b007584dbe", "author": "Wolfi J Inkinson", "role": "Document Creator", - "timestamp": "2023-01-08T18:02:03.647787998-06:00", - "version": "1", + "timestamp": "2023-12-04T21:55:19.945014473-06:00", + "version": 1, "statements": [ { - "vulnerability": "CVE-2014-123456", + "vulnerability": { + "name": "CVE-2014-123456" + }, + "timestamp": "2023-12-04T21:55:19.945015302-06:00", "products": [ - "pkg:apk/distro/git@2.39.0-r1?arch=armv7", - "pkg:apk/distro/git@2.39.0-r1?arch=x86_64" + { "@id": "pkg:apk/distro/git@2.39.0-r1?arch=armv7" }, + { "@id": "pkg:apk/distro/git@2.39.0-r1?arch=x86_64" } ], "status": "fixed" } diff --git a/examples/openvex/document1.vex.json b/examples/openvex/document1.vex.json index df7ec81..864a6e4 100644 --- a/examples/openvex/document1.vex.json +++ b/examples/openvex/document1.vex.json @@ -1,16 +1,22 @@ { - "@context": "https://openvex.dev/ns", - "@id": "https://openvex.dev/docs/public/vex-3f59b4dffdeae0183e5e6a9d7a2461fdf86a03c079f4129050bb462eca366beb", + "@context": "https://openvex.dev/ns/v0.2.0", + "@id": "https://openvex.dev/docs/public/vex-0f3be8817faafa24e4bfb3d17eaf619efb1fe54923b9c42c57b156a936b91431", "author": "John Doe", "role": "Senior Trusted VEX Issuer", + "version": 1, "statements": [ { - "timestamp": "2022-12-22T16:36:43-05:00", + "vulnerability": { + "name": "CVE-1234-5678" + }, "products": [ - "pkg:apk/wolfi/bash@1.0.0" + { + "@id": "pkg:apk/wolfi/bash@1.0.0" + } ], - "vulnerability": "CVE-1234-5678", - "status": "under_investigation" + "status": "under_investigation", + "timestamp": "2023-12-05T05:04:34.77929922Z" } - ] + ], + "timestamp": "2023-12-05T05:04:34.77929844Z" } diff --git a/examples/openvex/document2.vex.json b/examples/openvex/document2.vex.json index a3b41a1..1fc5d6e 100644 --- a/examples/openvex/document2.vex.json +++ b/examples/openvex/document2.vex.json @@ -1,16 +1,22 @@ { - "@context": "https://openvex.dev/ns", - "@id": "https://openvex.dev/docs/public/vex-cb43f7eeb498d81f73148766a030a0060de2331c367c12d203592ea84650a31c", + "@context": "https://openvex.dev/ns/v0.2.0", + "@id": "https://openvex.dev/docs/public/vex-3cd938c9a706eba0915883640116cfe813f7d59150cf758b8c869b4926a7cf11", "author": "John Doe", "role": "Senior Trusted VEX Issuer", + "version": 1, "statements": [ { - "timestamp": "2022-12-22T20:56:05-05:00", + "vulnerability": { + "name": "CVE-1234-5678" + }, "products": [ - "pkg:apk/wolfi/bash@1.0.0" + { + "@id": "pkg:apk/wolfi/bash@1.0.0" + } ], - "vulnerability": "CVE-1234-5678", - "status": "fixed" + "status": "fixed", + "timestamp": "2023-12-05T05:06:38.099731287Z" } - ] + ], + "timestamp": "2023-12-05T05:06:38.099730576Z" }