Skip to content
Merged
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/add_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ func addWorkflowWithTracking(workflow *WorkflowSpec, number int, verbose bool, e
}
}

// Write the file
if err := os.WriteFile(destFile, []byte(content), 0644); err != nil {
// Write the file with restrictive permissions (0600) to follow security best practices
if err := os.WriteFile(destFile, []byte(content), 0600); err != nil {
return fmt.Errorf("failed to write destination file '%s': %w", destFile, err)
}

Expand Down