Skip to content

Fix GitHub context inheritance in embedded execution contexts - #4799

Merged
TingluoHuang merged 1 commit into
mainfrom
users/tihuang/fixupdateflagfilepath
Oct 20, 2026
Merged

TingluoHuang merged 1 commit into
mainfrom
users/tihuang/fixupdateflagfilepath

Conversation

@TingluoHuang

Copy link
Copy Markdown
Member

Fix: https://github.com/github/c2c-actions-support/issues/6881

Behind FF: actions_fix_embedded_github_context

CreateEmbeddedChild will shallow copy github context from the current execution context instead of the root execution context.

@TingluoHuang
TingluoHuang requested a review from a team as a code owner October 20, 2026 19:30
Copilot AI balanced review requested due to automatic review settings October 20, 2026 19:30
Comment thread src/Runner.Worker/ExecutionContext.cs Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrow, preserves legacy behavior, and includes focused regression coverage with no identified blocking issues.

No open issues 🎉

What changed in this PR

Fixes embedded execution contexts to inherit a shallow copy of the containing context’s GitHub data behind actions_fix_embedded_github_context.

Changes:

  • Copies the containing context’s GitHub data when the flag is enabled.
  • Preserves legacy behavior and avoids redundant copying in composite actions.
  • Adds regression coverage for inheritance, isolation, nesting, and flag behavior.
File Description
src/​Test/​L0/​Worker/​ExecutionContextL0.cs Tests context inheritance and feature-flag behavior.
src/​Runner.Worker/​Handlers/​CompositeActionHandler.cs Skips redundant copying when enabled.
src/​Runner.Worker/​ExecutionContext.cs Adds feature-gated copying from the containing context.
src/​Runner.Common/​Constants.cs Declares the feature flag.

Review effort: Balanced

@TingluoHuang
TingluoHuang merged commit b6d10b5 into main Oct 20, 2026
13 checks passed
@TingluoHuang
TingluoHuang deleted the users/tihuang/fixupdateflagfilepath branch October 20, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants