Skip to content

Commit c1aadf8

Browse files
docubotgracepark
andauthored
New translation batch for cn (github#28587)
* 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 Co-authored-by: Grace Park <[email protected]>
1 parent 32f3c24 commit c1aadf8

File tree

19 files changed

+599
-52
lines changed

19 files changed

+599
-52
lines changed

translations/log/cn-resets.csv

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ translations/zh-CN/content/code-security/getting-started/securing-your-repositor
169169
translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md,broken liquid tags
170170
translations/zh-CN/content/code-security/secret-scanning/secret-scanning-patterns.md,broken liquid tags
171171
translations/zh-CN/content/code-security/supply-chain-security/end-to-end-supply-chain/securing-accounts.md,broken liquid tags
172+
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md,broken liquid tags
172173
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security.md,broken liquid tags
173174
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph.md,Listed in localization-support#489
174175
translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/troubleshooting-the-dependency-graph.md,broken liquid tags

translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ jobs:
138138
- name: Deploy to Azure Web App
139139
id: deploy-to-webapp
140140
uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e
141-
with:
142-
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
143-
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
144-
images: 'ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}'
141+
with:
142+
app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %}
143+
publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %}
144+
images: 'ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %}'
145145
```
146146

147147
## 其他资源

translations/zh-CN/content/actions/hosting-your-own-runners/customizing-the-containers-used-by-jobs.md

+530
Large diffs are not rendered by default.

translations/zh-CN/content/actions/hosting-your-own-runners/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ children:
2020
- /adding-self-hosted-runners
2121
- /autoscaling-with-self-hosted-runners
2222
- /running-scripts-before-or-after-a-job
23+
- /customizing-the-containers-used-by-jobs
2324
- /configuring-the-self-hosted-runner-application-as-a-service
2425
- /using-a-proxy-server-with-self-hosted-runners
2526
- /using-labels-with-self-hosted-runners

translations/zh-CN/content/code-security/security-overview/filtering-alerts-in-the-security-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ shortTitle: 筛选警报
2323

2424
## 关于筛选安全性概述
2525

26-
可以使用安全概述中的筛选器,根据一系列因素(如警报风险级别、警报类型和功能启用)缩小关注范围。 根据特定视图以及是在组织、团队还是存储库级别进行分析,可以使用不同的筛选器。
26+
可以使用安全概述中的筛选器,根据一系列因素(如警报风险级别、警报类型和功能启用)缩小关注范围。 Different filters are available depending on the specific view and whether your analysis is at the organization, team or repository level.
2727

2828
## 按仓库过滤
2929

translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review.md

+21-20
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: 关于依赖项审查
3-
intro: 依赖项审查可让您在将有漏洞的依赖项引入您的环境之前找到它们,并提供关于许可证、依赖项和依赖项存在时间的信息。
2+
title: About dependency review
3+
intro: 'Dependency review lets you catch vulnerable dependencies before you introduce them to your environment, and provides information on license, dependents, and age of dependencies.'
44
product: '{% data reusables.gated-features.dependency-review %}'
5-
shortTitle: 依赖项审查
5+
shortTitle: Dependency review
66
versions:
77
fpt: '*'
88
ghes: '>= 3.2'
@@ -21,47 +21,48 @@ redirect_from:
2121

2222
{% data reusables.dependency-review.beta %}
2323

24-
## 关于依赖项审查
24+
## About dependency review
2525

26-
{% data reusables.dependency-review.feature-overview %}
26+
{% data reusables.dependency-review.feature-overview %}
2727

28-
如果拉取请求针对仓库的默认分支并且包含对包清单或锁定文件的更改,您可以显示依赖项审查以查看更改的内容。 依赖项审查包括对锁定文件中间接依赖项的更改详情,并告诉您任何已添加或更新的依赖项是否包含已知漏洞。
28+
If a pull request targets your repository's default branch and contains changes to package manifests or lock files, you can display a dependency review to see what has changed. The dependency review includes details of changes to indirect dependencies in lock files, and it tells you if any of the added or updated dependencies contain known vulnerabilities.
2929

30-
有时,您可能只想更新清单中一个依赖项的版本并生成拉取请求。 但是,如果此直接依赖项的更新版本也更新了依赖项,则拉取请求的更改可能超过您的预期。 每个清单和锁定文件的依赖项审查提供了一种简单的方法来查看更改的内容,以及任何新的依赖项版本是否包含已知的漏洞。
30+
Sometimes you might just want to update the version of one dependency in a manifest and generate a pull request. However, if the updated version of this direct dependency also has updated dependencies, your pull request may have more changes than you expected. The dependency review for each manifest and lock file provides an easy way to see what has changed, and whether any of the new dependency versions contain known vulnerabilities.
3131

32-
通过检查拉取请求中的依赖项审查并更改被标记为有漏洞的任何依赖项,可以避免将漏洞添加到项目中。 有关依赖项审查工作的更多信息,请参阅“[审查拉取请求中的依赖项更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-dependency-changes-in-a-pull-request)”。
32+
By checking the dependency reviews in a pull request, and changing any dependencies that are flagged as vulnerable, you can avoid vulnerabilities being added to your project. For more information about how dependency review works, see "[Reviewing dependency changes in a pull request](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-dependency-changes-in-a-pull-request)."
3333

34-
有关配置依赖项评审的详细信息,请参阅“[配置依赖项审查](/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-dependency-review)”。
34+
For more information about configuring dependency review, see "[Configuring dependency review](/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-dependency-review)."
3535

36-
{% data variables.product.prodname_dependabot_alerts %} 将会查找依赖项中存在的漏洞,但避免引入潜在问题比在以后修复它们要好得多。 有关 {% data variables.product.prodname_dependabot_alerts %} 的更多信息,请参阅“[关于 {% data variables.product.prodname_dependabot_alerts %}](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies#dependabot-alerts-for-vulnerable-dependencies)”。
36+
{% data variables.product.prodname_dependabot_alerts %} will find vulnerabilities that are already in your dependencies, but it's much better to avoid introducing potential problems than to fix problems at a later date. For more information about {% data variables.product.prodname_dependabot_alerts %}, see "[About {% data variables.product.prodname_dependabot_alerts %}](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies#dependabot-alerts-for-vulnerable-dependencies)."
3737

38-
依赖项审查支持与依赖关系图相同的语言和包管理生态系统。 更多信息请参阅“[关于依赖关系图](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)”。
38+
Dependency review supports the same languages and package management ecosystems as the dependency graph. For more information, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)."
3939

40-
有关 {% data variables.product.product_name %} 上可用的供应链功能的更多信息,请参阅“[关于供应链安全](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security)”。
40+
For more information on supply chain features available on {% data variables.product.product_name %}, see "[About supply chain security](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security)."
4141

4242
{% ifversion ghec or ghes %}
43-
## 启用依赖项审查
43+
## Enabling dependency review
4444

45-
启用依赖关系图时,依赖项审查功能可用。 更多信息请参阅“{% ifversion ghec %}[启用依赖关系图](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph#enabling-the-dependency-graph){% elsif ghes %}[为企业启用依赖关系图](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise){% endif %}”。
45+
The dependency review feature becomes available when you enable the dependency graph. For more information, see "{% ifversion ghec %}[Enabling the dependency graph](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph#enabling-the-dependency-graph){% elsif ghes %}[Enabling the dependency graph for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/enabling-the-dependency-graph-for-your-enterprise){% endif %}."
4646
{% endif %}
4747

4848
{% ifversion fpt or ghec or ghes > 3.5 or ghae-issue-6396 %}
49-
## 依赖项审查实施
49+
## Dependency review enforcement
5050

5151
{% data reusables.dependency-review.dependency-review-action-beta-note %}
5252

5353
The action is available for all {% ifversion fpt or ghec %}public repositories, as well as private {% endif %}repositories that have {% data variables.product.prodname_GH_advanced_security %} enabled.
5454

55-
You can use the {% data variables.product.prodname_dependency_review_action %} in your repository to enforce dependency reviews on your pull requests. 该操作将扫描由拉取请求中的包版本更改是否引入有漏洞的依赖项版本,并向您示警相关的安全漏洞。 这便于您更好地了解拉取请求中发生的变化,并有助于防止将漏洞添加到存储库中。 更多信息请参阅 [`dependency-review-action`](https://github.com/actions/dependency-review-action)
55+
You can use the {% data variables.product.prodname_dependency_review_action %} in your repository to enforce dependency reviews on your pull requests. The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests, and warns you about the associated security vulnerabilities. This gives you better visibility of what's changing in a pull request, and helps prevent vulnerabilities being added to your repository. For more information, see [`dependency-review-action`](https://github.com/actions/dependency-review-action).
5656

57-
![依赖项审查操作示例](/assets/images/help/graphs/dependency-review-action.png)
57+
![Dependency review action example](/assets/images/help/graphs/dependency-review-action.png)
5858

59-
By default, the {% data variables.product.prodname_dependency_review_action %} check will fail if it discovers any vulnerable packages. A failed check blocks a pull request from being merged when the repository owner requires the dependency review check to pass. 更多信息请参阅“[关于受保护分支](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#require-status-checks-before-merging)”。
59+
By default, the {% data variables.product.prodname_dependency_review_action %} check will fail if it discovers any vulnerable packages. A failed check blocks a pull request from being merged when the repository owner requires the dependency review check to pass. For more information, see "[About protected branches](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#require-status-checks-before-merging)."
6060

61-
该操作使用依赖项审查 REST API 来获取基本提交和头部提交之间的依赖项更改差异。 您可以使用依赖项审查 API 来获取存储库上任意两个提交之间的依赖项更改差异(包括漏洞数据)。 更多信息请参阅“[依赖项审查](/rest/reference/dependency-graph#dependency-review)”。
61+
The action uses the Dependency Review REST API to get the diff of dependency changes between the base commit and head commit. You can use the Dependency Review API to get the diff of dependency changes, including vulnerability data, between any two commits on a repository. For more information, see "[Dependency review](/rest/reference/dependency-graph#dependency-review)."
6262

6363
{% ifversion dependency-review-action-configuration %}
64-
You can configure the {% data variables.product.prodname_dependency_review_action %} to better suit your needs. For example, you can specify the severity level that will make the action fail, or set an allow or deny list for licenses to scan. For more information, see "[Configuring dependency review](/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-dependency-review#configuring-the-dependency-review-github-action)."
64+
You can configure the {% data variables.product.prodname_dependency_review_action %} to better suit your needs. For example, you can specify the severity level that will make the action fail, or set an allow or deny list for licenses to scan. For more information, see "[Configuring dependency review](/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-dependency-review#configuring-the-dependency-review-github-action)."
65+
6566
{% endif %}
6667

6768
{% endif %}

translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre
159159

160160
## 用户到服务器请求
161161

162-
虽然大多数 API 交互应使用服务器到服务器安装访问令牌进行,但某些端点允许您使用用户访问令牌通过 API 执行操作。 您的应用程序可以使用[GraphQL v4]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql) [REST v3](/rest) 端点发出以下请求。
162+
虽然大多数 API 交互应使用服务器到服务器安装访问令牌进行,但某些端点允许您使用用户访问令牌通过 API 执行操作。 Your app can make the following requests using [GraphQL]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql) or [REST](/rest) endpoints.
163163

164164
### 支持的端点
165165

translations/zh-CN/content/developers/apps/getting-started-with-apps/migrating-oauth-apps-to-github-apps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ We recommend reviewing the list of API endpoints you need as early as possible.
5252

5353
### Design to stay within API rate limits
5454

55-
GitHub Apps use [sliding rules for rate limits](/apps/building-github-apps/understanding-rate-limits-for-github-apps/), which can increase based on the number of repositories and users in the organization. A GitHub App can also make use of [conditional requests](/rest/overview/resources-in-the-rest-api#conditional-requests) or consolidate requests by using the [GraphQL API V4]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql).
55+
GitHub Apps use [sliding rules for rate limits](/apps/building-github-apps/understanding-rate-limits-for-github-apps/), which can increase based on the number of repositories and users in the organization. A GitHub App can also make use of [conditional requests](/rest/overview/resources-in-the-rest-api#conditional-requests) or consolidate requests by using the [GraphQL API]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql).
5656

5757
### Register a new GitHub App
5858

translations/zh-CN/content/developers/overview/about-githubs-apis.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ topics:
1414
- API
1515
---
1616

17-
GitHub API 有两个稳定版本:[REST API](/rest)[GraphQL API]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql)。 使用 REST API 时,我们建议您[通过 `Accept` 标头请求 v3](/v3/media/#request-specific-version)。 有关使用 GraphQL API 的信息,请参阅 [v4 文档]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql)。
17+
GitHub API 有两个稳定版本:[REST API](/rest)[GraphQL API]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql)。
1818

1919
## 已弃用版本
2020

translations/zh-CN/content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ shortTitle: 保存有星标的仓库
4141

4242
{% ifversion fpt or ghec %}
4343

44-
## Viewing who has starred a repository
44+
## 查看谁为存储库加了星标
4545

46+
您可以查看已为您有权访问的公共存储库或私有存储库加星标的每个人。
4647

47-
You can view everyone who has starred a public repository or a private repository you have access to.
48-
49-
50-
To view everyone who has starred a repository, add `/stargazers` to the end of the URL of a repository. For example, to view stargazers for the github/docs repository, visit https://github.com/github/docs/stargazers.
5148

49+
要查看已为存储库加星标的每个人,请将 `/stargazers` 添加到存储库 URL 的末尾。 例如,要查看 github/docs 存储库的标星者,请访问 https://github.com/github/docs/stargazers。
5250

5351
## 使用列表组织带星标的存储库
5452

translations/zh-CN/content/get-started/quickstart/contributing-to-projects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ gh repo fork <em>repository</em> --clone=true
8181

8282
## 创建和推送更改
8383

84-
Go ahead and make a few changes to the project using your favorite text editor, like [Visual Studio Code](https://code.visualstudio.com). 例如,您可以更改 `index.html` 中的文本以添加您的 GitHub 用户名。
84+
继续使用您喜欢的文本编辑器对项目进行一些更改,例如 [Visual Studio Code](https://code.visualstudio.com) 例如,您可以更改 `index.html` 中的文本以添加您的 GitHub 用户名。
8585

8686
当您准备好提交更改时,请暂存并提交更改。 `git add .` 告诉 Git 您希望在下一次提交中包含所有更改。 `git commit` 会拍摄这些更改的快照。
8787

translations/zh-CN/content/graphql/guides/using-global-node-ids.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ topics:
1212
- API
1313
---
1414

15-
您可以使用 REST API 或 GraphQL API 访问 GitHub 中的大多数对象(用户、议题、拉取请求等)。 您可以从 REST API 中找到许多对象的**全局节点 ID** ,并在 GraphQL 操作中使用这些 ID。 更多信息请参阅“[预览 GraphQL API v4 REST API v3 资源中的节点 ID](https://developer.github.com/changes/2017-12-19-graphql-node-id/)”。
15+
您可以使用 REST API 或 GraphQL API 访问 GitHub 中的大多数对象(用户、议题、拉取请求等)。 您可以从 REST API 中找到许多对象的**全局节点 ID** ,并在 GraphQL 操作中使用这些 ID。 For more information, see "[Preview GraphQL API Node IDs in REST API resources](https://developer.github.com/changes/2017-12-19-graphql-node-id/)."
1616

1717
{% note %}
1818

0 commit comments

Comments
 (0)