Skip to content

Commit a2b2ebd

Browse files
authored
Exclude tests from CodeQL (dotnet#55459)
* Only disable on signalr test job * Add exclusion for tests
1 parent 1a5577f commit a2b2ebd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.CodeQL.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file configures CodeQL runs and TSA bug autofiling. For more information, see:
2+
# https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/troubleshooting/bugs/generated-library-code
3+
# (Access restricted to Microsoft employees only.)
4+
5+
path_classifiers:
6+
refs:
7+
# The test/ directories don't contain shipping implementations of code, so they should
8+
# be excluded from analysis.
9+
- src/**/test/*

.azure/pipelines/signalr-daily-tests.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ extends:
2626
name: NetCore1ESPool-Svc-Internal
2727
image: 1es-windows-2022
2828
os: windows
29+
codeql:
30+
compiled:
31+
enabled: false
32+
justificationForDisabling: 'This is a test-only pipeline. The same product code is already scanned in the main pipeline (aspnetcore-ci)'
2933
stages:
3034
- stage: build
3135
displayName: Build

0 commit comments

Comments
 (0)