From c5cda496be79b660e89a7252160908660699a84c Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:04:07 +1000 Subject: [PATCH] Update schema attribute for SARIF 2.1.0 Errata 01 --- .../kotlin/io/github/detekt/sarif4k/SarifSerializerTest.kt | 2 +- src/jvmTest/resources/input_1.sarif.json | 2 +- src/jvmTest/resources/input_2.sarif.json | 2 +- src/jvmTest/resources/input_2_different_tool.sarif.json | 2 +- src/jvmTest/resources/output.sarif.json | 2 +- src/jvmTest/resources/output_different_tool.sarif.json | 2 +- src/jvmTest/resources/test.sarif.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifSerializerTest.kt b/src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifSerializerTest.kt index 4037b9c..2b1aced 100644 --- a/src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifSerializerTest.kt +++ b/src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifSerializerTest.kt @@ -7,7 +7,7 @@ import kotlin.test.assertEquals class SarifSerializerTest { private val sarifSchema210 = SarifSchema210( - schema = "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + schema = "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", version = Version.The210, runs = listOf( Run( diff --git a/src/jvmTest/resources/input_1.sarif.json b/src/jvmTest/resources/input_1.sarif.json index 863e12c..0d44dfe 100644 --- a/src/jvmTest/resources/input_1.sarif.json +++ b/src/jvmTest/resources/input_1.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ { diff --git a/src/jvmTest/resources/input_2.sarif.json b/src/jvmTest/resources/input_2.sarif.json index e3065f1..8dd2874 100644 --- a/src/jvmTest/resources/input_2.sarif.json +++ b/src/jvmTest/resources/input_2.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ { diff --git a/src/jvmTest/resources/input_2_different_tool.sarif.json b/src/jvmTest/resources/input_2_different_tool.sarif.json index 96298d4..418f8f8 100644 --- a/src/jvmTest/resources/input_2_different_tool.sarif.json +++ b/src/jvmTest/resources/input_2_different_tool.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ { diff --git a/src/jvmTest/resources/output.sarif.json b/src/jvmTest/resources/output.sarif.json index eecf100..3e05df6 100644 --- a/src/jvmTest/resources/output.sarif.json +++ b/src/jvmTest/resources/output.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ { diff --git a/src/jvmTest/resources/output_different_tool.sarif.json b/src/jvmTest/resources/output_different_tool.sarif.json index 52916c9..825d63b 100644 --- a/src/jvmTest/resources/output_different_tool.sarif.json +++ b/src/jvmTest/resources/output_different_tool.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ { diff --git a/src/jvmTest/resources/test.sarif.json b/src/jvmTest/resources/test.sarif.json index 2834a5f..9a23eb6 100644 --- a/src/jvmTest/resources/test.sarif.json +++ b/src/jvmTest/resources/test.sarif.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", "version": "2.1.0", "runs": [ {