diff --git a/.golangci.yml b/.golangci.yml index 622642a5..f097269c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -34,7 +34,7 @@ linters: - goprintffuncname - gosec - gosimple - # - govet + - govet - ineffassign # - lll - misspell diff --git a/checks/frozen_deps.go b/checks/frozen_deps.go index 23398a02..6e13e02e 100644 --- a/checks/frozen_deps.go +++ b/checks/frozen_deps.go @@ -145,15 +145,15 @@ func validateGitHubActionWorkflow(path string, content []byte, logf func(s strin // We only retrieve what we need for logging. // Github workflows format: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions type GitHubActionWorkflowConfig struct { - Name string `yaml:name` Jobs map[string]struct { - Name string `yaml:name` + Name string `yaml:"name"` Steps []struct { - Name string `yaml:name` - Id string `yaml:id` - Uses string `yaml:uses` + Name string `yaml:"name"` + Id string `yaml:"id"` + Uses string `yaml:"uses"` } } + Name string `yaml:"name"` } if len(content) == 0 {