Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cli/actionlint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/cli/compile_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -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)
}
}
Expand Down
Loading