### Summary `applyRuntimeOverrides` clones `Runtime` twice with the same override flow when `action-repo` or `action-version` is present. ### Locations - `pkg/workflow/runtime_overrides.go:73-93` - `pkg/workflow/runtime_overrides.go:101-125` ### Impact - Future `Runtime` field changes must be updated in two places. - The branch-specific clone blocks increase drift risk when override behavior changes. ### Recommendation Extract a helper such as `cloneRuntimeWithActionOverrides(base *Runtime, actionRepo, actionVersion string) *Runtime` and reuse it in both branches. Assignee: `@copilot` > [!WARNING] > <details> > <summary>Firewall blocked 1 domain</summary> > > The following domain was blocked by the firewall during workflow execution: > > - `awmgmcpg` >> To allow these domains, add them to the `network.allowed` list in your workflow frontmatter: > > ```yaml > network: > allowed: > - defaults > - "awmgmcpg" > ``` > > See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information. > > </details> > Generated by [🔍 Duplicate Code Detector](https://github.com/github/gh-aw/actions/runs/28642483480) · 4.06 AIC · ⌖ 2.91 AIC · ⊞ 33.6K · [◷](https://github.com/search?q=repo%3Agithub%2Fgh-aw+is%3Aissue+%22gh-aw-workflow-call-id%3A+github%2Fgh-aw%2Fduplicate-code-detector%22&type=issues) > - [x] expires <!-- gh-aw-expires: 2026-07-05T06:27:52.409Z --> on Jul 4, 2026, 10:27 PM UTC-08:00 <!-- gh-aw-agentic-workflow: Duplicate Code Detector, engine: codex, model: gpt-5.4, id: 28642483480, workflow_id: duplicate-code-detector, run: https://github.com/github/gh-aw/actions/runs/28642483480 --> <!-- gh-aw-workflow-id: duplicate-code-detector --> <!-- gh-aw-workflow-call-id: github/gh-aw/duplicate-code-detector -->
Summary
applyRuntimeOverridesclonesRuntimetwice with the same override flow whenaction-repooraction-versionis present.Locations
pkg/workflow/runtime_overrides.go:73-93pkg/workflow/runtime_overrides.go:101-125Impact
Runtimefield changes must be updated in two places.Recommendation
Extract a helper such as
cloneRuntimeWithActionOverrides(base *Runtime, actionRepo, actionVersion string) *Runtimeand reuse it in both branches.Assignee:
@copilotWarning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.