This content originally appeared on DEV Community and was authored by Kishan B
Problem
Performing a simple git checkout using official checkout action fails in a legacy self hosted runner running amazon linux 2 because newer versions of nodejs(>= 20) requires a newer version of GLIBC which is not available in these operating systems.
Solution
Use bash to perform the checkout in the action code i.e
replace the line
- uses: actions/checkout@v3
with
- name: Checkout
run: |
git clone "https://github.com/${GITHUB_REPOSITORY}.git" "${GITHUB_WORKSPACE}"
This content originally appeared on DEV Community and was authored by Kishan B

Kishan B | Sciencx (2024-08-18T07:53:35+00:00) Checking out code using github action in legacy runner. Retrieved from https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.