-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to load Java property files for CodeQL analysis #4500
Comments
I should point out that I've tried the obvious variant of the |
Similar to #3945 (comment), it appears there is an environment variable Additionally the |
@Marcono1234 thanks for this and for pointing out those useful references. I'm now able to confirm that with the line:
I can observe that property files are being indexed into my CodeQL databases. From my PoV, this issue is now resolved. |
No problem, though maybe it would be good to create a new issue for including certain Properties files? For #3945, |
How to load Java property files for CodeQL analysis
I'm using CodeQL CLI version 1.25.0 to analyse a Java Spring project that is built using Gradle 6.5.1.
When creating the query database, I'm able to create it such that both main and test Java files are present.
However, the property files in
main/resources
andtest/resources
fail to be included in the query database - I'm able to confirm this by:source_db/src.zip
)from JavaProperty prop select prop
to observe no results are returned.I've attempted to load property files by specifying the relevant Spring active profile (e.g. by passing
-Dspring.active.profile=XXX
to the./gradlew clean compile
command as passed to CodeQL), but have not changed my outcomes.Any pointers, tips, ideas, etc. as to how to get Spring property files loaded into CodeQL for analysis are greatly appreciated.
The text was updated successfully, but these errors were encountered: