Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Switch to Security v1 template for compliance (#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis authored Jan 8, 2024
1 parent 6ec2124 commit ae2cb94
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions Xamarin.Essentials/Xamarin.Essentials.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<Reference Include="System.Numerics" />
<AndroidResource Include="Resources\xml\*.xml" />
<PackageReference Include="Xamarin.AndroidX.Browser" Version="[1.3.0.5,1.6]" />
<PackageReference Include="Xamarin.Google.Guava.ListenableFuture" Version="[1.0.0.15,)" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) ">
<Compile Include="**\*.ios.cs" />
Expand Down
27 changes: 24 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ stages:
- pwsh: |
Write-Host "##vso[build.updatebuildnumber]$env:NUGET_VERSION"
displayName: Update the build number with a more readable one
postBuildSteps:
- task: CopyFiles@2
displayName: 'Copy Files (DLLs, PDBs, MDBs & binlogs)'
inputs:
Contents: |
Xamarin.Essentials/bin/**/*.dll
Xamarin.Essentials/bin/**/*.pdb
TargetFolder: $(build.artifactstagingdirectory)

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact Binaries'
condition: always()
inputs:
ArtifactName: 'binaries'

- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- stage: signing
Expand All @@ -100,14 +114,21 @@ stages:
packageVersionRegex: '(?i)^Xamarin.Essentials\.(?<version>\d+\.\d+\.\d+)(.*).nupkg$'

- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: security/full/v0.yml@internal-templates
- template: security/full/v1.yml@internal-templates
parameters:
dependsOn: [ ]
scanArtifacts: [ 'nuget', 'binaries' ]
antiMalwareEnabled: true
binSkimEnabled: true
enableCodeInspector: true
credScanEnabled: true
credScanSuppressionFile: $(Build.SourcesDirectory)\build-tools\automation\guardian\CredScanSuppressions.json
sourceGdnSuppressionFile: $(Build.SourcesDirectory)\build-tools\automation\guardian\source.gdnsuppress
tsaConfigFile: $(Build.SourcesDirectory)\build-tools\automation\guardian\tsaoptions-v2.json
policheckExclusionFilesFolder: $(Build.SourcesDirectory)\build-tools\automation\guardian
policheckGdnSuppressionFilesFolder: $(Build.SourcesDirectory)\build-tools\automation\guardian
apiScanEnabled: true
apiScanSoftwareName: 'Xamarin.Essentials'
apiScanSoftwareVersionNum: $(BUILD_NUMBER)

- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}:
- stage: devicetests
Expand Down Expand Up @@ -322,4 +343,4 @@ stages:
# echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
# displayName: 'Setup JDK Paths'
# - bash: sh -c "echo \"y\" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager \"system-images;android-33;google_apis_playstore;x86_64\""
# displayName: Install the Android emulators
# displayName: Install the Android emulators

0 comments on commit ae2cb94

Please sign in to comment.