Closed Subharanjan2055 closed 8 months ago
Could you rerun the build with debugging enabled and provide the debug artifact that it produces, if you're happy to share your database and logs?
Hi @smowton ,
Can share only this .
Hi @smowton ,
Can share only this .
Run github/codeql-action/analyze@v2
C:\uat-runner3_work_tool\CodeQL\2.12.6-20230403\x64\codeql\codeql.exe version --format=terse 2.12.6 ::group::Finalizing csharp Finalizing csharp C:\uat-runner3_work_tool\CodeQL\2.12.6-20230403\x64\codeql\codeql.exe database finalize --finalize-dataset --threads=4 --ram=14703 C:\uat-runner3_work_temp\codeql_databases\csharp CodeQL detected code written in C# but could not process any of it. Review our troubleshooting guide at https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-the-codeql-workflow#no-code-found-during-the-build. Error: No code found during the build. Please see: https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning#no-code-found-during-the-build
@smowton Any update ?
Thanks!! Subh
I'm afraid if you're unable to share debug logs then I can only give you generic advice:
- name: Autobuild
uses: github/codeql-action/autobuild@v3
log/
directory for any potentially interesting lines you would be willing to share.codeql database create -l csharp db
in the root of your repository, and take a look over the db/log
directory for any hints about what's happening.Hi @smowton , Cleaning cache, working perfectly fine for me .before i was thinking it will not taking from cache but it was. thanks closing the issue.
Thanks, Subh
name: Build App run: | msbuild ${{env.SLN_FILE}} /p:TransformWebConfigEnabled=False /p:AutoParameterizationWebConfigConnectionStrings=False /p:Configuration=Release /p:Platform='Any CPU' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:ErrorStack=true /p:PackageLocation="${{github.workspace}}\stagingdir"
here build is successfully happening . How ever in the perform codeql analysis step its throwing CodeQL detected code written in C# but could not process any of it. Review our troubleshooting guide at https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-the-codeql-workflow#no-code-found-during-the-build. Error: No code found during the build. Please see: https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning#no-code-found-during-the-build
Any idea would be appreciated .
Thanks !! Subh