mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Removing 'ImageVersion' as an env var as we already use 'IMAGE_VERSION' (#2509)
* Removing 'ImageVersion' as an env var as we already use 'IMAGE_VERSION'. The env var is only used SoftwareReport.Generator script. * Adding IMAGE_VERISON to SoftwareReport.Generator * Adding IMAGE_VERISON to SoftwareReport.Generator * Chnaging the way the env vars are used to floow the same pattern throughout Co-authored-by: Jose Mosquera <jose.mosquera@dotdigital.com>
This commit is contained in:
@@ -33,6 +33,10 @@ function Disable-UserAccessControl {
|
||||
# Enable $ErrorActionPreference='Stop' for AllUsersAllHosts
|
||||
Add-Content -Path $profile.AllUsersAllHosts -Value '$ErrorActionPreference="Stop"'
|
||||
|
||||
# Set static env vars
|
||||
setx ImageVersion $env:IMAGE_VERSION /m
|
||||
setx ImageOS $env:IMAGE_OS /m
|
||||
|
||||
# Set TLS1.2
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user