Auto update CodeQL database

Hi, I’m trying to learn how to write my own CodeQL queries. But any time I change my source code, I need to create a new database codeql database create.
Is there any solution to auto update codeql database?

Hi @vovikhangcdv ,
great that you’re learning CodeQL!

Unfortunately, there is no solution to auto-update the CodeQL database.
There is a CodeQL action, so that you can get a database (and run the analysis) as part of a CI setup, but I don’t think that that’s very useful if you’re iterating (mostly) on the queries.
Maybe you can write a shell script that contains all the relevant commands?

1 Like