diff --git a/internal/makefile/makefile.go b/internal/makefile/makefile.go index a12db04..84541b2 100644 --- a/internal/makefile/makefile.go +++ b/internal/makefile/makefile.go @@ -346,9 +346,9 @@ endif ignoreOptions := []string{} if cfg.GitHubWorkflow != nil { - for idx, pattern := range cfg.GitHubWorkflow.License.IgnorePatterns { + for _, pattern := range cfg.GitHubWorkflow.License.IgnorePatterns { //quoting avoids glob expansion - ignoreOptions[idx] = fmt.Sprintf("-ignore %q", pattern) + ignoreOptions = append(ignoreOptions, fmt.Sprintf("-ignore %q", pattern)) } }