fix: handle test output parsing (#17)

* fix: handle go test json lines and generate sarif

* fix(ci): clean up linting
This commit is contained in:
2025-07-14 02:14:35 +03:00
committed by GitHub
parent e5966fb24d
commit 4ef7e226e2
4 changed files with 3 additions and 12 deletions

View File

@@ -11,10 +11,6 @@ on:
permissions: read-all
env:
TRIVY_SEVERITY: CRITICAL,HIGH
DISABLE_LINTERS: GO_GOLANGCI_LINT
jobs:
Linter:
name: PR Lint

View File

@@ -15,5 +15,6 @@ PRINT_ALPACA: false # Print Alpaca logo in console
SARIF_REPORTER: true # Generate SARIF report
SHOW_SKIPPED_LINTERS: false # Show skipped linters in MegaLinter log
DISABLE_LINTERS:
- REPOSITORY_DEVSKIM
DISABLE_LINTERS:
- REPOSITORY_DEVSKIM

5
go.mod
View File

@@ -3,13 +3,8 @@ module github.com/ivuorinen/go-test-sarif-action
go 1.24.1
require github.com/owenrumney/go-sarif/v2 v2.3.3
require gopkg.in/yaml.v3 v3.0.1 // indirect
replace golang.org/x/crypto => golang.org/x/crypto v0.40.0
replace golang.org/x/net => golang.org/x/net v0.42.0
replace golang.org/x/text => golang.org/x/text v0.27.0
replace gopkg.in/yaml.v3 => gopkg.in/yaml.v3 v3.0.1

1
go.sum
View File

@@ -4,7 +4,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=