Skip to content

Commit e9b36c1

Browse files
committed
test autobuild for csharp
1 parent 8b9989b commit e9b36c1

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
build-mode: none
4848
- language: csharp
4949
build-mode: none
50+
# Using 'none' because Unity SDK packages don't include .csproj/.sln files.
51+
# CodeQL autobuild cannot detect build scripts for Unity packages.
52+
# Lower quality metrics (66% call targets, 79% type resolution) are acceptable
53+
# for static analysis of Unity SDK code without a full build context.
5054
# c-cpp and Swift analysis removed: Unity SDKs don't include build projects in the repo
5155
# (Unity generates Xcode/Android projects during build). CodeQL's C/C++ autobuilder
5256
# doesn't recognize .mm (Objective-C++) files as source files. The minimal native
@@ -83,23 +87,6 @@ jobs:
8387
# Consider enabling security queries for better coverage:
8488
# queries: security-extended,security-and-quality
8589

86-
# If the analyze step fails for one of the languages you are analyzing with
87-
# "We were unable to automatically build your code", modify the matrix above
88-
# to set the build mode to "manual" for that language. Then modify this step
89-
# to build your code.
90-
# ℹ️ Command-line programs to run using the OS shell.
91-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
92-
- name: Run manual build steps
93-
if: matrix.build-mode == 'manual'
94-
shell: bash
95-
run: |
96-
echo 'If you are using a "manual" build mode for one or more of the' \
97-
'languages you are analyzing, replace this with the commands to build' \
98-
'your code, for example:'
99-
echo ' make bootstrap'
100-
echo ' make release'
101-
exit 1
102-
10390
- name: Perform CodeQL Analysis
10491
uses: github/codeql-action/analyze@v4
10592
with:

0 commit comments

Comments
 (0)