From 50e09973d0be461466a04ba742c0b642a2f3353f Mon Sep 17 00:00:00 2001 From: lawrencegripper Date: Fri, 31 Jan 2025 10:43:40 +0000 Subject: [PATCH] Fix gh cli piping --- helpers/CheckOutdatedVersionPinning.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/CheckOutdatedVersionPinning.ps1 b/helpers/CheckOutdatedVersionPinning.ps1 index 10a4e26de..2d98ad587 100644 --- a/helpers/CheckOutdatedVersionPinning.ps1 +++ b/helpers/CheckOutdatedVersionPinning.ps1 @@ -67,7 +67,11 @@ if ($expiringPins) { if ($env:GITHUB_ACTIONS -eq 'true') { # In GitHub Actions, create an issue - $issueBody | gh issue create --title "Version Pinning Review Found Expired Pinned Versions" --body - + Write-Host "Creating issue" + $tempFile = [System.IO.Path]::GetTempFileName() + Set-Content -Path $tempFile -Value $issueBody + gh issue create --title "Version Pinning Review Found Expired Pinned Versions" --body-file $tempFile + Remove-Item -Path $tempFile } Write-Host "`nIssue Content:`n"