-
Hi, Does anyone know how to make the CodeQL Code scanning alerts action by default run python 3, preferably 3.7, by default and not install dependencies using python2? See https://github.com/MirahezeBots/MirahezeBots/pull/319/checks?check_run_id=1446587420#step:3:64 It’s kind of ironic our CI is testing on a version we don’t support!!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi! The link you have provided points to the log of installing pip for python 2, not the install of the dependencies. At that point in time, the CodeQL action doesn’t know the python version, so it installs the tools for both python 2 and python 3. When the action tries to guess the python version it defaults to python 3 https://github.com/MirahezeBots/MirahezeBots/pull/319/checks?check_run_id=1446587420#step:3:239 By default the python 3 version available in the runners is 3.6.9, but you can change it by using the actions/setup-python |
Beta Was this translation helpful? Give feedback.
-
I’ve fixed it. Thanks for the advice. |
Beta Was this translation helpful? Give feedback.
Hi!
The link you have provided points to the log of installing pip for python 2, not the install of the dependencies. At that point in time, the CodeQL action doesn’t know the python version, so it installs the tools for both python 2 and python 3.
When the action tries to guess the python version it defaults to python 3 https://github.com/MirahezeBots/MirahezeBots/pull/319/checks?check_run_id=1446587420#step:3:239
By default the python 3 version available in the runners is 3.6.9, but you can change it by using the actions/setup-python