You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Bring safe_outputs_validation.go under the 300-line hard limit #26439
pkg/workflow/safe_outputs_validation.go is 358 lines (19% over the 300-line hard limit in AGENTS.md). The file already has a companion safe_outputs_validation_config.go. The validateSafeOutputsMax function (~93 lines) handles a distinct sub-domain (max value validation) that can be extracted independently.
Objective
Extract max-value validation functions into a dedicated file to bring safe_outputs_validation.go under the hard limit.
Steps
Create pkg/workflow/safe_outputs_max_validation.go (same workflow package) and move these functions:
validateSafeOutputsMax
isInvalidMaxValue
Optionally also: validateSafeOutputsAllowWorkflows (if needed to get under 300 lines)
Keep in safe_outputs_validation.go:
validateSafeOutputsAllowedDomains
validateSafeOutputsTarget
validateTargetValue
isGitHubExpression
Verify safe_outputs_validation.go is under 300 lines
Run make fmt && make lint && go test -run ".*SafeOutput.*|.*safeOutput.*" ./pkg/workflow/
Acceptance Criteria
pkg/workflow/safe_outputs_validation.go is under 300 lines after the refactor
New file pkg/workflow/safe_outputs_max_validation.go created with validateSafeOutputsMax and isInvalidMaxValue (at minimum)
No behaviour changes — pure file reorganization within the workflow package
Activity
github-actions commentedon Apr 16, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot coding agent.
The Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪