You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/security-hardening-for-github-actions.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ This means that a compromise of a single action within a workflow can be very si
54
54
**Warning:** The short version of the commit SHA is insecure and should never be used for specifying an action's Git reference. Because of how repository networks work, any user can fork the repository and push a crafted commit to it that collides with the short SHA. This causes subsequent clones at that SHA to fail because it becomes an ambiguous commit. As a result, any workflows that use the shortened SHA will immediately fail.
55
55
56
56
{% endwarning %}
57
+
58
+
57
59
***Audit the source code of the action**
58
60
59
61
Ensure that the action is handling the content of your repository and secrets as expected. For example, check that secrets are not sent to unintended hosts, or are not inadvertently logged.
@@ -92,10 +94,14 @@ This list describes the recommended approaches for accessing repository data wit
92
94
93
95
As a result, self-hosted runners should almost [never be used for public repositories](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories) on {% data variables.product.product_name %}, because any user can open pull requests against the repository and compromise the environment. Similarly, be cautious when using self-hosted runners on private repositories, as anyone who can fork the repository and open a PR (generally those with read-access to the repository) are able to compromise the self-hosted runner environment, including gaining access to secrets and the more privileged `GITHUB_TOKEN` which grants write-access permissions on the repository.
94
96
97
+
When a self-hosted runner is defined at the organization or enterprise level, {% data variables.product.product_name %} can schedule workflows from multiple repositories onto the same runner. Consequently, a security compromise of these environments can result in a wide impact. To help reduce the scope of a compromise, you can create boundaries by organizing your self-hosted runners into separate groups. For more information, see "[Managing access to self-hosted runners using groups](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups)."
98
+
95
99
You should also consider the environment of the self-hosted runner machines:
96
100
- What sensitive information resides on the machine configured as a self-hosted runner? For example, private SSH keys, API access tokens, among others.
97
101
- Does the machine have network access to sensitive services? For example, Azure or AWS metadata services. The amount of sensitive information in this environment should be kept to a minimum, and you should always be mindful that any user capable of invoking workflows has access to this environment.
98
102
103
+
Some customers might attempt to partially mitigate these risks by implementing systems that automatically destroy the self-hosted runner after each job execution. However, this approach might not be as effective as intended, as there is no way to guarantee that a self-hosted runner only runs one job.
104
+
99
105
### Auditing {% data variables.product.prodname_actions %} events
100
106
101
107
You can use the audit log to monitor administrative tasks in an organization. The audit log records the type of action, when it was run, and which user account performed the action.
@@ -132,5 +138,3 @@ The following tables describe the {% data variables.product.prodname_actions %}
132
138
| `action:org.runner_group_renamed` | Triggered when an organization admin renames a self-hosted runner group.
133
139
| `action:org.runner_group_runners_added` | Triggered when an organization admin [adds a self-hosted runner to a group](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#moving-a-self-hosted-runner-to-a-group).
134
140
| `action:org.runner_group_runners_removed` | Triggered when an organization admin removes a self-hosted runner from a group.
Copy file name to clipboardExpand all lines: data/ui.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,14 @@ contribution_cta:
66
66
button: Make a contribution
67
67
or: Or,
68
68
to_guidelines: learn how to contribute.
69
+
enterprise_releases_list:
70
+
title: Enterprise Server Releases
71
+
currently_supported: Currently supported
72
+
currently_supported_message: See <a href="https://github.com/enterprise">GitHub Enterprise</a> for information about the latest release.
73
+
deprecated: Deprecated
74
+
deprecated_message: 'These docs remain available but are no longer maintained:'
75
+
deprecated_developer: Deprecated on developer.github.com
76
+
deprecated_developer_message: 'These docs remain available on the legacy <a href="https://developer.github.com">developer site</a> but are no longer maintained:'
<h2id="currently-supported"><ahref="#currently-supported">{% data ui.enterprise_releases_list.currently_supported %}</a></h2>
34
+
<p>{% data ui.enterprise_releases_list.currently_supported_message %}</p>
35
+
<ul>
36
+
{% for version in enterpriseServerReleases.supported %}
37
+
<li><ahref="/{{currentLanguage}}/enterprise-server@{{version}}">Enterprise Server {{version}}</a></li>
38
+
{% endfor %}
39
+
</ul>
40
+
<h2id="deprecated"><ahref="#deprecated">{% data ui.enterprise_releases_list.deprecated %}</a></h2>
41
+
<p>{% data ui.enterprise_releases_list.deprecated_message %}</p>
42
+
<ul>
43
+
{% for version in enterpriseServerReleases.deprecatedReleasesWithNewFormat %}
44
+
<li><ahref="/{{currentLanguage}}/enterprise-server@{{version}}">Enterprise Server {{version}}</a></li>
45
+
{% endfor %}
46
+
{% for version in enterpriseServerReleases.deprecatedReleasesWithLegacyFormat %}
47
+
<li><ahref="/{{currentLanguage}}/enterprise/{{version}}">Enterprise Server {{version}}</a></li>
48
+
{% endfor %}
49
+
</ul>
50
+
<h2id="deprecated-on-developer.github.com"><ahref="#deprecated-on-developer.github.com">{% data ui.enterprise_releases_list.deprecated_developer %}</a></h2>
51
+
<p>{% data ui.enterprise_releases_list.deprecated_developer_message %}</p>
52
+
{% for version in enterpriseServerReleases.deprecatedReleasesOnDeveloperSite %}
53
+
<li><ahref="https://developer.github.com/enterprise/{{version}}">Enterprise Server {{version}}</a></li>
0 commit comments