@@ -14,7 +14,7 @@ import (
1414 "github.com/go-git/go-git/v5"
1515 "github.com/go-git/go-git/v5/config"
1616 "github.com/go-git/go-git/v5/plumbing"
17- "github.com/google/go-github/v62 /github"
17+ "github.com/google/go-github/v81 /github"
1818 "github.com/grafana/k6registry"
1919 gitlab "gitlab.com/gitlab-org/api/client-go"
2020 "gopkg.in/yaml.v3"
@@ -100,14 +100,12 @@ func loadOne(ctx context.Context, ext *k6registry.Extension, lint bool, checks [
100100 }
101101
102102 complianceErrors := []error {}
103- for _ , version := range ext .Versions {
104- official := ext .Tier == k6registry .TierOfficial
105103
104+ for _ , version := range ext .Versions {
106105 compliance , err := checkCompliance (
107106 ctx ,
108107 ext .Module ,
109108 version ,
110- official ,
111109 checks ,
112110 repo .CloneURL ,
113111 int64 (repo .Timestamp ),
@@ -120,7 +118,7 @@ func loadOne(ctx context.Context, ext *k6registry.Extension, lint bool, checks [
120118
121119 for _ , check := range compliance .Checks {
122120 if ! check .Passed {
123- issues = append (issues , string ( check .ID ) )
121+ issues = append (issues , check .ID )
124122 }
125123 }
126124
@@ -147,6 +145,7 @@ func load(
147145 }
148146
149147 compliancedErrors := []error {}
148+
150149 for idx := range registry {
151150 ext := & registry [idx ]
152151
@@ -234,6 +233,7 @@ func moduleToOwnerAndName(module string) (string, string) {
234233 }
235234
236235 const maxParts = 4
236+
237237 parts := strings .SplitN (module , "/" , maxParts )
238238
239239 return parts [1 ], parts [2 ]
0 commit comments