Skip to content

Commit 4439629

Browse files
authored
Merge pull request github#24286 from github/repo-sync
repo sync
2 parents 2248457 + c852510 commit 4439629

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

content/actions/learn-github-actions/finding-and-customizing-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can search and browse actions directly in your repository's workflow editor.
4747

4848
## Adding an action to your workflow
4949

50-
You can add an action to your workflow by referencing the action in your workflow file.
50+
You can add an action to your workflow by referencing the action in your workflow file.
5151

5252
You can view the actions referenced in your {% data variables.product.prodname_actions %} workflows as dependencies in the dependency graph of the repository containing your workflows. For more information, see “[About the dependency graph](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph).”
5353

@@ -159,7 +159,7 @@ steps:
159159

160160
### Using SHAs
161161

162-
If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. You must use a commit's full SHA value, and not an abbreviated value. This example targets an action's SHA:
162+
If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However, this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. You must use a commit's full SHA value, and not an abbreviated value. {% data reusables.actions.actions-pin-commit-sha %} This example targets an action's SHA:
163163

164164
```yaml
165165
steps:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ You can help mitigate this risk by following these good practices:
176176

177177
* **Pin actions to a full length commit SHA**
178178

179-
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
179+
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. {% data reusables.actions.actions-pin-commit-sha %}
180180

181181
* **Audit the source code of the action**
182182

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When selecting a SHA, you should verify it is from the action's repository and not a repository fork.

0 commit comments

Comments
 (0)