-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration File Not Found #431
Configuration File Not Found #431
Comments
@ArielSAdamsNASA, maybe you already realised and that's why you closed this issue, but the log line |
@robertbrignull Thank you. I realized that after taking a closer look. I am still having issues with the configuration file working. A few months ago, I started using a configuration file for CodeQL that just contained the two security query suites such as security-extended. The configuration file worked correctly since running CodeQL with the new suites generated more code scanning alerts compared to the original run. I am now trying to disable all the default queries and run custom queries using |
It's worth noting that the suites like When you say "Then I added the security suites again to discover that the code scanning alerts did not change" do you mean the PR said it didn't introduce any alerts? I think what may have happened is that for the time while literally all queries were disabled the codeql workflow was not running successfully. Perhaps this is not helpful behaviour but I believe the workflow will fail if there are no queries to run, so then it wouldn't upload a SARIF file to close any existing alerts, and thus when you reintroduced the queries there weren't any new alerts because they never closed. If you link to your repo I can see if I can tell what happened. |
For clarification, on my local repo, I deleted all the code scanning alerts before making any changes. Then, I updated the configuration file that originally contained both the security query suites and removed them both. This workflow resulted in 84 alerts. I deleted all the code scanning alerts again and reverted the changes so the security suites are used in the configuration file. After the workflow ran, it resulted in 84 alerts which is the same amount as the previous workflow that excluded these suites. Both of these tests did not include the
I was theorizing this may be the case. So, after noticing that My tests are ran under the branch CodeQLCodingStandardTest. This is the latest CodeQL run that has Thank you for the help!! |
Thank you for the detailed explanation and the link. That was very helpful. Thankfully I think I see the problem. I can see that on your branch in your fork the code contains However the workflow looks like
which means it's always checking out the repository from I believe it should start working as you intended it if you either change that repository name in the |
Thank you! I was able to get the configuration file to identify the custom queries I added. Now I am stuck with CodeQL running the queries. I am using the JPL rules from CodeQL as custom queries. When running, I am getting errors on modules and types. For example:
I am using a qlpack.yml file as the documentation instructed. Currently it contains:
I assume it has something to do with libraryPathDependencies, but I am having a hard time understanding this concept. |
Please try changing the I think you can also omit the With these changes, your name: nasa-codeql-cpp
version: 0.0.0
libraryPathDependencies: codeql-cpp This follows the examples given for query packs containing custom queries, in the docs you're referring to: https://codeql.github.com/docs/codeql-cli/about-ql-packs/#ql-packs-for-custom-queries |
Thanks again! |
I was trying to disable default queries in a configuration file. After noticing that my configuration file is no longer affecting the CodeQL workflow as it normally did, I looked in the Initialize CodeQL log and discovered:
This also occurs in your most recent workflow in Run /./init and Print CodeQL Version: https://github.com/github/codeql-action/runs/2172716823?check_suite_focus=true
The text was updated successfully, but these errors were encountered: