How to lock version of preinstalled software in GitHub Actions Virtual Environments

Hi,
As we know, preinstalled software in GitHub actions virtual environment are updated weekly.

So I want to lock version of some specific software in order to not be updated.

For example I use Chrome for running visual regression test and the images that taken by Chrome 95 is really different than those ones taken by Chrome 96.

Moreover, Maybe on new version of Chrome my tests would go haywire!

You can’t. If you want to define your own environment, you need to use a self-hosted runner.

If your site breaks in an updated browser that means it’ll break for most users, too, so you’ll have to update quickly either way. So I’d say it’s a good thing if the tests help you notice the problem as soon as possible. :wink:

1 Like