Skip to content

Commit ed94161

Browse files
authored
New translation batch for cn (github#28062)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js * Check in cn CSV report
1 parent f7eb2d6 commit ed94161

File tree

43 files changed

+424
-315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+424
-315
lines changed

translations/log/cn-resets.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,14 @@ translations/zh-CN/data/reusables/dependabot/dependabot-alerts-dependency-graph-
344344
translations/zh-CN/data/reusables/dependabot/enterprise-enable-dependabot.md,broken liquid tags
345345
translations/zh-CN/data/reusables/dotcom_billing/downgrade-org-to-free.md,broken liquid tags
346346
translations/zh-CN/data/reusables/enterprise-accounts/emu-password-reset-session.md,broken liquid tags
347-
translations/zh-CN/data/reusables/enterprise-accounts/emu-short-summary.md,rendering error
347+
translations/zh-CN/data/reusables/enterprise-accounts/emu-short-summary.md,broken liquid tags
348348
translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md,broken liquid tags
349349
translations/zh-CN/data/reusables/enterprise-licensing/you-can-sync-for-a-combined-view.md,broken liquid tags
350350
translations/zh-CN/data/reusables/enterprise_installation/hardware-considerations-all-platforms.md,broken liquid tags
351351
translations/zh-CN/data/reusables/enterprise_installation/hardware-rec-table.md,broken liquid tags
352352
translations/zh-CN/data/reusables/enterprise_installation/upgrade-hardware-requirements.md,broken liquid tags
353353
translations/zh-CN/data/reusables/enterprise_management_console/badge_indicator.md,broken liquid tags
354-
translations/zh-CN/data/reusables/gated-features/enterprise-accounts.md,rendering error
354+
translations/zh-CN/data/reusables/gated-features/enterprise-accounts.md,broken liquid tags
355355
translations/zh-CN/data/reusables/gated-features/packages.md,broken liquid tags
356356
translations/zh-CN/data/reusables/gated-features/secret-scanning.md,broken liquid tags
357357
translations/zh-CN/data/reusables/getting-started/actions.md,broken liquid tags
@@ -372,9 +372,9 @@ translations/zh-CN/data/reusables/repositories/deleted_forks_from_private_reposi
372372
translations/zh-CN/data/reusables/repositories/enable-security-alerts.md,broken liquid tags
373373
translations/zh-CN/data/reusables/repositories/github-reviews-security-advisories.md,broken liquid tags
374374
translations/zh-CN/data/reusables/repositories/select-marketplace-apps.md,broken liquid tags
375-
translations/zh-CN/data/reusables/saml/saml-session-oauth.md,rendering error
375+
translations/zh-CN/data/reusables/saml/saml-session-oauth.md,broken liquid tags
376376
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,Listed in localization-support#489
377-
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,rendering error
377+
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,broken liquid tags
378378
translations/zh-CN/data/reusables/scim/after-you-configure-saml.md,broken liquid tags
379379
translations/zh-CN/data/reusables/secret-scanning/enterprise-enable-secret-scanning.md,broken liquid tags
380380
translations/zh-CN/data/reusables/security-advisory/link-browsing-advisory-db.md,broken liquid tags

translations/zh-CN/content/actions/creating-actions/metadata-syntax-for-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ outputs:
110110

111111
## 用于复合操作的 `outputs`
112112

113-
**Optional** `outputs` use the same parameters as `outputs.<output_id>` and `outputs.<output_id>.description` (see "[`outputs` for Docker container and JavaScript actions](#outputs-for-docker-container-and-javascript-actions)"), but also includes the `value` token.
113+
**可选** `outputs` 使用与 `outputs.<output_id>` `outputs.<output_id>.description` 相同的参数(请参阅“用于 Docker 容器和 JavaScript 操作的 [`outputs`](#outputs-for-docker-container-and-javascript-actions)”),但也包括 `value` 令牌。
114114

115115
{% data reusables.actions.output-limitations %}
116116

@@ -371,7 +371,7 @@ runs:
371371

372372
#### `runs.steps[*].continue-on-error`
373373

374-
**Optional** Prevents the action from failing when a step fails. Set to `true` to allow the action to pass when this step fails.
374+
**可选** 防止在步骤失败时操作失败。 设置为 `true` 以允许在此步骤失败时通过操作。
375375

376376
## 用于 Docker 容器操作的 `runs`
377377

translations/zh-CN/content/actions/learn-github-actions/contexts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
| `github.event_path` | `字符串` | 运行器上包含完整事件 web 挂钩负载的文件的路径。 |
193193
| `github.graphql_url` | `字符串` | {% data variables.product.prodname_dotcom %} GraphQL API 的 URL。 |
194194
| `github.head_ref` | `字符串` | 工作流程运行中拉取请求的 `head_ref` 或来源分支。 此属性仅在触发工作流程运行的事件为 `pull_request``pull_request_target` 时才可用。 |
195-
| `github.job` | `字符串` | 当前作业的 [`job_id`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id)。 <br /> Note: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`. |
195+
| `github.job` | `字符串` | 当前作业的 [`job_id`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id)。 <br /> 注意:此上下文属性由 Actions 运行器设置,并且仅在作业的执行 `steps` 中可用。 否则,此属性的值将为 `null` |
196196
| `github.ref` | `字符串` | 触发工作流程的分支或标记参考。 对于分支,格式为 `refs/heads/<branch_name>`,对于标记是 `refs/tags/<tag_name>`|
197197
{%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5338 %}
198198
| `github.ref_name` | `string` | {% data reusables.actions.ref_name-description %} | | `github.ref_protected` | `string` | {% data reusables.actions.ref_protected-description %} | | `github.ref_type` | `string` | {% data reusables.actions.ref_type-description %}
@@ -201,7 +201,7 @@ jobs:
201201
{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-4722 %}
202202
| `github.run_attempt` | `string` | 在存储库中运行的特定工作流程的每次尝试的唯一编号。 对于工作流程运行的第一次尝试,此数字从 1 开始,并随着每次重新运行而递增。 |
203203
{%- endif %}
204-
| `github.server_url` | `string` | GitHub 服务器的 URL。 例如:`https://github.com`| | `github.sha` | `string` | 触发工作流运行的提交 SHA。 | | `github.token` | `string` | 用于代表存储库上安装的 GitHub 应用进行身份验证的令牌。 这在功能上等同于 `GITHUB_TOKEN` 密码。 更多信息请参阅“[自动令牌身份验证](/actions/security-guides/automatic-token-authentication)”。 <br /> Note: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`. | | `github.workflow` | `string` | 工作流程的名称。 如果工作流程文件未指定 `name`,此属性的值将是仓库中工作流程文件的完整路径。 | | `github.workspace` | `string` | 运行器上步骤的默认工作目录,以及使用[`检出`](https://github.com/actions/checkout)操作时存储库的默认位置。 |
204+
| `github.server_url` | `string` | GitHub 服务器的 URL。 例如:`https://github.com`| | `github.sha` | `string` | 触发工作流运行的提交 SHA。 | | `github.token` | `string` | 用于代表存储库上安装的 GitHub 应用进行身份验证的令牌。 这在功能上等同于 `GITHUB_TOKEN` 密码。 更多信息请参阅“[自动令牌身份验证](/actions/security-guides/automatic-token-authentication)”。 <br /> 注意:此上下文属性由 Actions 运行器设置,并且仅在作业的执行 `steps` 中可用。 否则,此属性的值将为 `null` | | `github.workflow` | `string` | 工作流程的名称。 如果工作流程文件未指定 `name`,此属性的值将是仓库中工作流程文件的完整路径。 | | `github.workspace` | `string` | 运行器上步骤的默认工作目录,以及使用[`检出`](https://github.com/actions/checkout)操作时存储库的默认位置。 |
205205

206206
### `github` 上下文的示例内容
207207

translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ versions:
2424

2525
{% if debug-reruns %}
2626

27-
Additionally, anyone who has access to run a workflow can enable runner diagnostic logging and step debug logging for a workflow re-run. For more information, see "[Re-running workflows and jobs](/actions/managing-workflow-runs/re-running-workflows-and-jobs)."
27+
Additionally, anyone who has access to run a workflow can enable runner diagnostic logging and step debug logging for a workflow re-run. 更多信息请参阅“[重新运行工作流程和作业](/actions/managing-workflow-runs/re-running-workflows-and-jobs)”。
2828

2929
{% endif %}
3030

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: 连接到专用网络
3+
intro: 'You can connect {% data variables.product.prodname_dotcom %}-hosted runners to resources on a private network, including package registries, secret managers, and other on-premises services.'
4+
versions:
5+
fpt: '*'
6+
ghes: '*'
7+
ghec: '*'
8+
type: how_to
9+
topics:
10+
- Actions
11+
- Developer
12+
---
13+
14+
{% data reusables.actions.enterprise-beta %}
15+
{% data reusables.actions.enterprise-github-hosted-runners %}
16+
17+
## About {% data variables.product.prodname_dotcom %}-hosted runners networking
18+
19+
By default, {% data variables.product.prodname_dotcom %}-hosted runners have access to the public internet. However, you may also want these runners to access resources on your private network, such as a package registry, a secret manager, or other on-premise services.
20+
21+
{% data variables.product.prodname_dotcom %}-hosted runners are shared across all {% data variables.product.prodname_dotcom %} customers, so you will need a way of connecting your private network to just your runners while they are running your workflows. There are a few different approaches you could take to configure this access, each with different advantages and disadvantages.
22+
23+
{% ifversion fpt or ghec or ghes > 3.4 %}
24+
### Using an API Gateway with OIDC
25+
26+
With {% data variables.product.prodname_actions %}, you can use OpenID Connect (OIDC) tokens to authenticate your workflow outside of {% data variables.product.prodname_actions %}. For example, you could run an API Gateway on the edge of your private network that authenticates incoming requests with the OIDC token and then makes API requests on behalf of your workflow in your private network.
27+
28+
The following diagram gives an overview of this solution's architecture:
29+
30+
![Diagram of an OIDC gateway](/assets/images/help/images/actions-oidc-gateway.png)
31+
32+
It's important that you authenticate not just that the OIDC token came from {% data variables.product.prodname_actions %}, but that it came specifically from your expected workflows, so that other {% data variables.product.prodname_actions %} users aren't able to access services in your private network. You can use OIDC claims to create these conditions. For more information, see "[Defining trust conditions on cloud roles using OIDC claims](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#defining-trust-conditions-on-cloud-roles-using-oidc-claims)."
33+
34+
The main disadvantage of this approach is you have to implement the API gateway to make requests on your behalf, as well as run it on the edge of your network.
35+
36+
But there are various advantages too:
37+
- You don't need to configure any firewalls, or modify the routing of your private network.
38+
- The API gateway is stateless, and so it scales horizontally to handle high availability and high throughput.
39+
40+
For more information, see [a reference implementation of an API Gateway](https://github.com/github/actions-oidc-gateway-example) (note that this requires customization for your use case and is not ready-to-run as-is), and "[About security hardening with OpenID Connect](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)".
41+
{% endif %}
42+
43+
### Using WireGuard to create a network overlay
44+
45+
If you don't want to maintain separate infrastructure for an API Gateway, you can create an overlay network between your runner and a service in your private network, by running WireGuard in both places.
46+
47+
There are various disadvantages to this approach:
48+
49+
- To reach WireGuard running on your private service, you will need a well-known IP address and port that your workflow can reference: this can either be a public IP address and port, a port mapping on a network gateway, or a service that dynamically updates DNS.
50+
- WireGuard doesn't handle NAT traversal out of the box, so you'll need to identify a way to provide this service.
51+
- This connection is one-to-one, so if you need high availability or high throughput you'll need to build that on top of WireGuard.
52+
- You'll need to generate and securely store keys for both the runner and your private service. WireGuard uses UDP, so your network must support UDP traffic.
53+
54+
There are some advantages too, as you can run WireGuard on an existing server so you don't have to maintain separate infrastructure, and it's well supported on {% data variables.product.prodname_dotcom %}-hosted runners.
55+
56+
### Example: Configuring WireGuard
57+
58+
This example workflow configures WireGuard to connect to a private service.
59+
60+
For this example, the WireGuard instance running in the private network has this configuration:
61+
- Overlay network IP address of `192.168.1.1`
62+
- Public IP address and port of `1.2.3.4:56789`
63+
- Public key `examplepubkey1234...`
64+
65+
The WireGuard instance in the {% data variables.product.prodname_actions %} runner has this configuration:
66+
- Overlay network IP address of `192.168.1.2`
67+
- Private key stores as an {% data variables.product.prodname_actions %} secret under `WIREGUARD_PRIVATE_KEY`
68+
69+
```yaml
70+
name: WireGuard example
71+
72+
on:
73+
workflow_dispatch:
74+
75+
jobs:
76+
wireguard_example:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- run: sudo apt install wireguard
80+
81+
- run: echo "${{ secrets.WIREGUARD_PRIVATE_KEY }}" > privatekey
82+
83+
- run: sudo ip link add dev wg0 type wireguard
84+
85+
- run: sudo ip address add dev wg0 192.168.1.2 peer 192.168.1.1
86+
87+
- run: sudo wg set wg0 listen-port 48123 private-key privatekey peer examplepubkey1234... allowed-ips 0.0.0.0/0 endpoint 1.2.3.4:56789
88+
89+
- run: sudo ip link set up dev wg0
90+
91+
- run: curl -vvv http://192.168.1.1
92+
```
93+
94+
For more information, see [WireGuard's Quick Start](https://www.wireguard.com/quickstart/), as well as "[Encrypted Secrets](/actions/security-guides/encrypted-secrets)" for how to securely store keys.
95+
96+
### Using Tailscale to create a network overlay
97+
98+
Tailscale is a commercial product built on top of WireGuard. This option is very similar to WireGuard, except Tailscale is more of a complete product experience instead of an open source component.
99+
100+
It's disadvantages are similar to WireGuard: The connection is one-to-one, so you might need to do additional work for high availability or high throughput. You still need to generate and securely store keys. The protocol is still UDP, so your network must support UDP traffic.
101+
102+
However, there are some advantages over WireGuard: NAT traversal is built-in, so you don't need to expose a port to the public internet. It is by far the quickest of these options to get up and running, since Tailscale provides an {% data variables.product.prodname_actions %} workflow with a single step to connect to the overlay network.
103+
104+
For more information, see the [Tailscale GitHub Action](https://github.com/tailscale/github-action), as well as "[Encrypted Secrets](/actions/security-guides/encrypted-secrets)" for how to securely store keys.

translations/zh-CN/content/actions/using-github-hosted-runners/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ children:
99
- /about-github-hosted-runners
1010
- /monitoring-your-current-jobs
1111
- /customizing-github-hosted-runners
12+
- /connecting-to-a-private-network
1213
shortTitle: 使用 GitHub 托管的运行器
1314
---
1415

translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ topics:
1717
- Licensing
1818
shortTitle: Automatic user license sync
1919
---
20-
## About license synchronization
20+
## About automatic license synchronization
21+
22+
{% data reusables.enterprise-licensing.unique-user-licensing-model %}
2123

2224
{% data reusables.enterprise-licensing.about-license-sync %} For more information, see "[About {% data variables.product.prodname_github_connect %}](/admin/configuration/configuring-github-connect/about-github-connect#data-transmission-for-github-connect)."
2325

translations/zh-CN/content/admin/configuration/configuring-your-enterprise/verifying-or-approving-a-domain-for-your-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ redirect_from:
3030

3131
验证企业帐户域的所有权后,每个在其资料中列出域的组织资料中将显示"已验证"徽章。 {% data reusables.organizations.verified-domains-details %}
3232

33-
组织所有者将能够通过查看已验证域中的每个成员的电子邮件地址来验证组织成员的身份。
33+
For domains configured at the enterprise level, enterprise owners can verify the identity of organization members by viewing each member's email address within the verified domain. Enterprise owners can also view a list of enterprise members who don't have an email address from a verified domain associated with their user account on {% data variables.product.prodname_dotcom %}. For more information, see "[Viewing members without an email address from a verified domain](/admin/user-management/managing-users-in-your-enterprise/viewing-people-in-your-enterprise#viewing-members-without-an-email-address-from-a-verified-domain)."
3434

3535
验证企业帐户的域后,您可以将企业帐户拥有的所有组织的电子邮件通知限制为已验证域。 更多信息请参阅“[限制企业的电子邮件通知](/admin/policies/enforcing-policies-for-your-enterprise/restricting-email-notifications-for-your-enterprise)”。
3636

0 commit comments

Comments
 (0)