Refactor safe-outputs handler assembly - #51229
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Refactors safe-output handler assembly into focused helpers while preserving behavior and output mappings.
Changes:
- Extracts handler setup, SARIF, artifact, and custom-action assembly helpers.
- Separates shared, conditional, and named output registration.
- Adds focused output-mapping tests.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/compiler_safe_outputs_job.go |
Decomposes safe-output handler assembly and output mapping. |
pkg/workflow/compiler_safe_outputs_job_test.go |
Tests handler-manager and named output mappings. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
|
@copilot Quick triage nudge for this PR. Please refresh the branch if needed, check for any unresolved reviewer feedback, run the Run: https://github.com/github/gh-aw/actions/runs/31225438989
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Branch is current with |
|
@copilot Quick triage nudge for this PR. Please refresh the branch if needed, check for any unresolved reviewer feedback, run the Run: https://github.com/github/gh-aw/actions/runs/31227649983
|
Branch is still current with |
TriageCategory: refactor | Risk: low | Score: 55/100
Recommended action: CI passing, focused change (3 files, +117/-119) refactoring safe-outputs handler assembly. Group with #51216 for a combined engine/compiler refactor review pass.
|
The function-length backlog includes the safe-outputs compiler, where handler setup, output mapping, SARIF handling, and custom actions were combined in a 223-line function.
Handler assembly
Output mappings
Coverage