Merge pull request #690 from AndrewDemski-ad-gmail-com/main
MegaLinter/devskim - suppression of warningspull/692/head
commit
9241c566c3
|
@ -13,8 +13,8 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath, $AzureBlobSASURL) {
|
||||||
# If path is URL
|
# If path is URL
|
||||||
if ($ExternalMods -like "http*") {
|
if ($ExternalMods -like "http*") {
|
||||||
# ADD TLS 1.2 and TLS 1.1 to list of currently used protocols
|
# ADD TLS 1.2 and TLS 1.1 to list of currently used protocols
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; #DevSkim: ignore DS440020,DS440020 Hard-coded SSL/TLS Protocol
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls11
|
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls11; #DevSkim: ignore DS440020,DS440020 Hard-coded SSL/TLS Protocol
|
||||||
#Get Index of $ExternalMods (or index page with href listing of all the Mods)
|
#Get Index of $ExternalMods (or index page with href listing of all the Mods)
|
||||||
try {
|
try {
|
||||||
$WebResponse = Invoke-WebRequest -Uri $ExternalMods -UseBasicParsing
|
$WebResponse = Invoke-WebRequest -Uri $ExternalMods -UseBasicParsing
|
||||||
|
|
|
@ -22,7 +22,7 @@ function Test-Network {
|
||||||
|
|
||||||
While ($timeout -lt 1800) {
|
While ($timeout -lt 1800) {
|
||||||
try {
|
try {
|
||||||
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome)
|
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome); # DevSkim: ignore DS137138 Insecure URL
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
$ncsiResponse = $false
|
$ncsiResponse = $false
|
||||||
|
|
Loading…
Reference in New Issue