I'm just getting started with CodeQL and we have a requirement from our devs to CodeQL sast scans as precommit hooks. I could not find any docs on how to set up CodeQL to make it run on my machine.
Additional context (to answer questions below):
- Devs will not have CodeQL installed on their laptops (windows and mac)
- I would like to also automate the installation of CodeQL CLI
- reading the docs, looks like I also need a CodeQL database- can that setup be automated?
In essense, I would like to make the install "almost" transparent to the devs with minimal effort needed on their side.