File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,15 @@ def setup():
3939 get_latest_codeql (args )
4040 logger .info ("End setup..." )
4141def get_latest_codeql (args ):
42- # what version do we have?
4342 codeql = CodeQL (CODEQL_HOME )
44- current_installed_version = codeql .get_current_local_version ()
45- logger .info (f'Current codeql version: { current_installed_version } ' )
46- latest_online_version = codeql .get_latest_codeql_github_version ()
47- if current_installed_version != latest_online_version .title and args .check_latest_cli :
48- # we got a newer version online, download and install it
49- codeql .download_and_install_latest_codeql (latest_online_version )
43+ # what version do we have?
44+ if args .check_latest_cli :
45+ current_installed_version = codeql .get_current_local_version ()
46+ logger .info (f'Current codeql version: { current_installed_version } ' )
47+ latest_online_version = codeql .get_latest_codeql_github_version ()
48+ if current_installed_version != latest_online_version .title :
49+ # we got a newer version online, download and install it
50+ codeql .download_and_install_latest_codeql (latest_online_version )
5051 # get the latest queries regardless (TODO: Optimize by storing and checking the last commit hash?)
5152 if args .check_latest_queries :
5253 codeql .download_and_install_latest_codeql_queries ()
You can’t perform that action at this time.
0 commit comments