Skip to content

Commit

Permalink
test: update sarif schema url
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Nov 2, 2023
1 parent 70f083b commit e40e02b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration/testdata/alpine-310.sarif.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
"runs": [
{
"tool": {
Expand Down
10 changes: 5 additions & 5 deletions pkg/report/sarif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestReportWriter_Sarif(t *testing.T) {
},
want: &sarif.Report{
Version: "2.1.0",
Schema: "https://json.schemastore.org/sarif-2.1.0.json",
Schema: "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
Runs: []*sarif.Run{
{
Tool: sarif.Tool{
Expand Down Expand Up @@ -214,7 +214,7 @@ func TestReportWriter_Sarif(t *testing.T) {
},
want: &sarif.Report{
Version: "2.1.0",
Schema: "https://json.schemastore.org/sarif-2.1.0.json",
Schema: "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
Runs: []*sarif.Run{
{
Tool: sarif.Tool{
Expand Down Expand Up @@ -354,7 +354,7 @@ func TestReportWriter_Sarif(t *testing.T) {
},
want: &sarif.Report{
Version: "2.1.0",
Schema: "https://json.schemastore.org/sarif-2.1.0.json",
Schema: "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
Runs: []*sarif.Run{
{
Tool: sarif.Tool{
Expand Down Expand Up @@ -448,7 +448,7 @@ func TestReportWriter_Sarif(t *testing.T) {
},
want: &sarif.Report{
Version: "2.1.0",
Schema: "https://json.schemastore.org/sarif-2.1.0.json",
Schema: "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
Runs: []*sarif.Run{
{
Tool: sarif.Tool{
Expand Down Expand Up @@ -518,7 +518,7 @@ func TestReportWriter_Sarif(t *testing.T) {
name: "no vulns",
want: &sarif.Report{
Version: "2.1.0",
Schema: "https://json.schemastore.org/sarif-2.1.0.json",
Schema: "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
Runs: []*sarif.Run{
{
Tool: sarif.Tool{
Expand Down

0 comments on commit e40e02b

Please sign in to comment.