Skip to content
Discussion options

You must be logged in to vote

Why does it requires a successful build (gradle / maven) to perform SAST checks ?

CodeQL intercepts the compiler calls (e.g. javac) to figure out which files are part of the project, and their dependencies (jar files). This provides CodeQL with the most accurate picture of which source files belong together and the libraries on which they depend.

Can builds be avoided / skipped in CodeQL and what is the recommendation ?

Not yet, but this is a feature we are working on for Java. This "buildless" mode is likely to work as good as the compiled mode for many projects. However, the "compiled" mode is sometimes better because it has access to the exact dependencies and can also analyse code…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rilussion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure GHAS Discussions related to GitHub Advanced Security Question Ask and answer questions about GitHub features and usage
2 participants