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}"
Discover more from Coursity
Subscribe to get the latest posts sent to your email.