From 7f7c733f87c56409b51521827935461dd1b6840e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 06:45:41 +0000 Subject: [PATCH 1/2] :arrow_up: Bump github.com/owenrumney/go-sarif/v2 from 2.2.2 to 2.3.0 Bumps [github.com/owenrumney/go-sarif/v2](https://github.com/owenrumney/go-sarif) from 2.2.2 to 2.3.0. - [Release notes](https://github.com/owenrumney/go-sarif/releases) - [Changelog](https://github.com/owenrumney/go-sarif/blob/main/.goreleaser.yml) - [Commits](https://github.com/owenrumney/go-sarif/compare/v2.2.2...v2.3.0) --- updated-dependencies: - dependency-name: github.com/owenrumney/go-sarif/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 645f4d1..372a93c 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( require ( github.com/google/go-github/v47 v47.1.0 - github.com/owenrumney/go-sarif/v2 v2.2.2 + github.com/owenrumney/go-sarif/v2 v2.3.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 golang.org/x/oauth2 v0.13.0 diff --git a/go.sum b/go.sum index 8cf65a4..aeef559 100644 --- a/go.sum +++ b/go.sum @@ -28,8 +28,8 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/owenrumney/go-sarif v1.1.1/go.mod h1:dNDiPlF04ESR/6fHlPyq7gHKmrM0sHUvAGjsoh8ZH0U= -github.com/owenrumney/go-sarif/v2 v2.2.2 h1:x2acaiiAW9hu+78wbEYBRGLk5nRtHmkv7HeUsKvblwc= -github.com/owenrumney/go-sarif/v2 v2.2.2/go.mod h1:MSqMMx9WqlBSY7pXoOZWgEsVB4FDNfhcaXDA1j6Sr+w= +github.com/owenrumney/go-sarif/v2 v2.3.0 h1:wP5yEpI53zr0v5cBmagXzLbHZp9Oylyo3AJDpfLBITs= +github.com/owenrumney/go-sarif/v2 v2.3.0/go.mod h1:MSqMMx9WqlBSY7pXoOZWgEsVB4FDNfhcaXDA1j6Sr+w= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= From 0809f573990435287bf1f6613a8ed23e29a10117 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 12 Oct 2023 06:54:13 +0000 Subject: [PATCH 2/2] :white_check_mark: Adjusted Test --- pkg/github/sarif_report_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/sarif_report_test.go b/pkg/github/sarif_report_test.go index c5afacf..32746ab 100644 --- a/pkg/github/sarif_report_test.go +++ b/pkg/github/sarif_report_test.go @@ -108,7 +108,7 @@ func TestGithubSarifUploader_UploadReport(t *testing.T) { t.Errorf("Decompressing Sarif String failed with %v", err) } - if !strings.HasPrefix(string(sarifReport), "{\"version\":\"2.1.0\",\"$schema\":\"https://json.schemastore.org/sarif-2.1.0.json\"") { + if !strings.HasPrefix(string(sarifReport), "{\"version\":\"2.1.0\",") { t.Error("Sarif Report did not start as expected") }