Skip to content

Commit

Permalink
eng | Fix production pipeline (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavoudEshtehari authored Apr 5, 2024
1 parent 9645c01 commit 9811c65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ steps:
#Set the Nuget.config file in the project to use extracted package
$rootFolder = Get-location
[Xml] $nugetConfig = Get-Content -Path "src\Nuget.config"
[Xml] $nugetConfig = Get-Content -Path "Nuget.config"
$Value = Resolve-Path ${{parameters.downloadedNugetPath }}
$newAdd = $nugetConfig.CreateElement("add")
$newAdd.SetAttribute("key","Package source")
$newAdd.SetAttribute("value", "$Value\" )
$nugetConfig.configuration.packageSources.AppendChild($newAdd)
$nugetConfig.Save("$rootFolder\src\Nuget.config")
$nugetConfig.Save("$rootFolder\Nuget.config")
displayName: 'Update NuGet config file to read from Nuget folder'

- task: MSBuild@1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ private bool VerifyHealthReportAgainstRootCertificate(X509Certificate2Collection
// An Always Encrypted-enabled driver doesn't verify an expiration date or a certificate authority chain.
// A certificate is simply used as a key pair consisting of a public and private key. This is by design.

#pragma warning disable IA5352
// CodeQL [SM00395] By design. Always Encrypted certificates should not be checked.
chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
#pragma warning restore IA5352

if (!chain.Build(healthReportCert))
{
Expand Down

0 comments on commit 9811c65

Please sign in to comment.