Skip to content

[plan] Split compiler_safe_outputs_config.go by handler group #26265

@github-actions

Description

@github-actions

Objective

Split pkg/workflow/compiler_safe_outputs_config.go (1,035 lines) into focused files by separating builder infrastructure from handler implementations.

Context

Discussion: #26221

This file generates the GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG env variable consumed by the JavaScript safe-outputs runner. It mixes builder infrastructure, individual handler config functions, and the top-level orchestrator.

Approach

  1. Move the handlerConfigBuilder struct and all its methods to compiler_safe_outputs_builder.go
  2. Move individual handler config generator functions (issues, PRs, comments, discussions, etc.) to compiler_safe_outputs_handlers.go
  3. Keep the top-level orchestrator and GenerateSafeOutputsHandlerConfig in the original file

Files to Modify

  • Split: pkg/workflow/compiler_safe_outputs_config.go
  • Create: pkg/workflow/compiler_safe_outputs_builder.go
  • Create: pkg/workflow/compiler_safe_outputs_handlers.go

Acceptance Criteria

  • Original compiler_safe_outputs_config.go is ≤ 300 lines
  • Each new file is ≤ 300 lines
  • make build && make test-unit pass without errors
  • make fmt && make lint pass without errors

Generated by Plan Command for issue #discussion #26221 · ● 150.1K ·

  • expires on Apr 16, 2026, 5:18 PM UTC

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions