We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38fc14d + 4496e7f commit 20a1687Copy full SHA for 20a1687
.github/workflows/process-new-powershell-tip-issue.yml
@@ -72,11 +72,12 @@ jobs:
72
- name: Extract tip information from issue and create new tip file
73
id: create-tip-file
74
shell: pwsh
75
+ env:
76
+ # Avoid script injection by retrieving the issue body via an environment variable instead of injecting the text directly into the script.
77
+ ISSUE_BODY: ${{ github.event.issue.body }}
78
run: |
79
Write-Output "Reading information from GitHub issue..."
- $body = @'
- ${{ github.event.issue.body }}
- '@
80
+ $body = $Env:ISSUE_BODY
81
82
Write-Output "Displaying issue body for troubleshooting purposes:"
83
Write-Output "----------------------------------------"
0 commit comments