@@ -75,6 +75,20 @@ stages:
75
75
- pwsh : |
76
76
Write-Host "##vso[build.updatebuildnumber]$env:NUGET_VERSION"
77
77
displayName: Update the build number with a more readable one
78
+ postBuildSteps :
79
+ - task : CopyFiles@2
80
+ displayName : ' Copy Files (DLLs, PDBs, MDBs & binlogs)'
81
+ inputs :
82
+ Contents : |
83
+ Xamarin.Essentials/bin/**/*.dll
84
+ Xamarin.Essentials/bin/**/*.pdb
85
+ TargetFolder : $(build.artifactstagingdirectory)
86
+
87
+ - task : PublishBuildArtifacts@1
88
+ displayName : ' Publish Artifact Binaries'
89
+ condition : always()
90
+ inputs :
91
+ ArtifactName : ' binaries'
78
92
79
93
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }} :
80
94
- stage : signing
@@ -100,14 +114,21 @@ stages:
100
114
packageVersionRegex : ' (?i)^Xamarin.Essentials\.(?<version>\d+\.\d+\.\d+)(.*).nupkg$'
101
115
102
116
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }} :
103
- - template : security/full/v0 .yml@internal-templates
117
+ - template : security/full/v1 .yml@internal-templates
104
118
parameters :
105
- dependsOn : [ ]
119
+ scanArtifacts : [ 'nuget', 'binaries' ]
120
+ antiMalwareEnabled : true
121
+ binSkimEnabled : true
122
+ enableCodeInspector : true
123
+ credScanEnabled : true
106
124
credScanSuppressionFile : $(Build.SourcesDirectory)\build-tools\automation\guardian\CredScanSuppressions.json
107
125
sourceGdnSuppressionFile : $(Build.SourcesDirectory)\build-tools\automation\guardian\source.gdnsuppress
108
126
tsaConfigFile : $(Build.SourcesDirectory)\build-tools\automation\guardian\tsaoptions-v2.json
109
127
policheckExclusionFilesFolder : $(Build.SourcesDirectory)\build-tools\automation\guardian
110
128
policheckGdnSuppressionFilesFolder : $(Build.SourcesDirectory)\build-tools\automation\guardian
129
+ apiScanEnabled : true
130
+ apiScanSoftwareName : ' Xamarin.Essentials'
131
+ apiScanSoftwareVersionNum : $(BUILD_NUMBER)
111
132
112
133
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }} :
113
134
- stage : devicetests
@@ -322,4 +343,4 @@ stages:
322
343
# echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
323
344
# displayName: 'Setup JDK Paths'
324
345
# - bash: sh -c "echo \"y\" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager \"system-images;android-33;google_apis_playstore;x86_64\""
325
- # displayName: Install the Android emulators
346
+ # displayName: Install the Android emulators
0 commit comments