Skip to content

Commit

Permalink
Force IPv6 addresses in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindsHat committed Mar 20, 2023
1 parent d6f10dc commit 37ddb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
$cert = New-SelfSignedCertificate -TextExtension @("2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1&IPAddress=::1") -CertStoreLocation "cert:\LocalMachine\My"
# & Export-Certificate -Cert $cert -FilePath C:\cert
& New-Item -Path WSMan:\LocalHost\Listener -Transport HTTPS -Address "IP:127.0.0.1" -Port $env:WINRM_TLS_PORT -CertificateThumbPrint $cert.Thumbprint -force
& New-Item -Path WSMan:\LocalHost\Listener -Transport HTTPS -Address "IP:::1" -Port $env:WINRM_TLS_PORT -CertificateThumbPrint $cert.Thumbprint -force
& winrm enumerate winrm/config/listener
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Go Test
env:
WINRM_HOST: localhost
WINRM_HOST: ::1
WINRM_USER: ci-test
WINRM_PASSWORD: foobar123.lang! # only used inside the CI run
WINRM_INSECURE: 1
Expand Down

0 comments on commit 37ddb56

Please sign in to comment.