[v2 of the CodeQL action is being deprecated](https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/), we should look to upgrade to v3.
v2 of the CodeQL action is being deprecated, we should look to upgrade to v3.