Is your feature request related to a problem? Please describe.
The CodeQL workflow runs without any knowledge of whether or not cFS can be built this prevents a "fail-fast" approach to testing and results in wasted github actions cycles.
Describe the solution you'd like
Figure out how to make the CodeQL workflow not run when the main "build and test" job fails.
Describe alternatives you've considered
None
Additional context
This might require the workflow or repository "dispatch" actions.
If successful we can follow this pattern in submodules.