From 9284d2f664ec201e83acab023f0d157642100d64 Mon Sep 17 00:00:00 2001 From: atishj99 <141334503+cx-atish-jadhav@users.noreply.github.com> Date: Tue, 26 May 2026 18:24:01 +0530 Subject: [PATCH 01/20] Changes for manifest parser for java and sbt --- go.mod | 6 +++++- go.sum | 2 -- .../realtimeengine/ossrealtime/oss-realtime.go | 14 +++++++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 5a93ebf35..7a0ea2237 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/Checkmarx/containers-types v1.0.9 github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63 github.com/Checkmarx/gen-ai-wrapper v1.0.3 - github.com/Checkmarx/manifest-parser v0.1.2 + //github.com/Checkmarx/manifest-parser v0.1.2 github.com/Checkmarx/secret-detection v1.2.1 github.com/MakeNowJust/heredoc v1.0.0 github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74 @@ -36,6 +36,8 @@ require ( gotest.tools v2.2.0+incompatible ) +require github.com/Checkmarx/manifest-parser v0.0.0-00010101000000-000000000000 + require ( cel.dev/expr v0.25.1 // indirect cloud.google.com/go v0.123.0 // indirect @@ -394,3 +396,5 @@ require ( replace github.com/containerd/containerd => github.com/containerd/containerd v1.7.31 replace github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.13.0 + +replace github.com/Checkmarx/manifest-parser => C:/Users/AtishJ/GitHub_Repo/manifest-parser diff --git a/go.sum b/go.sum index 705cd99ef..9600c01d2 100644 --- a/go.sum +++ b/go.sum @@ -97,8 +97,6 @@ github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63 h1:SCuTcE github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63/go.mod h1:MI6lfLerXU+5eTV/EPTDavgnV3owz3GPT4g/msZBWPo= github.com/Checkmarx/gen-ai-wrapper v1.0.3 h1:p7lc/U4dFltsIxAEeWeDNW4+8ovvlJvdb5pVBLcbKs8= github.com/Checkmarx/gen-ai-wrapper v1.0.3/go.mod h1:xwRLefezwNNnRGu1EjGS6wNiR9FVV/eP9D+oXwLViVM= -github.com/Checkmarx/manifest-parser v0.1.2 h1:Sh2xkpeOWKu56Y7wo+ljckNGHAQX1uITEeH3cI2T0pg= -github.com/Checkmarx/manifest-parser v0.1.2/go.mod h1:hh5FX5FdDieU8CKQEkged4hfOaSylpJzub8PRFXa4kA= github.com/Checkmarx/secret-detection v1.2.1 h1:Hzpz74dcN/L14Q86ARvPOZpKBnERzGTpy6sl1RXKOTo= github.com/Checkmarx/secret-detection v1.2.1/go.mod h1:kbXbtIQisDdB/TNuV7r9HPclEznUyBHLQ5yr7IX7vBQ= github.com/CycloneDX/cyclonedx-go v0.10.0 h1:7xyklU7YD+CUyGzSFIARG18NYLsKVn4QFg04qSsu+7Y= diff --git a/internal/services/realtimeengine/ossrealtime/oss-realtime.go b/internal/services/realtimeengine/ossrealtime/oss-realtime.go index b2c5e0cfb..b221c3af7 100644 --- a/internal/services/realtimeengine/ossrealtime/oss-realtime.go +++ b/internal/services/realtimeengine/ossrealtime/oss-realtime.go @@ -144,7 +144,7 @@ func enrichResponseWithRealtimeScannerResults( for _, pkg := range result.Packages { entry := getPackageEntryFromPackageMap(packageMap, &pkg) response.Packages = append(response.Packages, OssPackage{ - PackageManager: pkg.PackageManager, + PackageManager: entry.PackageManager, PackageName: pkg.PackageName, PackageVersion: pkg.Version, FilePath: entry.FilePath, @@ -220,13 +220,17 @@ func prepareScan(pkgs []models.Package) (*OssPackageResults, *wrappers.RealtimeS func createPackageMap(pkgs []models.Package) map[string]OssPackage { packageMap := make(map[string]OssPackage) for _, pkg := range pkgs { - packageMap[generatePackageMapEntry(pkg.PackageManager, pkg.PackageName, pkg.Version)] = OssPackage{ + entry := OssPackage{ PackageManager: pkg.PackageManager, PackageName: pkg.PackageName, PackageVersion: pkg.Version, FilePath: pkg.FilePath, Locations: convertLocations(pkg.Locations), } + packageMap[generatePackageMapEntry(pkg.PackageManager, pkg.PackageName, pkg.Version)] = entry + if pkg.PackageManager == "gradle" || pkg.PackageManager == "sbt" { + packageMap[generatePackageMapEntry("mvn", pkg.PackageName, pkg.Version)] = entry + } } return packageMap } @@ -277,8 +281,12 @@ func createVersionMapping(requestPackages *wrappers.RealtimeScannerPackageReques // pkgToRequest transforms a parsed package into a scan request. func pkgToRequest(pkg *models.Package) wrappers.RealtimeScannerPackage { + pkgManager := pkg.PackageManager + if pkg.PackageManager == "gradle" || pkg.PackageManager == "sbt" { + pkgManager = "mvn" + } return wrappers.RealtimeScannerPackage{ - PackageManager: pkg.PackageManager, + PackageManager: pkgManager, PackageName: pkg.PackageName, Version: pkg.Version, } From 26d03eed15488a21983b700ce2ea1164df108c64 Mon Sep 17 00:00:00 2001 From: atishj99 <141334503+cx-atish-jadhav@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:41:41 +0530 Subject: [PATCH 02/20] Squashed commit of the following: commit fc7392fc7f2bb3130bfa1aa58b227420583c23fd Author: Alon Rosenhek <80337069+cx-alon-rosenhek@users.noreply.github.com> Date: Thu Jun 18 16:57:08 2026 +0300 chore: remove .github/workflows/dependabot-auto-merge.yml --- .github/workflows/dependabot-auto-merge.yml | 25 --------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml deleted file mode 100644 index a048a3ec6..000000000 --- a/.github/workflows/dependabot-auto-merge.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Dependabot auto-merge -on: pull_request - -permissions: - contents: write - -jobs: - dependabot-merge: - runs-on: cx-public-ubuntu-x64 - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Dependabot metadata - id: metadata - uses: step-security/dependabot-fetch-metadata@bf8fb6e0be0a711c669dc236de6e7f7374ba626e # v3.1.0 - with: - github-token: "${{ secrets.GH_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GH_TOKEN}} - run: gh pr merge --auto --merge "$PR_URL" - - name: Auto approve dependabot PRs - uses: step-security/auto-approve-action@0c28339628c8e79ab2f6813291e7e6cd584b4d30 # v4.0.0 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} From b37c9fb70e14f2a4d5d1bb19a29bc6f6286b2e6e Mon Sep 17 00:00:00 2001 From: atishj99 <141334503+cx-atish-jadhav@users.noreply.github.com> Date: Mon, 22 Jun 2026 16:00:18 +0530 Subject: [PATCH 03/20] used prerelease version of manifest parser --- go.mod | 4 +--- go.sum | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 25b27f1ee..4fab08805 100644 --- a/go.mod +++ b/go.mod @@ -36,7 +36,7 @@ require ( gotest.tools v2.2.0+incompatible ) -require github.com/Checkmarx/manifest-parser v0.0.0-00010101000000-000000000000 +require github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f require ( cyphar.com/go-pathrs v0.2.1 // indirect @@ -335,6 +335,4 @@ replace github.com/containerd/containerd/v2 => github.com/containerd/containerd/ replace github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.13.0 -replace github.com/Checkmarx/manifest-parser => C:/Users/AtishJ/GitHub_Repo/manifest-parser - replace github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.2.0 diff --git a/go.sum b/go.sum index 34ee8d2aa..26d8075b4 100644 --- a/go.sum +++ b/go.sum @@ -77,6 +77,8 @@ github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63 h1:SCuTcE github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63/go.mod h1:MI6lfLerXU+5eTV/EPTDavgnV3owz3GPT4g/msZBWPo= github.com/Checkmarx/gen-ai-wrapper v1.0.3 h1:p7lc/U4dFltsIxAEeWeDNW4+8ovvlJvdb5pVBLcbKs8= github.com/Checkmarx/gen-ai-wrapper v1.0.3/go.mod h1:xwRLefezwNNnRGu1EjGS6wNiR9FVV/eP9D+oXwLViVM= +github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f h1:G1Cv5y6aHJqqTNguJh3pXlHbqF8+IE0RBzM1p1UF+B0= +github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f/go.mod h1:hh5FX5FdDieU8CKQEkged4hfOaSylpJzub8PRFXa4kA= github.com/Checkmarx/secret-detection v1.2.1 h1:Hzpz74dcN/L14Q86ARvPOZpKBnERzGTpy6sl1RXKOTo= github.com/Checkmarx/secret-detection v1.2.1/go.mod h1:kbXbtIQisDdB/TNuV7r9HPclEznUyBHLQ5yr7IX7vBQ= github.com/CycloneDX/cyclonedx-go v0.10.0 h1:7xyklU7YD+CUyGzSFIARG18NYLsKVn4QFg04qSsu+7Y= From 3fa4166a7344803701228fc24b84edc565f9f5b0 Mon Sep 17 00:00:00 2001 From: atishj99 Date: Mon, 29 Jun 2026 18:24:19 +0530 Subject: [PATCH 04/20] refactor: extract package manager strings to constants Fix goconst lint warning by replacing repeated "gradle"/"sbt"/"mvn" string literals with named constants. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../realtimeengine/ossrealtime/oss-realtime.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/internal/services/realtimeengine/ossrealtime/oss-realtime.go b/internal/services/realtimeengine/ossrealtime/oss-realtime.go index b221c3af7..9316b1a7e 100644 --- a/internal/services/realtimeengine/ossrealtime/oss-realtime.go +++ b/internal/services/realtimeengine/ossrealtime/oss-realtime.go @@ -16,6 +16,12 @@ import ( "github.com/pkg/errors" ) +const ( + pkgManagerGradle = "gradle" + pkgManagerSbt = "sbt" + pkgManagerMvn = "mvn" +) + // convertLocations converts models.Location to realtimeengine.Location func convertLocations(locations []models.Location) []realtimeengine.Location { var result []realtimeengine.Location @@ -228,8 +234,8 @@ func createPackageMap(pkgs []models.Package) map[string]OssPackage { Locations: convertLocations(pkg.Locations), } packageMap[generatePackageMapEntry(pkg.PackageManager, pkg.PackageName, pkg.Version)] = entry - if pkg.PackageManager == "gradle" || pkg.PackageManager == "sbt" { - packageMap[generatePackageMapEntry("mvn", pkg.PackageName, pkg.Version)] = entry + if pkg.PackageManager == pkgManagerGradle || pkg.PackageManager == pkgManagerSbt { + packageMap[generatePackageMapEntry(pkgManagerMvn, pkg.PackageName, pkg.Version)] = entry } } return packageMap @@ -282,8 +288,8 @@ func createVersionMapping(requestPackages *wrappers.RealtimeScannerPackageReques // pkgToRequest transforms a parsed package into a scan request. func pkgToRequest(pkg *models.Package) wrappers.RealtimeScannerPackage { pkgManager := pkg.PackageManager - if pkg.PackageManager == "gradle" || pkg.PackageManager == "sbt" { - pkgManager = "mvn" + if pkg.PackageManager == pkgManagerGradle || pkg.PackageManager == pkgManagerSbt { + pkgManager = pkgManagerMvn } return wrappers.RealtimeScannerPackage{ PackageManager: pkgManager, From ffffa1abada34489fd747c3ecc6553822cf5987e Mon Sep 17 00:00:00 2001 From: atishj99 Date: Mon, 29 Jun 2026 18:24:59 +0530 Subject: [PATCH 05/20] Updated version of manifest parser to use latest --- go.mod | 4 +--- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 4fab08805..ace9c1591 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/Checkmarx/containers-types v1.0.9 github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63 github.com/Checkmarx/gen-ai-wrapper v1.0.3 - //github.com/Checkmarx/manifest-parser v0.1.2 + github.com/Checkmarx/manifest-parser v0.1.3 github.com/Checkmarx/secret-detection v1.2.1 github.com/MakeNowJust/heredoc v1.0.0 github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74 @@ -36,8 +36,6 @@ require ( gotest.tools v2.2.0+incompatible ) -require github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f - require ( cyphar.com/go-pathrs v0.2.1 // indirect github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect diff --git a/go.sum b/go.sum index 26d8075b4..236d15b7b 100644 --- a/go.sum +++ b/go.sum @@ -77,8 +77,8 @@ github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63 h1:SCuTcE github.com/Checkmarx/gen-ai-prompts v0.0.0-20240807143411-708ceec12b63/go.mod h1:MI6lfLerXU+5eTV/EPTDavgnV3owz3GPT4g/msZBWPo= github.com/Checkmarx/gen-ai-wrapper v1.0.3 h1:p7lc/U4dFltsIxAEeWeDNW4+8ovvlJvdb5pVBLcbKs8= github.com/Checkmarx/gen-ai-wrapper v1.0.3/go.mod h1:xwRLefezwNNnRGu1EjGS6wNiR9FVV/eP9D+oXwLViVM= -github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f h1:G1Cv5y6aHJqqTNguJh3pXlHbqF8+IE0RBzM1p1UF+B0= -github.com/Checkmarx/manifest-parser v0.1.3-0.20260608094502-6b5ebcc42e9f/go.mod h1:hh5FX5FdDieU8CKQEkged4hfOaSylpJzub8PRFXa4kA= +github.com/Checkmarx/manifest-parser v0.1.3 h1:cr+q7QkbkoCsoA5nQnv1/Pp23jnKWBePAwrcJNTk4x8= +github.com/Checkmarx/manifest-parser v0.1.3/go.mod h1:hh5FX5FdDieU8CKQEkged4hfOaSylpJzub8PRFXa4kA= github.com/Checkmarx/secret-detection v1.2.1 h1:Hzpz74dcN/L14Q86ARvPOZpKBnERzGTpy6sl1RXKOTo= github.com/Checkmarx/secret-detection v1.2.1/go.mod h1:kbXbtIQisDdB/TNuV7r9HPclEznUyBHLQ5yr7IX7vBQ= github.com/CycloneDX/cyclonedx-go v0.10.0 h1:7xyklU7YD+CUyGzSFIARG18NYLsKVn4QFg04qSsu+7Y= From 9e755cabdcadc107cff2e87391495ccf41bbfd43 Mon Sep 17 00:00:00 2001 From: atishj99 Date: Tue, 30 Jun 2026 14:53:16 +0530 Subject: [PATCH 06/20] trivy fixes --- go.mod | 8 ++++---- go.sum | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index ace9c1591..dc8361b60 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/checkmarx/ast-cli -go 1.26.3 +go 1.26.4 require ( github.com/Checkmarx/containers-resolver v1.0.34 @@ -27,7 +27,7 @@ require ( github.com/stretchr/testify v1.11.1 github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 github.com/xeipuuv/gojsonschema v1.2.0 - golang.org/x/crypto v0.50.0 + golang.org/x/crypto v0.51.0 golang.org/x/sync v0.20.0 golang.org/x/text v0.37.0 google.golang.org/grpc v1.80.0 @@ -290,9 +290,9 @@ require ( go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect golang.org/x/mod v0.35.0 // indirect - golang.org/x/net v0.53.1-0.20260416132847-8c4c965e0284 // indirect + golang.org/x/net v0.55.0 // indirect golang.org/x/oauth2 v0.36.0 // indirect - golang.org/x/sys v0.44.0 // indirect + golang.org/x/sys v0.45.0 // indirect golang.org/x/term v0.43.0 // indirect golang.org/x/time v0.15.0 // indirect golang.org/x/tools v0.44.0 // indirect diff --git a/go.sum b/go.sum index 236d15b7b..3bcfb8bbd 100644 --- a/go.sum +++ b/go.sum @@ -1104,8 +1104,8 @@ golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI= -golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q= +golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI= +golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1192,8 +1192,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.53.1-0.20260416132847-8c4c965e0284 h1:1Cik9TO30xv+Uycc5dXzAct+LiGidZMVM1U4chCI6o4= -golang.org/x/net v0.53.1-0.20260416132847-8c4c965e0284/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs= +golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= +golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1303,8 +1303,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ= -golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= +golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From 13f8601ebb849d41371c4feb40781f002200b0a6 Mon Sep 17 00:00:00 2001 From: atishj99 Date: Tue, 30 Jun 2026 17:11:30 +0530 Subject: [PATCH 07/20] Crypto vuln fixes --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index dc8361b60..04dbf0dec 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/stretchr/testify v1.11.1 github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 github.com/xeipuuv/gojsonschema v1.2.0 - golang.org/x/crypto v0.51.0 + golang.org/x/crypto v0.52.0 golang.org/x/sync v0.20.0 golang.org/x/text v0.37.0 google.golang.org/grpc v1.80.0 diff --git a/go.sum b/go.sum index 3bcfb8bbd..94aa7ba45 100644 --- a/go.sum +++ b/go.sum @@ -1104,8 +1104,8 @@ golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI= -golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8= +golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988= +golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= From 11fd91c6d2bf3f50f9c4d81e3cdf7b374cf58098 Mon Sep 17 00:00:00 2001 From: atishj99 Date: Tue, 30 Jun 2026 19:21:02 +0530 Subject: [PATCH 08/20] trivy fix for containerd --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 04dbf0dec..b8c3656e9 100644 --- a/go.mod +++ b/go.mod @@ -327,7 +327,7 @@ require ( sigs.k8s.io/yaml v1.6.0 // indirect ) -replace github.com/containerd/containerd => github.com/containerd/containerd v1.7.32 +replace github.com/containerd/containerd => github.com/containerd/containerd v1.7.33 replace github.com/containerd/containerd/v2 => github.com/containerd/containerd/v2 v2.1.5 diff --git a/go.sum b/go.sum index 94aa7ba45..2e5626914 100644 --- a/go.sum +++ b/go.sum @@ -251,8 +251,8 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/containerd/cgroups/v3 v3.1.3 h1:eUNflyMddm18+yrDmZPn3jI7C5hJ9ahABE5q6dyLYXQ= github.com/containerd/cgroups/v3 v3.1.3/go.mod h1:PKZ2AcWmSBsY/tJUVhtS/rluX0b1uq1GmPO1ElCmbOw= -github.com/containerd/containerd v1.7.32 h1:S54xuVcPxeLaYgaRABtpJ2VyVUVsy0IGf7qHBs+sbY8= -github.com/containerd/containerd v1.7.32/go.mod h1:jdwD6s/BhV4XVJGrvtziNPVA+83n66TwptVaPKprq4E= +github.com/containerd/containerd v1.7.33 h1:iAkYGC/ifR/V+0eR4iXWHNGYUF0DF2PmGV5iz4Irj5M= +github.com/containerd/containerd v1.7.33/go.mod h1:gSbSCVjPCdkfJCjyrzz7aRC+xFlqVbatNpfHfVCYGUM= github.com/containerd/containerd/api v1.9.0 h1:HZ/licowTRazus+wt9fM6r/9BQO7S0vD5lMcWspGIg0= github.com/containerd/containerd/api v1.9.0/go.mod h1:GhghKFmTR3hNtyznBoQ0EMWr9ju5AqHjcZPsSpTKutI= github.com/containerd/continuity v0.5.0 h1:7a85HZpCSs+1Zps0Ee3DPSuAWY+0SJM1JNM51nlEVDg= From 58ce5314fb62b97eccc2ea4475e88dda6bf7371a Mon Sep 17 00:00:00 2001 From: atishj99 Date: Wed, 1 Jul 2026 15:04:46 +0530 Subject: [PATCH 09/20] using echo pip install --- .github/workflows/ci-tests.yml | 2 +- .github/workflows/nightly-parallel.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index e9b47b4a2..a7cb81d95 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -50,7 +50,7 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Install pre-commit run: | - pip install pre-commit + pip install --index-url https://pypi.echohq.com/simple/ pre-commit pre-commit install - name: Go Integration test shell: bash diff --git a/.github/workflows/nightly-parallel.yml b/.github/workflows/nightly-parallel.yml index 6c24778b6..48359b2bb 100644 --- a/.github/workflows/nightly-parallel.yml +++ b/.github/workflows/nightly-parallel.yml @@ -259,7 +259,7 @@ jobs: - name: Install pre-commit if: matrix.needs_precommit == 'true' run: | - pip install pre-commit + pip install --index-url https://pypi.echohq.com/simple/ pre-commit pre-commit install - name: Start Squid proxy From 17039f45860d8fcfec658a4f69ea4f80e37ec19b Mon Sep 17 00:00:00 2001 From: atishj99 Date: Wed, 1 Jul 2026 16:02:55 +0530 Subject: [PATCH 10/20] added extra index flag --- .github/workflows/ci-tests.yml | 2 +- .github/workflows/nightly-parallel.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a7cb81d95..704ae60e5 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -50,7 +50,7 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Install pre-commit run: | - pip install --index-url https://pypi.echohq.com/simple/ pre-commit + pip install --index-url https://pypi.echohq.com/simple/ --extra-index-url https://pypi.org/simple/ pre-commit pre-commit install - name: Go Integration test shell: bash diff --git a/.github/workflows/nightly-parallel.yml b/.github/workflows/nightly-parallel.yml index 48359b2bb..7f261bcd7 100644 --- a/.github/workflows/nightly-parallel.yml +++ b/.github/workflows/nightly-parallel.yml @@ -259,7 +259,7 @@ jobs: - name: Install pre-commit if: matrix.needs_precommit == 'true' run: | - pip install --index-url https://pypi.echohq.com/simple/ pre-commit + pip install --index-url https://pypi.echohq.com/simple/ --extra-index-url https://pypi.org/simple/ pre-commit pre-commit install - name: Start Squid proxy From b6bd2a2171a0c37ae7d4e511eaa820d3b9263c1d Mon Sep 17 00:00:00 2001 From: atishj99 Date: Wed, 1 Jul 2026 16:14:54 +0530 Subject: [PATCH 11/20] added trivy ignore file --- .github/workflows/ci-tests.yml | 2 +- .github/workflows/nightly-parallel.yml | 2 +- .trivyignore | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .trivyignore diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 704ae60e5..0c345b088 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -50,7 +50,7 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Install pre-commit run: | - pip install --index-url https://pypi.echohq.com/simple/ --extra-index-url https://pypi.org/simple/ pre-commit + pip install --index-url https://pypi.echohq.com/simple --extra-index-url https://pypi.org/simple pre-commit pre-commit install - name: Go Integration test shell: bash diff --git a/.github/workflows/nightly-parallel.yml b/.github/workflows/nightly-parallel.yml index 7f261bcd7..a0fc33e04 100644 --- a/.github/workflows/nightly-parallel.yml +++ b/.github/workflows/nightly-parallel.yml @@ -259,7 +259,7 @@ jobs: - name: Install pre-commit if: matrix.needs_precommit == 'true' run: | - pip install --index-url https://pypi.echohq.com/simple/ --extra-index-url https://pypi.org/simple/ pre-commit + pip install --index-url https://pypi.echohq.com/simple --extra-index-url https://pypi.org/simple pre-commit pre-commit install - name: Start Squid proxy diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 000000000..59933aa1d --- /dev/null +++ b/.trivyignore @@ -0,0 +1,22 @@ +# Trivy Ignore File +# These vulnerabilities are accepted risks or false positives in the build + +# CVE-2026-33481 (MEDIUM): Syft improper temporary file cleanup +# Library: github.com/anchore/syft v1.21.0 +# Status: Fixed in v1.42.3, but only affects SBOM generation +# Risk: Low - temporary file cleanup only affects scanning operations, not CLI runtime +CVE-2026-33481 exp:2026-12-31 + +# CVE-2026-34040 (HIGH): Moby Authorization bypass vulnerability +# Library: github.com/docker/docker v28.0.3+incompatible +# Status: Unfixed, fix available in v29.3.1 +# Risk: Accepted - Docker SDK is only used for container image scanning +# Impact: Only relevant when used as a container registry client +CVE-2026-34040 exp:2026-12-31 + +# CVE-2026-33997 (MEDIUM): Moby Privilege validation bypass during plugin installation +# Library: github.com/docker/docker v28.0.3+incompatible +# Status: Unfixed +# Risk: Accepted - CLI does not use Docker plugin functionality +# Impact: Only affects Docker daemon with untrusted plugins +CVE-2026-33997 exp:2026-12-31 From f7f557ee329e76f276ca48ec86aead822ee9f06c Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Wed, 1 Jul 2026 20:29:14 +0530 Subject: [PATCH 12/20] Updated docker image --- .github/workflows/ci-tests.yml | 2 +- .trivyignore | 22 ---------------------- Dockerfile | 2 +- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 .trivyignore diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 0c345b088..9cc5ba983 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -50,7 +50,7 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Install pre-commit run: | - pip install --index-url https://pypi.echohq.com/simple --extra-index-url https://pypi.org/simple pre-commit + pip install --index-url https://pypi.echohq.com/simple pre-commit pre-commit install - name: Go Integration test shell: bash diff --git a/.trivyignore b/.trivyignore deleted file mode 100644 index 59933aa1d..000000000 --- a/.trivyignore +++ /dev/null @@ -1,22 +0,0 @@ -# Trivy Ignore File -# These vulnerabilities are accepted risks or false positives in the build - -# CVE-2026-33481 (MEDIUM): Syft improper temporary file cleanup -# Library: github.com/anchore/syft v1.21.0 -# Status: Fixed in v1.42.3, but only affects SBOM generation -# Risk: Low - temporary file cleanup only affects scanning operations, not CLI runtime -CVE-2026-33481 exp:2026-12-31 - -# CVE-2026-34040 (HIGH): Moby Authorization bypass vulnerability -# Library: github.com/docker/docker v28.0.3+incompatible -# Status: Unfixed, fix available in v29.3.1 -# Risk: Accepted - Docker SDK is only used for container image scanning -# Impact: Only relevant when used as a container registry client -CVE-2026-34040 exp:2026-12-31 - -# CVE-2026-33997 (MEDIUM): Moby Privilege validation bypass during plugin installation -# Library: github.com/docker/docker v28.0.3+incompatible -# Status: Unfixed -# Risk: Accepted - CLI does not use Docker plugin functionality -# Impact: Only affects Docker daemon with untrusted plugins -CVE-2026-33997 exp:2026-12-31 diff --git a/Dockerfile b/Dockerfile index 495483dc0..76c3b66da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM checkmarx/bash:5.3-r12-02a1aad732e7ab@sha256:02a1aad732e7ab0659b212d83c2a0bb548d9d8bdec23336f6c0b44f8f3435cb8 +FROM checkmarx/bash:5.3-r12-fd4144660b936c@sha256:fd4144660b936cfa93aaf980ff81eaa13aff00cb420e4b115f39fc251bfd86e1 USER nonroot COPY cx /app/bin/cx From 37869869ae658dcc8bbf8e74e1d2a1ec25b17f9a Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Wed, 1 Jul 2026 20:40:25 +0530 Subject: [PATCH 13/20] Updated trivy Ignore file --- .trivyignore | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .trivyignore diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 000000000..59933aa1d --- /dev/null +++ b/.trivyignore @@ -0,0 +1,22 @@ +# Trivy Ignore File +# These vulnerabilities are accepted risks or false positives in the build + +# CVE-2026-33481 (MEDIUM): Syft improper temporary file cleanup +# Library: github.com/anchore/syft v1.21.0 +# Status: Fixed in v1.42.3, but only affects SBOM generation +# Risk: Low - temporary file cleanup only affects scanning operations, not CLI runtime +CVE-2026-33481 exp:2026-12-31 + +# CVE-2026-34040 (HIGH): Moby Authorization bypass vulnerability +# Library: github.com/docker/docker v28.0.3+incompatible +# Status: Unfixed, fix available in v29.3.1 +# Risk: Accepted - Docker SDK is only used for container image scanning +# Impact: Only relevant when used as a container registry client +CVE-2026-34040 exp:2026-12-31 + +# CVE-2026-33997 (MEDIUM): Moby Privilege validation bypass during plugin installation +# Library: github.com/docker/docker v28.0.3+incompatible +# Status: Unfixed +# Risk: Accepted - CLI does not use Docker plugin functionality +# Impact: Only affects Docker daemon with untrusted plugins +CVE-2026-33997 exp:2026-12-31 From e14a1d1b8965088409effbb57664298c55cda56a Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Wed, 1 Jul 2026 22:30:11 +0530 Subject: [PATCH 14/20] workflow changes --- .github/workflows/ci-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 9cc5ba983..3cab76577 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -50,8 +50,8 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Install pre-commit run: | - pip install --index-url https://pypi.echohq.com/simple pre-commit - pre-commit install + pip config set global.index-url https://__token__:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip install pre-commit - name: Go Integration test shell: bash env: From 4b68634aaa4d79e54d03e69e325ceb6226838d0d Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Wed, 1 Jul 2026 22:56:16 +0530 Subject: [PATCH 15/20] Update ci-tests --- .github/workflows/ci-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 3cab76577..a3bbde415 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -44,14 +44,14 @@ jobs: with: go-version-file: go.mod - run: go version + - name: Install pre-commit + run: | + pip config set global.extra-index-url https://__token__:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip install pre-commit==4.6.0 - name: Go Build run: go build -o ./bin/cx ./cmd - name: Install gocovmerge run: go install github.com/wadey/gocovmerge@latest - - name: Install pre-commit - run: | - pip config set global.index-url https://__token__:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple - pip install pre-commit - name: Go Integration test shell: bash env: From b81f9fdaa5e1878475cbabd06a7e2576778a6a05 Mon Sep 17 00:00:00 2001 From: Rakesh Kadu <141014001+cx-rakesh-kadu@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:29:30 +0530 Subject: [PATCH 16/20] Updated echo registry for pip --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a3bbde415..870b18ab6 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -46,7 +46,7 @@ jobs: - run: go version - name: Install pre-commit run: | - pip config set global.extra-index-url https://__token__:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip config set global.index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple pip install pre-commit==4.6.0 - name: Go Build run: go build -o ./bin/cx ./cmd From a11fced90e3335897de5d8d94540b007171b3191 Mon Sep 17 00:00:00 2001 From: Rakesh Kadu <141014001+cx-rakesh-kadu@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:44:31 +0530 Subject: [PATCH 17/20] Updated echo registry for pip --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 870b18ab6..6137ffb84 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -46,7 +46,7 @@ jobs: - run: go version - name: Install pre-commit run: | - pip config set global.index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip config set global.index-url https://${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple pip install pre-commit==4.6.0 - name: Go Build run: go build -o ./bin/cx ./cmd From bf738413a2d7fca01a9d21ba2a1d9f5b0b4d4392 Mon Sep 17 00:00:00 2001 From: Rakesh Kadu <141014001+cx-rakesh-kadu@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:48:54 +0530 Subject: [PATCH 18/20] pip install pre-commit --- .github/workflows/ci-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 6137ffb84..44c6985f6 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -46,8 +46,8 @@ jobs: - run: go version - name: Install pre-commit run: | - pip config set global.index-url https://${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple - pip install pre-commit==4.6.0 + pip config set global.index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip install pre-commit==4.6.0 --index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple - name: Go Build run: go build -o ./bin/cx ./cmd - name: Install gocovmerge From dbaf06a1c7608d7a029fb343515ed4447994b9ef Mon Sep 17 00:00:00 2001 From: Rakesh Kadu <141014001+cx-rakesh-kadu@users.noreply.github.com> Date: Thu, 2 Jul 2026 10:07:52 +0530 Subject: [PATCH 19/20] pip install pre-commit==4.6.0 --- .github/workflows/ci-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 44c6985f6..4cc00d176 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -44,10 +44,13 @@ jobs: with: go-version-file: go.mod - run: go version + - name: Check Python version + run: python --version - name: Install pre-commit run: | pip config set global.index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple - pip install pre-commit==4.6.0 --index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip index versions pre-commit + pip install pre-commit==4.6.0 - name: Go Build run: go build -o ./bin/cx ./cmd - name: Install gocovmerge From 47192d966c7ba3bc2be340f8a4f56c8fd149aa95 Mon Sep 17 00:00:00 2001 From: Rakesh Kadu <141014001+cx-rakesh-kadu@users.noreply.github.com> Date: Thu, 2 Jul 2026 10:11:58 +0530 Subject: [PATCH 20/20] SYPHER_ECHO_ACCESS_KEY --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 4cc00d176..c9694cd61 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -48,7 +48,7 @@ jobs: run: python --version - name: Install pre-commit run: | - pip config set global.index-url https://:${{ secrets.ECHO_ACCESS_KEY }}@pypi.echohq.com/simple + pip config set global.index-url https://:${{ secrets.SYPHER_ECHO_ACCESS_KEY }}@pypi.echohq.com/simple pip index versions pre-commit pip install pre-commit==4.6.0 - name: Go Build