File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,13 @@ stages:
4747 feedsToUse : select
4848 restoreArguments : --locked-mode
4949
50+ - task : GetAzureAuthToken@5
51+ name : KeyVaultToken
52+ displayName : Get token to code signing certificate
53+ inputs :
54+ ServiceConnection : Code signer
55+ AccessScopes : https://vault.azure.net/.default
56+
5057 - task : DotNetCoreCLI@2
5158 displayName : Build
5259 inputs :
@@ -55,7 +62,7 @@ stages:
5562 configuration : ${{ variables.Configuration }}
5663 arguments : --no-restore
5764 env :
58- AuthenticodeClientSecret : $(AuthenticodeClientSecret )
65+ AuthenticodeAccessToken : $(KeyVaultToken.AuthToken )
5966 # Roll-forward behavior set for AzureSignTool dotnet tool (see .config\dotnet-tools.json) which requires .Net 6.0 runtime
6067 DOTNET_ROLL_FORWARD : Major
6168
Original file line number Diff line number Diff line change 3333 <RootNamespace >Kentico.Xperience.RepoTemplate</RootNamespace >
3434
3535 <EnableDefaultEmbeddedResourceItems >false</EnableDefaultEmbeddedResourceItems >
36- <TimestampServerUrl >http://timestamp.digicert.com</TimestampServerUrl >
3736 </PropertyGroup >
3837
3938 <PropertyGroup Condition =" $(Configuration) == 'Release' " >
Original file line number Diff line number Diff line change 11<Project >
2- <Target Name =" SignAssemblyWithAuthenticodeSignature" AfterTargets =" AfterBuild" Condition =" '$(MSBuildProjectFullPath.Contains(" node_modules" ))' == 'false' And $(Configuration) == 'Release' And $(SIGN_FILE) != 'false '" >
2+ <Target Name =" SignAssemblyWithAuthenticodeSignature" AfterTargets =" AfterBuild" Condition =" '$(MSBuildProjectFullPath.Contains(" node_modules" ))' == 'false' And $(Configuration) == 'Release' And $(SIGN_FILE) == 'true '" >
33 <PropertyGroup >
44 <XmlSerializersTargetPath >$(TargetDir)$(TargetName).XmlSerializers.dll</XmlSerializersTargetPath >
55 </PropertyGroup >
99 <AssemblyToSign Include =" $(XmlSerializersTargetPath)" Condition =" Exists('$(XmlSerializersTargetPath)')" />
1010 </ItemGroup >
1111
12- <Exec Command =" dotnet AzureSignTool sign --azure-key-vault-url $(AuthenticodeKeyVaultUrl) --azure-key-vault-tenant-id $(AuthenticodeTenantId) --azure-key-vault-client-id $(AuthenticodeClientId) --azure-key-vault-client-secret $(AuthenticodeClientSecret ) --azure-key-vault-certificate $(AuthenticodeCertificateName) --timestamp-rfc3161 $(TimestampServerUrl) --skip-signed %(AssemblyToSign.Identity)" />
12+ <Exec Command =" dotnet AzureSignTool sign --azure-key-vault-url $(AuthenticodeKeyVaultUrl) --azure-key-vault-accesstoken $(AuthenticodeAccessToken ) --azure-key-vault-certificate $(AuthenticodeCertificateName) --timestamp-rfc3161 $(TimestampServerUrl) --skip-signed %(AssemblyToSign.Identity)" />
1313 </Target >
1414</Project >
You can’t perform that action at this time.
0 commit comments