diff --git a/checks/fileparser/github_workflow_test.go b/checks/fileparser/github_workflow_test.go index cf2912e4fc2..2c809467ac2 100644 --- a/checks/fileparser/github_workflow_test.go +++ b/checks/fileparser/github_workflow_test.go @@ -20,8 +20,8 @@ import ( "strings" "testing" + "github.com/google/go-cmp/cmp" "github.com/rhysd/actionlint" - "gotest.tools/assert/cmp" ) func TestGitHubWorkflowShell(t *testing.T) { @@ -142,7 +142,7 @@ func TestGitHubWorkflowShell(t *testing.T) { actualShells = append(actualShells, shell) } } - if !cmp.DeepEqual(tt.expectedShells, actualShells)().Success() { + if !cmp.Equal(tt.expectedShells, actualShells) { t.Errorf("%v: Got (%v) expected (%v)", tt.name, actualShells, tt.expectedShells) } }) diff --git a/go.mod b/go.mod index 5f6ec5f5506..4b93be7b75b 100644 --- a/go.mod +++ b/go.mod @@ -2,11 +2,6 @@ module github.com/ossf/scorecard/v4 go 1.19 -require ( - github.com/rhysd/actionlint v1.6.15 - gotest.tools v2.2.0+incompatible -) - require ( cloud.google.com/go/bigquery v1.55.0 cloud.google.com/go/monitoring v1.15.1 // indirect @@ -26,6 +21,7 @@ require ( github.com/moby/buildkit v0.12.2 github.com/olekukonko/tablewriter v0.0.5 github.com/onsi/gomega v1.27.10 + github.com/rhysd/actionlint v1.6.15 github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a github.com/sirupsen/logrus v1.9.3