Analyze (csharp) No code found during the build

Open
#2,082 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, github-actions
Domain
ci-cd, security

Research direction

No repository file or test is named. Reproduce the build and CodeQL analysis with a .NET console application containing only one .cs source file, then inspect why extraction reports no source code. Done means the analysis completes with that source file detected.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
1.6k
Forks
493
Avg merge
1d 13h
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-action

All issues in github/codeql-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.