Skip to content

Commit 6ce6fe5

Browse files
Update notice-generation.ps1 to fix pipeline Issue (#2151)
## Why make this change? ![image](https://github.com/Azure/data-api-builder/assets/102276754/f6c53cc9-4b6e-407b-a6c6-7a1f0bb98cf6) ## What is this change? - using the `-UseBasicParsing` parameter with the `Invoke-WebRequest` cmdlet. This parameter tells PowerShell to use a simple internal HTML parser to parse the HTML content and strips the Document Object Model (DOM) parsing engine from Internet Explorer. ## How was this tested? - pipeline ran correctly
1 parent 780f923 commit 6ce6fe5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/notice-generation.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ param (
99
# Download and save the ChilliCream License 1.0 from ChilliCream/graphql-platform GitHub repo
1010
$chiliCreamLicenseSavePath = "$BuildArtifactStagingDir/chillicreamlicense.txt"
1111
$chiliCreamLicenseMetadataURL = "https://raw.githubusercontent.com/ChilliCream/graphql-platform/main/website/src/basic/licensing/chillicream-license.md"
12-
Invoke-WebRequest $chiliCreamLicenseMetadataURL `
13-
| Select-Object -ExpandProperty Content `
14-
| Out-File $chiliCreamLicenseSavePath
12+
Invoke-WebRequest $chiliCreamLicenseMetadataURL -UseBasicParsing |
13+
Select-Object -ExpandProperty Content |
14+
Out-File $chiliCreamLicenseSavePath
1515

1616
# Download and save the Microsoft.Data.SqlClient.SNI.runtime license
1717
$sqlClientSNILicenseSavePath = "$BuildArtifactStagingDir/sqlclient_sni_runtime.txt"
1818
$sqlClientSNILicenseMetadataURL = "https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/5.0.1/License"
19-
$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL
19+
$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL -UseBasicParsing
2020

2121
# Regular expression with three capture groups.
2222
# Capture Group 1: HTML tag which indicates start of license text

0 commit comments

Comments
 (0)