8000 Prevent apiscan from breaking non-official builds (#3328) · dotnet/SqlClient@77db4ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 77db4ad

Browse files
Prevent apiscan from breaking non-official builds (#3328)
1 parent 7084ca4 commit 77db4ad

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

eng/pipelines/dotnet-sqlclient-signing-pipeline.yml

Lines changed: 11 additions & 3 deletions
Original fi C9E2 le line numberDiff line numberDiff line change
@@ -91,14 +91,22 @@ extends:
9191
featureFlags:
9292
WindowsHostVersion: 1ESWindows2022
9393
globalSdl: # https://aka.ms/obpipelines/sdl
94+
tsa:
95+
# The OneBranch template will set 'break' to false for the other SDL
96+
# tools when TSA is enabled. This allows TSA to gather the results
97+
# and publish them for downstream analysis.
98+
enabled: ${{parameters.enableAllSdlTools }}
9499
apiscan:
95-
enabled: ${{ not(parameters['isPreview']) }}
100+
enabled: ${{parameters.enableAllSdlTools }}
101+
# For non-official builds, the OneBranch template seems to set APIScan's
102+
# 'break' to true even when TSA is enabled. We don't want APIScan to
103+
# break non-official builds, so we explicitly set 'break' to false here.
104+
${{ if ne(parameters.oneBranchType, 'Official') }}:
105+
break: false
96106
softwareFolder: $(softwareFolder)
97107
symbolsFolder: $(symbolsFolder)
98108
softwarename: Microsoft.Data.SqlClient
99109
versionNumber: $(AssemblyFileVersion)
100-
tsa:
101-
enabled: ${{ not(parameters['isPreview']) }} # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.
102110
codeql:
103111
compiled:
104112
enabled: ${{ not(parameters['isPreview']) }}

0 commit comments

Comments
 (0)
0