I was able to use multiple configuration files for CodeQL Actions in a parent module as seen here: https://github.com/nasa/cFS/pull/254. When using the same logic and files in a submodule, CodeQL would throw an error stating “The configuration file “/home/runner/work/cFE/cFE/.github/codeql/codeql-security.yml” does not exist”. The only changes I made was renaming that same file to codeql-config.yml and it worked with no errors. The submodule PR is seen here: Fix #1512, Add Coding Standard Rules in CodeQL by ArielSAdamsNASA · Pull Request #1513 · nasa/cFE · GitHub.
My questions are:
- Can multiple configuration files be used in submodules?
- Why does the submodule require the configuration file to be named codeql-config.yml?
- Could you provide a solution to use two configuration files with unique names in the submodule, cFE?