Skip to content

How to make python 3(.7) default for CodeQL #25008

Answered by Daverlo
RhinosF1 asked this question in Actions
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants