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: 4 additions & 0 deletions pkg/workflow/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"time"

Expand Down Expand Up @@ -86,6 +87,9 @@ func (c *Compiler) CompileWorkflowData(workflowData *WorkflowData, markdownPath
lockFile = baseName + ".campaign.lock.yml"
}

// Sanitize the lock file path to prevent path traversal attacks
lockFile = filepath.Clean(lockFile)

log.Printf("Starting compilation: %s -> %s", markdownPath, lockFile)

// Validate expression safety - check that all GitHub Actions expressions are in the allowed list
Expand Down