Skip to content

Fix event.json not being copied to /github/workflow in kubernetes-nov…#287

Merged
nikola-jokic merged 1 commit intoactions:mainfrom
zarko-a:zarko-a/fix-missing-event-json
Nov 26, 2025
Merged

Fix event.json not being copied to /github/workflow in kubernetes-nov…#287
nikola-jokic merged 1 commit intoactions:mainfrom
zarko-a:zarko-a/fix-missing-event-json

Conversation

@zarko-a
Copy link
Copy Markdown
Contributor

@zarko-a zarko-a commented Nov 25, 2025

Fixes #286

…olume mode

In run-script-step, the _temp directory was being copied to the workflow pod,
but the _github_home and _github_workflow directories were not being moved
from their temporary location to the /github directory structure where they
are expected by GitHub Actions.

This caused event.json to be missing at /github/workflow/event.json, breaking
actions that depend on GITHUB_EVENT_PATH.

The fix adds a setup step that copies _github_home and _github_workflow from
/__w/_temp/ to /github/ after copying the temp directory to the pod, matching
the behavior of run-container-step and prepareJobScript.

Uses cp -r instead of symlinks to avoid symlink validation errors when copying
files back from the pod to the runner.
@zarko-a zarko-a requested review from a team and nikola-jokic as code owners November 25, 2025 22:59
Copy link
Copy Markdown
Collaborator

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

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

LGTM Than you!

@nikola-jokic nikola-jokic merged commit 3f829ee into actions:main Nov 26, 2025
5 checks passed
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.

kubernetes-novolume mode doesn't copy or the event.json to the GITHUB_EVENT_PATH

2 participants