Skip to content

Mount /github/workflow to docker action pods#137

Merged
nikola-jokic merged 2 commits intoactions:mainfrom
katarzynainit:feature/mount_workflow_path_to_docker_action_pods
Mar 14, 2024
Merged

Mount /github/workflow to docker action pods#137
nikola-jokic merged 2 commits intoactions:mainfrom
katarzynainit:feature/mount_workflow_path_to_docker_action_pods

Conversation

@katarzynainit
Copy link
Copy Markdown
Contributor

@katarzynainit katarzynainit commented Feb 26, 2024

/github/workflow is set via env GITHUB_EVENT_PATH also in docker actions.
Such path is mount in container jobs pods, and should be(?) mount in similar fashion in other child pods (in this case docker action pods), especially that some docker actions from marketplace, use this path.

Having it inconsistent for container job pod and for docker action pod, makes it impossible to use with ACTIONS_RUNNER_CONTAINER_HOOK_TEMPLATE and mount via extension, which is shared for both - it will work for docker action pods, but will fail for container job pod (duplicate mount point).

Adding it as default mount seems the only option to be able to properly utilize this ENV (and events in general).

@katarzynainit katarzynainit requested review from a team as code owners February 26, 2024 15:56
@katarzynainit katarzynainit force-pushed the feature/mount_workflow_path_to_docker_action_pods branch from 0eba66a to da33cec Compare February 27, 2024 10:53
@luka5
Copy link
Copy Markdown

luka5 commented Mar 12, 2024

Thanks for that PR. Trying to run the docker container action super-linter action in v5 with the actions runner controller in container mode kubernetes lead me here. It fails with /action/lib/linter.sh: line 550: /github/workflow/event.json: No such file or directory. I expect this fix to resolve that issue.

@luka5
Copy link
Copy Markdown

luka5 commented Mar 14, 2024

What do you think @nikola-jokic , does this sound like a reasonable change? Is there a reason, why it is different for jobContainer right now?

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.

Great catch, LGTM

@nikola-jokic nikola-jokic merged commit 99efdec into actions:main Mar 14, 2024
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