actions / actions/actions-runner-controller

Missing /home/runner/.local/bin to /etc/environment PATH in ubuntu 22.04

Open
#2,540 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Go
Stars
6.5k
Forks
1.5k
Avg merge
2d 2h
Merged PRs (30d)
27

Description

Checks
Controller Version

v0.26.0

Helm Chart Version

0.21.1

CertManager Version

No response

Deployment Method

Helm

cert-manager installation

Yes, my bug doesn't relate to this component.

Checks
  • This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
  • I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
  • My actions-runner-controller version (v0.x.y) does support the feature
  • I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
  • I've migrated to the workflow job webhook event (if you using webhook driven scaling)
Resource Definitions
N/A the problem is not related to Kubernetes
To Reproduce
docker run -it --rm docker.io/summerwind/actions-runner:v2.303.0-ubuntu-22.04 "cat /etc/environment"
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ImageOS=ubuntu22
Describe the bug

The ubuntu 20.04 image PATH includes /home/runner/.local/bon and so does the Github-hosted ubuntu-latest runner.
I think this is a regression that should be fixed.

Describe the expected behavior

docker run -it --rm docker.io/summerwind/actions-runner:v2.303.x-ubuntu-22.04 "cat /etc/environment"
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin
ImageOS=ubuntu22

Whole Controller Logs
N/A the problem is not related to the controller
Whole Runner Pod Logs
N/A the problem is not related to Kubernetes or runtime
Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Docker image used by docker.io/summerwind/actions-runner:v2.303.0-ubuntu-22.04 and reproduce the issue by reading /etc/environment. Compare its PATH with the Ubuntu 20.04 image and the expected value in the issue. Done means the Ubuntu 22.04 image includes /home/runner/.local/bin in /etc/environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, ubuntu
Domain
ci-cd, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.