Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git is not installed in Ubuntu and Windows Runner images #3000

Closed
devarshgandhi opened this issue Nov 21, 2023 · 2 comments
Closed

git is not installed in Ubuntu and Windows Runner images #3000

devarshgandhi opened this issue Nov 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@devarshgandhi
Copy link

Describe the bug
git is not installed in Ubuntu 22.04 runner images.
http://ghcr.io/actions/actions-runner:latest

To Reproduce
Steps to reproduce the behavior:

  1. Launch a Runner
  2. Check if git is installed or not.
  3. Documentation describes git as installed tool

Expected behavior
Git should be installed in windows and Linux runners.

It's not listed in https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20231115.7 and our testing is implying that it's not installed. In fact, it seems like only Mac images have Git installed; I don't see them listed for Windows either.

Runner Version and Platform

Version of your runner?
https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20231115.7

OS of the machine running the runner? OSX/Windows/Linux/...
Linux
Windows

What's not working?

ls /usr/bin there is no git and if I whereis git , I don't find anything. That said, I was able to sudo apt install git --yes` and that worked, but would be nice to avoid that.

Job Log Output

If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

@devarshgandhi devarshgandhi added the bug Something isn't working label Nov 21, 2023
@devarshgandhi devarshgandhi changed the title git is not installed in Ubuntu and Windows Runners git is not installed in Ubuntu and Windows Runner images Nov 21, 2023
@kpocius
Copy link

kpocius commented Dec 2, 2023

I believe you might be mixing up two things: actions runner and runner images. This repo is for actions runner:

The runner is the application that runs a job from a GitHub Actions workflow.

Whereas you're linking to runner images repo, which contains the code used to create runner images, but the images aren't published publicly -- they are used in hosted GitHub runners, but if you want to run it yourself, you have to build it yourself.

However, I do agree, that it would be nice to have git installed by default in actions-runnerimages, especially since it's the default image for actions runner controller.

@ruvceskistefan
Copy link
Collaborator

Hey @devarshgandhi,
This issue does not seem to be a problem with the runner application, it concerns the GitHub actions platform more generally. Could you please post your feedback on the GitHub Community Support Forum which is actively monitored. Using the forum ensures that we route your problem to the correct team. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants