Fix post build signing props and enable post build signing. (#44951)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Thu, 19 Nov 2020 23:01:30 +0000 (15:01 -0800)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 23:01:30 +0000 (15:01 -0800)
eng/Signing.props
eng/pipelines/runtime-official.yml

index 3d5e996..3a1af40 100644 (file)
     <FileExtensionSignInfo Include=".pkg" CertificateName="8003" />
     <FileExtensionSignInfo Include=".deb;.rpm" CertificateName="LinuxSign" />
   </ItemGroup>
+  <ItemGroup Condition="'$(PrepareArtifacts) == 'true' and '$(PostBuildSign)' == 'true'">
+    <ItemsToSignWithPaths Include="$(DownloadDirectory)**/*.msi" />
+    <ItemsToSignWithPaths Include="$(DownloadDirectory)**/*.exe" />
+    <ItemsToSignWithPaths Include="$(DownloadDirectory)**/*.nupkg" />
+    <ItemsToSignWithPaths Include="$(DownloadDirectory)**/*.zip" />
+
+    <ItemsToSignWithoutPaths Include="@(ItemsToSignWithPaths->'%(Filename)%(Extension)')" />
+    <ItemsToSignPostBuild Include="@(ItemsToSignWithoutPaths->Distinct())" />
+  </ItemGroup>
 
   <Target Name="SetupFilesToSign">
     <!-- Ensure that we don't miss the DAC or DBI with the globbing below -->
index 260a35e..a531b46 100644 (file)
@@ -33,7 +33,7 @@ variables:
 - name: _DotNetValidationArtifactsCategory
   value: .NETCoreValidation
 - name: PostBuildSign
-  value: false
+  value: true
 
 stages:
 - stage: Build