[PR #934] [CLOSED] fix: all copied files now owned by runner inside the container #1691

Closed
opened 2026-03-01 21:52:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/934
Author: @joeyparrish
Created: 12/20/2021
Status: Closed

Base: masterHead: fix-ownership


📝 Commits (3)

  • 14ef5ab fix: all copied files now owned by runner inside the container
  • a1f3306 feat: add option to specify container user
  • de11277 Merge container-user and chown fixes

📊 Changes

5 files changed (+11 additions, -2 deletions)

View changed files

📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+2 -0)
📝 pkg/container/docker_run.go (+3 -1)
📝 pkg/runner/run_context.go (+4 -1)
📝 pkg/runner/runner.go (+1 -0)

📄 Description

This recursively changes ownership of all copied files and other working folders to runner inside the container, or whichever user is specified by --container-user.

Fixes #398 both with and without --bind, thanks to the --container-user patch by @catthehacker:
github.com/catthehacker/act-fork@a4dd723dd1


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/934 **Author:** [@joeyparrish](https://github.com/joeyparrish) **Created:** 12/20/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-ownership` --- ### 📝 Commits (3) - [`14ef5ab`](https://github.com/nektos/act/commit/14ef5ab452dfd97c3ce664022d8aa28a7d5d4ad4) fix: all copied files now owned by runner inside the container - [`a1f3306`](https://github.com/nektos/act/commit/a1f3306c50819de15a5199ebeadac14650d0b7a7) feat: add option to specify container user - [`de11277`](https://github.com/nektos/act/commit/de11277e803635d3f887391c4b34d1f59ef97a91) Merge container-user and chown fixes ### 📊 Changes **5 files changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+2 -0) 📝 `pkg/container/docker_run.go` (+3 -1) 📝 `pkg/runner/run_context.go` (+4 -1) 📝 `pkg/runner/runner.go` (+1 -0) </details> ### 📄 Description This recursively changes ownership of all copied files and other working folders to `runner` inside the container, or whichever user is specified by `--container-user`. Fixes #398 both with and without `--bind`, thanks to the `--container-user` patch by @catthehacker: https://github.com/catthehacker/act-fork/commit/a4dd723dd182201a99db24a86a590d28749661ce --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:52:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1691
No description provided.