diff --git a/pkg/cli/actionlint.go b/pkg/cli/actionlint.go index ed43a40a89..ddbbdbdbb1 100644 --- a/pkg/cli/actionlint.go +++ b/pkg/cli/actionlint.go @@ -184,8 +184,8 @@ func getActionlintVersion() (string, error) { return version, nil } -// runActionlintOnFile runs the actionlint linter on one or more .lock.yml files using Docker -func runActionlintOnFile(lockFiles []string, verbose bool, strict bool) error { +// runActionlintOnFiles runs the actionlint linter on one or more .lock.yml files using Docker +func runActionlintOnFiles(lockFiles []string, verbose bool, strict bool) error { if len(lockFiles) == 0 { return nil } diff --git a/pkg/cli/compile_validation.go b/pkg/cli/compile_validation.go index ed646fdbcb..517776bb8b 100644 --- a/pkg/cli/compile_validation.go +++ b/pkg/cli/compile_validation.go @@ -20,7 +20,7 @@ func RunActionlintOnFiles(lockFiles []string, verbose bool, strict bool) error { if len(lockFiles) == 0 { return nil } - return runActionlintOnFile(lockFiles, verbose, strict) + return runActionlintOnFiles(lockFiles, verbose, strict) } // RunZizmorOnFiles runs zizmor on multiple lock files in a single batch @@ -113,7 +113,7 @@ func CompileWorkflowWithValidation(compiler *workflow.Compiler, filePath string, // Run actionlint on the generated lock file if requested // Note: For batch processing, use RunActionlintOnFiles instead if runActionlintPerFile { - if err := runActionlintOnFile([]string{lockFile}, verbose, strict); err != nil { + if err := runActionlintOnFiles([]string{lockFile}, verbose, strict); err != nil { return fmt.Errorf("actionlint linter failed: %w", err) } } @@ -181,7 +181,7 @@ func CompileWorkflowDataWithValidation(compiler *workflow.Compiler, workflowData // Run actionlint on the generated lock file if requested // Note: For batch processing, use RunActionlintOnFiles instead if runActionlintPerFile { - if err := runActionlintOnFile([]string{lockFile}, verbose, strict); err != nil { + if err := runActionlintOnFiles([]string{lockFile}, verbose, strict); err != nil { return fmt.Errorf("actionlint linter failed: %w", err) } }