Remove all `ifversion` that has all versions (13) (#49544)

This commit is contained in:
Peter Bengtsson 2024-03-06 10:42:00 -05:00 коммит произвёл GitHub
Родитель 8df4bb6cc1
Коммит d9a8fa3f66
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 3 добавлений и 33 удалений

Просмотреть файл

@ -22,12 +22,8 @@ type: tutorial
## Creating a self-hosted runner group for an organization
{%- ifversion fpt or ghec or ghes %}
{% data reusables.actions.self-hosted-runner-security-admonition %}
{%- endif %}
{% data reusables.actions.creating-a-runner-group-for-an-organization %}
{% ifversion ghec or ghes %}
@ -48,12 +44,8 @@ type: tutorial
## Changing which organizations can access a runner group
{%- ifversion fpt or ghec or ghes %}
{% data reusables.actions.self-hosted-runner-security-admonition %}
{%- endif %}
For runner groups in an enterprise, you can change what organizations in the enterprise can access a runner group.
{% data reusables.actions.runner-groups-enterprise-navigation %}
@ -63,12 +55,8 @@ For runner groups in an enterprise, you can change what organizations in the ent
## Changing which repositories can access a runner group
{%- ifversion fpt or ghec or ghes %}
{% data reusables.actions.self-hosted-runner-security-admonition %}
{%- endif %}
For runner groups in an organization, you can change what repositories in the organization can access a runner group.
{% data reusables.actions.runner-groups-org-navigation %}
@ -78,12 +66,8 @@ For runner groups in an organization, you can change what repositories in the or
## Changing which workflows can access a runner group
{%- ifversion fpt or ghec or ghes %}
{% data reusables.actions.self-hosted-runner-security-admonition %}
{%- endif %}
{% data reusables.actions.about-restricting-workflow-access-with-runner-groups %}
- [Changing which workflows can access an organization runner group](#changing-which-workflows-can-access-an-organization-runner-group)

Просмотреть файл

@ -305,7 +305,7 @@ SBOMs are available for Ubuntu, Windows, and macOS runner images. You can locate
### Denying access to hosts
{% data reusables.actions.runners-etc-hosts-file %}{%ifversion fpt or ghec or ghes %} For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners)."{% endif %}
{% data reusables.actions.runners-etc-hosts-file %} For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners)."
## Hardening for self-hosted runners

Просмотреть файл

@ -42,8 +42,7 @@ Generally, we name our supported ecosystems after the software programming langu
- Composer (registry: https://packagist.org/){% ifversion GH-advisory-db-erlang-support %}
- Erlang (registry: https://hex.pm/){% endif %}
- Go (registry: https://pkg.go.dev/)
{%- ifversion fpt or ghec or ghes %}
- GitHub Actions (https://github.com/marketplace?type=actions/) {% endif %}
- GitHub Actions (https://github.com/marketplace?type=actions/)
- Maven (registry: https://repo.maven.apache.org/maven2)
- npm (registry: https://www.npmjs.com/)
- NuGet (registry: https://www.nuget.org/)

Просмотреть файл

@ -32,7 +32,6 @@ This tutorial uses [the Spoon-Knife project](https://github.com/octocat/Spoon-Kn
1. In the top-right corner of the page, click **Fork**.
![Screenshot of the main page of repository. A button, labeled with a fork icon and "Fork 59.3k," is outlined in dark orange.](/assets/images/help/repository/fork-button.png)
{%- ifversion fpt or ghec or ghes %}
1. Under "Owner," select the dropdown menu and click an owner for the forked repository.
1. By default, forks are named the same as their upstream repositories. Optionally, to further distinguish your fork, in the "Repository name" field, type a name.
1. Optionally, in the "Description" field, type a description of your fork.
@ -46,7 +45,6 @@ This tutorial uses [the Spoon-Knife project](https://github.com/octocat/Spoon-Kn
**Note:** If you want to copy additional branches from the upstream repository, you can do so from the **Branches** page. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)."
{% endnote %}
{% endif %}
## Cloning a fork

Просмотреть файл

@ -56,20 +56,17 @@ You might fork a project to propose changes to the upstream repository. In this
1. In the top-right corner of the page, click **Fork**.
![Screenshot of the main page of repository. A button, labeled with a fork icon and "Fork 59.3k," is outlined in dark orange.](/assets/images/help/repository/fork-button.png)
{%- ifversion fpt or ghec or ghes %}
1. Under "Owner," select the dropdown menu and click an owner for the forked repository.
1. By default, forks are named the same as their upstream repositories. Optionally, to further distinguish your fork, in the "Repository name" field, type a name.
1. Optionally, in the "Description" field, type a description of your fork.
{%- ifversion fpt or ghec or ghes %}
1. Optionally, select **Copy the DEFAULT branch only**.
For many forking scenarios, such as contributing to open-source projects, you only need to copy the default branch. If you do not select this option, all branches will be copied into the new fork.
{%- endif %}
1. Click **Create fork**.
{% note %}
**Note:** If you want to copy additional branches from the upstream repository, you can do so from the **Branches** page. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)."{% endnote %}{% endif %}
**Note:** If you want to copy additional branches from the upstream repository, you can do so from the **Branches** page. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)."{% endnote %}
{% endwebui %}

Просмотреть файл

@ -105,9 +105,7 @@ The `is` qualifier matches commits from repositories with the specified visibili
| Qualifier | Example
| ------------- | ------------- |
{%- ifversion fpt or ghes or ghec %}
| `is:public` | [**is:public**](https://github.com/search?q=is%3Apublic&type=Commits) matches commits to public repositories.
{%- endif %}
{%- ifversion ghes or ghec %}
| `is:internal` | [**is:internal**](https://github.com/search?q=is%3Ainternal&type=Commits) matches commits to internal repositories.
{%- endif %}

Просмотреть файл

@ -42,10 +42,8 @@
| `dependabot_alerts` | Contains organization-level configuration activities for {% data variables.product.prodname_dependabot_alerts %} in existing repositories. For more information, see "[AUTOTITLE](/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."
| `dependabot_alerts_new_repos` | Contains organization-level configuration activities for {% data variables.product.prodname_dependabot_alerts %} in new repositories created in the organization.
| `dependabot_repository_access` | Contains activities related to which private repositories in an organization {% data variables.product.prodname_dependabot %} is allowed to access.
{%- ifversion fpt or ghec or ghes %}
| `dependabot_security_updates` | Contains organization-level configuration activities for {% data variables.product.prodname_dependabot_security_updates %} in existing repositories. For more information, see "[AUTOTITLE](/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates)."
| `dependabot_security_updates_new_repos` | Contains organization-level configuration activities for {% data variables.product.prodname_dependabot_security_updates %} for new repositories created in the organization.
{%- endif %}
| `dependency_graph` | Contains organization-level configuration activities for dependency graphs for repositories. For more information, see "[AUTOTITLE](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph)."
| `dependency_graph_new_repos` | Contains organization-level configuration activities for new repositories created in the organization.
{%- ifversion ghec or ghes %}
@ -100,10 +98,8 @@
| `org_secret_scanning_custom_pattern` | Contains activities related to custom patterns for {% data variables.product.prodname_secret_scanning %} in an organization. For more information, see "[AUTOTITLE](/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning)."
{%- endif %}
| `organization_default_label` | Contains activities related to default labels for repositories in an organization.
{%- ifversion fpt or ghec or ghes %}
| `organization_domain` | Contains activities related to verified organization domains.
| `organization_projects_change` | Contains activities related to organization-wide {% data variables.projects.projects_v1_boards %} in an enterprise.
{%- endif %}
{%- ifversion fpt or ghec %}
| `pages_protected_domain` | Contains activities related to verified custom domains for {% data variables.product.prodname_pages %}.
| `payment_method` | Contains activities related to how an organization pays for {% data variables.product.prodname_dotcom %}.

Просмотреть файл

@ -1,3 +1 @@
{%- ifversion fpt or ghec or ghes %}
1. If prompted, confirm access to your account on {% data variables.product.product_name %}. For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/sudo-mode)."
{%- endif %}