Skip to content

Commit

Permalink
Force TLS1.2 when doing deploy-only
Browse files Browse the repository at this point in the history
  • Loading branch information
FISHMANPET authored Mar 16, 2022
1 parent 71883db commit eb7a5d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PSModules/stages/deploy-module-publish-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ stages:
archiveFile: '$(Build.ArtifactStagingDirectory)\${{ parameters.ModuleName }}.zip'
condition: and(succeeded(), eq(variables['build.sourceBranchName'], '${{ parameters.DefaultBranch }}'))
- powershell: |
if ($env:SYSTEM_DEBUG -eq 'true') {
[Net.ServicePointManager]::SecurityProtocol
}
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
if ($env:SYSTEM_DEBUG -eq 'true') {
[Net.ServicePointManager]::SecurityProtocol
}
if ($env:SYSTEM_DEBUG -eq 'true') {
gci env:
git --no-pager config --list
Expand Down

0 comments on commit eb7a5d2

Please sign in to comment.