Skip to content

Commit eb7a5d2

Browse files
authored
Force TLS1.2 when doing deploy-only
1 parent 71883db commit eb7a5d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PSModules/stages/deploy-module-publish-only.yml

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ stages:
4444
archiveFile: '$(Build.ArtifactStagingDirectory)\${{ parameters.ModuleName }}.zip'
4545
condition: and(succeeded(), eq(variables['build.sourceBranchName'], '${{ parameters.DefaultBranch }}'))
4646
- powershell: |
47+
if ($env:SYSTEM_DEBUG -eq 'true') {
48+
[Net.ServicePointManager]::SecurityProtocol
49+
}
50+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
51+
if ($env:SYSTEM_DEBUG -eq 'true') {
52+
[Net.ServicePointManager]::SecurityProtocol
53+
}
4754
if ($env:SYSTEM_DEBUG -eq 'true') {
4855
gci env:
4956
git --no-pager config --list

0 commit comments

Comments
 (0)