-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Better explain how to exclude paths for compiled languages #8689
Comments
Thanks for the suggestion; I have passed this to the docs team to look at improving that documentation. |
@rlsf while the docs team is working on that, this appears to be a usable (but clunky) workaround: https://josh-ops.com/posts/github-codeql-ignore-files/ |
Has the documentation been improved? |
The relevant code scanning documentation is at https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#configuring-code-scanning-for-compiled-languages -- in short, for a compiled language, use a custom build command that only builds the files you're interested in analysing. For the CLI, that corresponds to using the |
I am also struggling with the documentation on how to exclude files from being scanned by CodeQL. Seems the documentation is not properly updated yet. Having such a simple argument |
This looks like a flaw. For example, I am currently facing an issue where CodeQL reports problems in submodules. Obviously, I can't avoid using submodules for building the code (in my case), but I don't want to receive analysis for them. There should be a way to disable warnings for specific files and folders. If this feature is not implemented, then it is a flaw. |
the current explanation in github's FAQ says:
however, there's no example or explanation how to actually do it.
inside codeql's runner there is an exclude configuration for java code:
however, i couldn't find a way to send this configuration to codeql workflow.
The text was updated successfully, but these errors were encountered: