Skip to content

Commit 92f46ed

Browse files
authored
Fix: Correct Issue Reference to Pull Request in Actions Security Docs (github#36519)
1 parent f09cc8f commit 92f46ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ In this example, the attempted script injection is unsuccessful, which is reflec
145145
PR title did not start with 'octocat'
146146
```
147147

148-
With this approach, the value of the {% raw %}`${{ github.event.issue.title }}`{% endraw %} expression is stored in memory and used as a variable, and doesn't interact with the script generation process. In addition, consider using double quote shell variables to avoid [word splitting](https://github.com/koalaman/shellcheck/wiki/SC2086), but this is [one of many](https://mywiki.wooledge.org/BashPitfalls) general recommendations for writing shell scripts, and is not specific to {% data variables.product.prodname_actions %}.
148+
With this approach, the value of the {% raw %}`${{ github.event.pull_request.title }}`{% endraw %} expression is stored in memory and used as a variable, and doesn't interact with the script generation process. In addition, consider using double quote shell variables to avoid [word splitting](https://github.com/koalaman/shellcheck/wiki/SC2086), but this is [one of many](https://mywiki.wooledge.org/BashPitfalls) general recommendations for writing shell scripts, and is not specific to {% data variables.product.prodname_actions %}.
149149

150150
{% ifversion fpt or ghec %}
151151

0 commit comments

Comments
 (0)