From 9c0e4a55f530cf04e1ba7a75415390cd7957d02f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 03:39:37 +0000 Subject: [PATCH 1/2] Initial plan From e57641d12a2d907d49985fe96b67585e3a288370 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 03:46:32 +0000 Subject: [PATCH 2/2] refactor: rename runActionlintOnFile to runActionlintOnFiles for clarity Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/actionlint.go | 4 ++-- pkg/cli/compile_validation.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/cli/actionlint.go b/pkg/cli/actionlint.go index ed43a40a89f..ddbbdbdbb1d 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 ed646fdbcb0..517776bb8b1 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) } }