CI(CodeQL): Improve run times and add concurrency groups #3361
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During the last week or so, I explored many options and configuration possibilities to refresh our CodeQL jobs, starting from a new fresh advanced config and porting the new suggested practices one by one. This is the result of the most appropriate possibility.
CodeQL scanning for python doesn't need to have grass built to work. This wasn't the case before when CodeQL was introduced, lots have changed. It seems it is a static analysis, but still needs to see the code for the python dependencies. So, I didn't build grass for python language scans.Edit: I completly removed Python dependencies after the extra reference I found in 4, and retesting it out.c-cpp
, others being an alias..github/codeql/codeql-config.yml
, but I didn't include them in this PR. It doesn't really change, C/C++ doesn't support it anyways, and without buildI also explored the possibility of running a single job that scans both languages, but after figuring out that building grass or not didn't seem to impact python scanning and after more exploration, then computing the run times vs runner usage didn't make it advantageous, especially with the MAKEFLAGS set.