Skip to content

Commit 24436eb

Browse files
Hack week 2025: remove unneeded FBV instances (14) - Actions (#53983)
Co-authored-by: Felicity Chapman <[email protected]>
1 parent 9aae0ca commit 24436eb

File tree

8 files changed

+12
-15
lines changed

8 files changed

+12
-15
lines changed

content/actions/administering-github-actions/sharing-workflows-secrets-and-runners-with-your-organization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ type: how_to
1919

2020
If you need to share workflows and other {% data variables.product.prodname_actions %} features with your team, then consider collaborating within a {% data variables.product.prodname_dotcom %} organization. An organization allows you to centrally store and manage secrets, artifacts, and self-hosted runners. You can also create workflow templates in the `.github` repository and share them with other users in your organization.
2121

22-
## Sharing {% ifversion internal-actions %}actions and {% endif %}workflows
22+
## Sharing {% ifversion ghec or ghes %}actions and {% endif %}workflows
2323

24-
{% ifversion internal-actions %}
24+
{% ifversion ghec or ghes %}
2525
You can share both individual actions and entire workflows with your organization, with or without publishing the actions or workflows publicly. You can reuse actions and workflows exactly by referencing them in your workflow file, and you can create workflow templates.
2626
{% else %}
2727
Your organization can share workflows by reusing the workflows exactly or by creating workflow templates
2828
{% endif %}
2929

30-
{% ifversion internal-actions %}
30+
{% ifversion ghec or ghes %}
3131

3232
### Sharing actions with your enterprise
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ The same principles described above for using third-party actions also apply to
208208

209209
{% data reusables.actions.dependabot-version-updates-for-actions %}
210210

211-
{% ifversion internal-actions %}
211+
{% ifversion ghec or ghes %}
212212

213213
## Allowing workflows to access internal and private repositories
214214

content/actions/sharing-automations/creating-actions/about-custom-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ topics:
2525
You can create actions by writing custom code that interacts with your repository in any way you'd like, including integrating with {% data variables.product.prodname_dotcom %}'s APIs and any publicly available third-party API. For example, an action can publish npm modules, send SMS alerts when urgent issues are created, or deploy production-ready code.
2626

2727
{% ifversion fpt or ghec %}
28-
You can write your own actions to use in your workflow or share the actions you build with the {% data variables.product.prodname_dotcom %} community. To share actions you've built with everyone, your repository must be public. {% ifversion internal-actions %}To share actions only within your enterprise, your repository must be internal.{% endif %}
28+
You can write your own actions to use in your workflow or share the actions you build with the {% data variables.product.prodname_dotcom %} community. To share actions you've built with everyone, your repository must be public. {% ifversion ghec %}To share actions only within your enterprise, your repository must be internal.{% endif %}
2929
{% endif %}
3030

3131
Actions can run directly on a machine or in a Docker container. You can define an action's inputs, outputs, and environment variables.

content/actions/sharing-automations/reusing-workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ A reusable workflow can be used by another workflow if any of the following is t
6060
You cannot directly use reusable workflows defined on {% data variables.product.prodname_dotcom_the_website %}. Instead store a copy of the reusable workflow on {% data variables.location.product_location %}, and call the workflow from that path.
6161

6262
{% elsif actions-workflow-policy %}, and your {% ifversion ghec %}enterprise{% else %}organization{% endif %} allows you to use public reusable workflows.{% endif %}{% ifversion ghes or ghec %}
63-
* The called workflow is stored in an internal repository and the settings for that repository allow it to be accessed. For more information, see {% ifversion internal-actions %}[AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise){% else %}[AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository){% endif %}.{% endif %}
63+
* The called workflow is stored in an internal repository and the settings for that repository allow it to be accessed. For more information, see [AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise).{% endif %}
6464
* The called workflow is stored in a private repository and the settings for that repository allow it to be accessed. For more information, see {% ifversion ghes or ghec %}[AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise).{% else %}[AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-organization) and [AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-from-your-private-repository).{% endif %}
6565

6666
The following table shows the accessibility of reusable workflows to a caller workflow, depending on the visibility of the host repository.

content/actions/sharing-automations/sharing-actions-and-workflows-with-your-enterprise.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: Sharing actions and workflows with your enterprise
33
intro: You can share an action or reusable workflow with your enterprise without publishing the action or workflow publicly.
44
versions:
5-
feature: internal-actions
5+
ghec: '*'
6+
ghes: '*'
67
type: tutorial
78
topics:
89
- Actions

content/actions/sharing-automations/sharing-actions-and-workflows-with-your-organization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ redirect_from:
1212
- /actions/creating-actions/sharing-actions-and-workflows-with-your-organization
1313
---
1414

15-
## About {% data variables.product.prodname_actions %} access to private {% ifversion internal-actions %} or internal {% endif %}repositories
15+
## About {% data variables.product.prodname_actions %} access to private {% ifversion ghec or ghes %} or internal {% endif %}repositories
1616

1717
You can share actions and reusable workflows within your organization, without publishing them publicly, by allowing {% data variables.product.prodname_actions %} workflows to access a private repository that contains the action or reusable workflow.
1818

@@ -24,7 +24,7 @@ Any actions or reusable workflows stored in the private repository can be used i
2424
2525
## Sharing actions and workflows with your organization
2626

27-
1. Store the action or reusable workflow in a private {% ifversion internal-actions %} or internal {% endif %}repository. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility).
27+
1. Store the action or reusable workflow in a private {% ifversion ghec or ghes %} or internal {% endif %}repository. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility).
2828
1. Configure the repository to allow access to workflows in other private repositories. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository).
2929

3030
## Further reading

content/actions/writing-workflows/choosing-what-your-workflow-does/using-pre-written-building-blocks-in-your-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Actions can be:
3333

3434
The actions you use in your workflow can be defined in:
3535

36-
* The same repository as your workflow file{% ifversion internal-actions %}
36+
* The same repository as your workflow file{% ifversion ghec or ghes %}
3737
* An internal repository within the same enterprise account that is configured to allow access to workflows{% endif %}
3838
* Any public repository
3939
* A published Docker container image on Docker Hub
@@ -91,7 +91,7 @@ The `action.yml` file is used to provide metadata for the action. Learn about th
9191

9292
If an action is defined in a different repository than your workflow file, you can reference the action with the `{owner}/{repo}@{ref}` syntax in your workflow file.
9393

94-
The action must be stored in a public repository{% ifversion internal-actions %} or an internal repository that is configured to allow access to workflows. For more information, see [AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise).{% else %}.{% endif %}
94+
The action must be stored in a public repository{% ifversion ghec or ghes %} or an internal repository that is configured to allow access to workflows. For more information, see [AUTOTITLE](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise).{% else %}.{% endif %}
9595

9696
```yaml
9797
jobs:

content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ With reusable workflows, your team can call one workflow from another workflow,
7575

7676
To provide a starting place for developers building new workflows, you can use workflow templates. This not only saves time for your developers, but promotes consistency and best practice across your enterprise. For more information, see [AUTOTITLE](/actions/using-workflows/creating-starter-workflows-for-your-organization).
7777

78-
{% ifversion not internal-actions %}
79-
Whenever your workflow developers want to use an action that's stored in a private repository, they must configure the workflow to clone the repository first. To reduce the number of repositories that must be cloned, consider grouping commonly used actions in a single repository. For more information, see [AUTOTITLE](/actions/creating-actions/about-custom-actions#choosing-a-location-for-your-action).
80-
{% endif %}
81-
8278
## Managing resources
8379

8480
You should plan for how you'll manage the resources required to use {% data variables.product.prodname_actions %}.

0 commit comments

Comments
 (0)