-
Notifications
You must be signed in to change notification settings - Fork 305
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
Analyze (csharp) No code found during the build #2082
Comments
Hi @Subharanjan2055,
There's nothing special about analysing a single file. If the project builds then we should be able to analyse it. Do you have a link to a workflow run where the |
Hi @MathiasVP , Before sending debugging log could you please confirm anything do i need to add to my workflow file . if yes please confirm once & what do i need to add ? |
Hi @MathiasVP The following are the logs that says the following : Finalizing csharp
|
@MathiasVP Any update ? |
You shouldn't need to do anything other than enable debugging as specified in https://github.blog/changelog/2022-08-01-debugging-codeql-analysis-in-code-scanning-made-easier-by-obtaining-detailed-logs-and-debugging-artifacts-from-the-codeql-action/. This will leave a zipped debug artifact attached to your GitHub Actions run. If you unzip that you'll find a "build-tracer.log" file in the "logs" directory. That's the magic sauce we need 🙂 The debug information is necessary for us to investigate whether CodeQL is "picking up" on the compiler invocations |
Hi ,
I have been trying to build & codescan one dotnet Console applications . Its building the applications but in the perform codeql analysis step its failing and throwing No source code was seen and extracted
Please note only one .cs file is available which is main source code file . How to perform codeql analysis for single file please let me know.
The text was updated successfully, but these errors were encountered: