Skip to content

Commit bbd36fc

Browse files
authored
[CI] Use GITHUB_TOKEN to download hang script (#18263)
Similar what we do for Linux [here](https://github.com/intel/llvm/blob/sycl/devops/scripts/install_drivers.sh#L53). Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent 635c62a commit bbd36fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/sycl-windows-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
if: always()
8888
shell: powershell
8989
run: |
90-
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
90+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1" -Headers @{Authorization = "Bearer ${{ github.token }}"}
9191
powershell.exe -File windows_detect_hung_tests.ps1
9292
$exitCode = $LASTEXITCODE
9393
Remove-Item -Path "windows_detect_hung_tests.ps1"
@@ -230,7 +230,7 @@ jobs:
230230
if: always()
231231
shell: powershell
232232
run: |
233-
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
233+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1" -Headers @{Authorization = "Bearer ${{ github.token }}"}
234234
powershell.exe -File windows_detect_hung_tests.ps1
235235
$exitCode = $LASTEXITCODE
236236
Remove-Item -Path "windows_detect_hung_tests.ps1"

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
if: always()
103103
shell: powershell
104104
run: |
105-
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
105+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1" -Headers @{Authorization = "Bearer ${{ github.token }}"}
106106
powershell.exe -File windows_detect_hung_tests.ps1
107107
$exitCode = $LASTEXITCODE
108108
Remove-Item -Path "windows_detect_hung_tests.ps1"
@@ -236,7 +236,7 @@ jobs:
236236
if: always()
237237
shell: powershell
238238
run: |
239-
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
239+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1" -Headers @{Authorization = "Bearer ${{ github.token }}"}
240240
powershell.exe -File windows_detect_hung_tests.ps1
241241
$exitCode = $LASTEXITCODE
242242
Remove-Item -Path "windows_detect_hung_tests.ps1"

0 commit comments

Comments
 (0)