terraform-compliance / github_action

Github Action of terraform-compliance
MIT License
26 stars 6 forks source link

Install python3.x if runner OS is Ubuntu24 #8

Open rslotte opened 4 days ago

rslotte commented 4 days ago

Github are currently in the process of rolling out Ubuntu 24.x as the new ubuntu-latest OS.

The Ubuntu 24.x runner image seems to have a broken Python installation where pip packages can't be installed system-wide, see: https://github.com/actions/runner-images/issues/10636#issuecomment-2377530635

This PR alleviates the issue by installing Python3.x if the runner ImageOS == Ubuntu24.