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
5 changes: 5 additions & 0 deletions pkg/cli/zizmor.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func buildZizmorCommand(lockFiles []string) (cmd *exec.Cmd, relPaths []string, d
if err != nil {
return nil, nil, nil, fmt.Errorf("zizmor scanner image reference %q is invalid; expected a registry reference. Example: ghcr.io/owner/image:tag: %w", ZizmorImage, err)
}
for _, containerPath := range containerPaths {
if err := validateExecArgument(containerPath); err != nil {
return nil, nil, nil, fmt.Errorf("invalid zizmor scan path argument %q: %w", containerPath, err)
}
}
dockerArgs = zizmorDockerArgs(zizmorImageRef, volumeMount, containerPaths)

// #nosec G204 -- dockerPath is resolved from the allowlisted executable name "docker" via
Expand Down