From af9dbd3cea7bf8d17e88735dd71bacf4e5d564e5 Mon Sep 17 00:00:00 2001 From: docubot <67483024+docubot@users.noreply.github.com> Date: Fri, 4 Mar 2022 12:01:49 -0800 Subject: [PATCH] New translation batch for cn (#25860) * Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check parsing * 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: Peter Bengtsson --- translations/log/cn-resets.csv | 7 +- .../managing-your-subscriptions.md | 8 +- .../viewing-your-subscriptions.md | 11 +- .../about-notifications.md | 5 +- .../configuring-notifications.md | 15 +- .../converting-a-user-into-an-organization.md | 4 +- ...analysis-settings-for-your-user-account.md | 4 +- ...on-levels-for-a-user-account-repository.md | 44 ++--- .../building-and-testing-java-with-ant.md | 2 +- .../building-and-testing-java-with-gradle.md | 2 +- .../building-and-testing-java-with-maven.md | 2 +- .../building-and-testing-net.md | 2 +- .../building-and-testing-powershell.md | 8 +- .../building-and-testing-python.md | 2 +- .../creating-actions/about-custom-actions.md | 3 +- .../creating-a-composite-action.md | 24 +-- .../creating-a-docker-container-action.md | 7 +- .../creating-a-javascript-action.md | 8 +- ...ions-and-workflows-with-your-enterprise.md | 6 - .../about-continuous-deployment.md | 6 +- .../deploying-with-github-actions.md | 2 +- ...ing-to-amazon-elastic-container-service.md | 2 - .../deploying-docker-to-azure-app-service.md | 2 - .../deploying-java-to-azure-app-service.md | 9 +- .../deploying-net-to-azure-app-service.md | 9 +- .../deploying-nodejs-to-azure-app-service.md | 11 +- .../deploying-php-to-azure-app-service.md | 9 +- .../deploying-python-to-azure-app-service.md | 7 +- .../deploying-to-google-kubernetes-engine.md | 2 - .../viewing-deployment-history.md | 2 +- ...-security-hardening-with-openid-connect.md | 2 +- .../using-environments-for-deployment.md | 2 +- translations/zh-CN/content/actions/guides.md | 3 +- .../about-self-hosted-runners.md | 24 ++- .../adding-self-hosted-runners.md | 47 +++-- .../autoscaling-with-self-hosted-runners.md | 2 +- ...-hosted-runner-application-as-a-service.md | 1 - .../actions/hosting-your-own-runners/index.md | 1 - ...ess-to-self-hosted-runners-using-groups.md | 55 ++---- ...and-troubleshooting-self-hosted-runners.md | 1 - .../removing-self-hosted-runners.md | 1 - ...a-proxy-server-with-self-hosted-runners.md | 1 - .../using-labels-with-self-hosted-runners.md | 1 - ...using-self-hosted-runners-in-a-workflow.md | 1 - .../actions/learn-github-actions/contexts.md | 4 +- .../essential-features-of-github-actions.md | 4 +- .../understanding-github-actions.md | 24 ++- .../canceling-a-workflow.md | 7 +- .../downloading-workflow-artifacts.md | 6 +- .../actions/managing-workflow-runs/index.md | 2 +- .../removing-workflow-artifacts.md | 6 +- .../reviewing-deployments.md | 2 +- ...grating-from-circleci-to-github-actions.md | 4 +- ...ting-from-gitlab-cicd-to-github-actions.md | 2 +- ...rating-from-travis-ci-to-github-actions.md | 2 +- .../enabling-debug-logging.md | 2 - .../using-the-visualization-graph.md | 2 +- .../using-workflow-run-logs.md | 53 ++--- .../security-guides/encrypted-secrets.md | 35 ++-- .../security-hardening-for-github-actions.md | 18 +- .../advanced-workflow-features.md | 5 +- .../events-that-trigger-workflows.md | 18 +- .../storing-workflow-data-as-artifacts.md | 22 +-- .../workflow-syntax-for-github-actions.md | 6 +- ...guring-code-scanning-for-your-appliance.md | 7 +- ...ring-secret-scanning-for-your-appliance.md | 3 +- ...b-advanced-security-for-your-enterprise.md | 16 +- ...c-user-license-sync-for-your-enterprise.md | 15 +- ...enabling-dependabot-for-your-enterprise.md | 19 +- ...ified-contributions-for-your-enterprise.md | 2 +- ...ling-unified-search-for-your-enterprise.md | 2 +- .../managing-github-connect.md | 6 +- ...aging-github-mobile-for-your-enterprise.md | 2 +- .../about-github-actions-for-enterprises.md | 4 +- ...arted-with-github-actions-for-github-ae.md | 8 +- ...hub-actions-for-github-enterprise-cloud.md | 4 +- ...ub-actions-for-github-enterprise-server.md | 11 +- ...self-hosted-runners-for-your-enterprise.md | 150 +++++++++++++++ .../index.md | 1 + ...ucing-github-actions-to-your-enterprise.md | 4 +- ...-githubcom-actions-using-github-connect.md | 10 +- ...-hosted-runners-without-internet-access.md | 2 +- translations/zh-CN/content/admin/guides.md | 3 +- translations/zh-CN/content/admin/index.md | 10 +- ...e-ecosystem-support-for-your-enterprise.md | 3 +- ...or-advanced-security-in-your-enterprise.md | 2 +- ...s-for-github-actions-in-your-enterprise.md | 2 +- .../creating-a-pre-receive-hook-script.md | 2 +- .../creating-teams.md | 2 +- .../audited-actions.md | 2 +- translations/zh-CN/content/billing/index.md | 2 +- ...ut-billing-for-github-advanced-security.md | 2 +- .../index.md | 2 +- ...ing-your-github-advanced-security-usage.md | 4 +- .../about-billing-for-your-enterprise.md | 2 +- .../index.md | 1 + ...io-subscriptions-with-github-enterprise.md | 2 +- ...rise-server-and-github-enterprise-cloud.md | 10 +- ...ing-license-usage-for-github-enterprise.md | 2 +- .../about-code-scanning-with-codeql.md | 2 +- ...ode-scanning-alerts-for-your-repository.md | 2 +- ...tting-up-code-scanning-for-a-repository.md | 2 +- ...-codeql-code-scanning-in-your-ci-system.md | 2 +- ...onfiguring-codeql-cli-in-your-ci-system.md | 2 +- ...iguring-codeql-runner-in-your-ci-system.md | 18 +- ...installing-codeql-cli-in-your-ci-system.md | 3 +- ...ng-from-the-codeql-runner-to-codeql-cli.md | 2 +- ...running-codeql-runner-in-your-ci-system.md | 20 +- ...ng-a-security-policy-to-your-repository.md | 6 +- .../github-security-features.md | 39 +++- .../securing-your-organization.md | 12 +- .../securing-your-repository.md | 3 - .../zh-CN/content/code-security/guides.md | 2 +- .../secret-scanning/about-secret-scanning.md | 46 +++-- ...g-secret-scanning-for-your-repositories.md | 80 +++----- ...ing-custom-patterns-for-secret-scanning.md | 131 +++++++------ .../code-security/secret-scanning/index.md | 2 +- .../managing-alerts-from-secret-scanning.md | 16 ++ .../secret-scanning-partners.md | 55 ------ .../secret-scanning-patterns.md | 64 +++++++ ...ltering-alerts-in-the-security-overview.md | 4 +- ...bout-alerts-for-vulnerable-dependencies.md | 2 +- ...configuring-dependabot-security-updates.md | 4 +- ...loring-the-dependencies-of-a-repository.md | 2 +- ...ing-for-codespaces-in-your-organization.md | 16 +- .../prebuilding-your-codespaces/index.md | 2 +- ...g-up-your-python-project-for-codespaces.md | 4 +- ...ing-creation-and-deletion-of-codespaces.md | 46 ++--- ...reating-a-default-community-health-file.md | 8 +- .../creating-a-github-app-from-a-manifest.md | 13 +- ...ating-a-github-app-using-url-parameters.md | 17 +- .../creating-a-github-app.md | 2 +- ...g-and-authorizing-users-for-github-apps.md | 39 ++-- ...refreshing-user-to-server-access-tokens.md | 4 +- .../authorizing-oauth-apps.md | 10 +- .../creating-an-oauth-app.md | 2 +- .../scopes-for-oauth-apps.md | 61 +++--- .../activating-optional-features-for-apps.md | 15 +- .../webhooks/webhook-events-and-payloads.md | 6 +- .../run-student-code-in-an-ide.md | 14 +- .../about-github-marketplace.md | 2 +- .../about-github-advanced-security.md | 6 +- .../about-versions-of-github-docs.md | 2 +- .../types-of-github-accounts.md | 2 +- ...se-settings-for-your-private-repository.md | 2 +- .../github-codespaces-privacy-statement.md | 14 +- ...analysis-settings-for-your-organization.md | 43 ++--- ...ing-the-audit-log-for-your-organization.md | 17 +- .../repository-roles-for-an-organization.md | 181 +++++++++--------- ...ng-github-actions-for-your-organization.md | 2 +- ...-a-billing-manager-to-your-organization.md | 2 +- .../about-permissions-for-github-packages.md | 18 +- .../deleting-and-restoring-a-package.md | 2 +- .../introduction-to-github-packages.md | 8 +- .../zh-CN/content/packages/quickstart.md | 3 +- .../working-with-the-apache-maven-registry.md | 2 +- .../working-with-the-docker-registry.md | 2 +- .../working-with-the-gradle-registry.md | 2 +- .../working-with-the-npm-registry.md | 4 +- .../working-with-the-nuget-registry.md | 3 +- .../working-with-the-rubygems-registry.md | 2 +- .../about-custom-domains-and-github-pages.md | 2 +- ...ustom-domain-for-your-github-pages-site.md | 2 +- .../about-github-pages.md | 3 +- .../automatically-merging-a-pull-request.md | 4 +- ...ge-for-pull-requests-in-your-repository.md | 2 +- .../changing-the-default-branch.md | 4 - .../renaming-a-branch.md | 2 +- ...classifying-your-repository-with-topics.md | 2 +- ...ithub-actions-settings-for-a-repository.md | 4 +- ...d-analysis-settings-for-your-repository.md | 10 +- .../index.md | 4 +- .../about-releases.md | 4 +- .../linking-to-releases.md | 8 +- .../managing-releases-in-a-repository.md | 3 - .../deleting-files-in-a-repository.md | 14 +- .../endpoints-available-for-github-apps.md | 17 +- .../permissions-required-for-github-apps.md | 4 +- .../rest/reference/enterprise-admin.md | 2 +- .../zh-CN/content/rest/reference/metrics.md | 2 +- .../content/rest/reference/secret-scanning.md | 4 +- .../creating-a-support-ticket.md | 2 +- .../about-github-support.md | 2 +- .../about-ticket-priority.md | 4 +- .../ghes-3.0/graphql_previews.enterprise.yml | 149 -------------- ...hql_upcoming_changes.public-enterprise.yml | 114 ----------- .../zh-CN/data/learning-tracks/actions.yml | 23 ++- .../zh-CN/data/learning-tracks/admin.yml | 24 ++- .../enterprise-server/3-1/18.yml | 2 + .../enterprise-server/3-2/10.yml | 2 + .../enterprise-server/3-3/18.yml | 15 -- .../release-notes/enterprise-server/3-3/5.yml | 2 + .../actions/about-actions-for-enterprises.md | 1 + .../actions/actions-authentication.md | 2 +- .../actions/actions-bundled-with-ghes.md | 2 +- .../data/reusables/actions/actions-filters.md | 2 +- .../actions/ae-self-hosted-runners-notice.md | 9 - .../actions/allow-specific-actions-intro.md | 4 +- .../reusables/actions/branch-paths-filter.md | 2 +- .../reusables/actions/context-contents.md | 2 +- .../actions/create-azure-app-plan.md | 2 +- .../actions/create-azure-publish-profile.md | 2 +- .../actions/disabling-github-actions.md | 2 +- .../enterprise-github-connect-warning.md | 4 +- .../actions/general-security-hardening.md | 2 +- ...github-hosted-runners-check-concurrency.md | 2 +- .../github-hosted-runners-table-entry.md | 2 +- .../actions/hardware-requirements-3.2.md | 2 +- .../actions/hardware-requirements-before.md | 2 +- .../actions/internal-actions-summary.md | 2 +- .../actions/introducing-enterprise.md | 2 +- .../section-choosing-the-runner-for-a-job.md | 2 - ...section-running-jobs-in-a-container-env.md | 2 +- ...ction-running-jobs-in-a-container-image.md | 2 +- ...ction-running-jobs-in-a-container-ports.md | 2 +- ...g-a-build-matrix-for-your-jobs-failfast.md | 2 +- ...build-matrix-for-your-jobs-max-parallel.md | 2 +- ...g-a-build-matrix-for-your-jobs-strategy.md | 2 +- .../section-using-jobs-in-a-workflow-name.md | 2 +- ...ng-default-values-for-jobs-defaults-job.md | 2 +- ...etting-default-values-for-jobs-defaults.md | 2 +- .../reusables/actions/migrating-enterprise.md | 2 +- .../reusables/actions/minimum-hardware.md | 2 +- .../reusables/actions/oidc-link-to-intro.md | 2 +- .../outside-collaborators-internal-actions.md | 2 +- .../pass-inputs-to-reusable-workflows.md | 2 +- .../actions/perform-blob-storage-precheck.md | 2 +- .../reusables/actions/ref_name-description.md | 2 +- .../actions/ref_protected-description.md | 2 +- .../reusables/actions/ref_type-description.md | 2 +- .../reusable-workflow-calling-syntax.md | 2 +- .../actions/reusable-workflows-ghes-beta.md | 2 +- .../actions/runner-group-assign-policy-org.md | 2 +- .../runner-group-assign-policy-repo.md | 2 +- .../actions/secrets-redaction-warning.md | 2 +- .../self-hosted-runner-add-to-enterprise.md | 16 ++ .../self-hosted-runner-architecture.md | 1 + ...osted-runner-check-installation-success.md | 4 +- .../self-hosted-runner-check-mac-linux.md | 2 +- ...f-hosted-runner-communications-for-ghae.md | 7 + .../actions/self-hosted-runner-configure.md | 3 - .../self-hosted-runner-create-group.md | 2 +- .../actions/self-hosted-runner-description.md | 2 +- ...er-groups-add-to-enterprise-first-steps.md | 11 ++ .../actions/self-hosted-runner-locations.md | 1 + .../self-hosted-runner-ports-protocols.md | 4 +- .../self-hosted-runners-prerequisites.md | 7 + .../actions/starter-workflow-categories.md | 2 +- .../about-ghas-organization-policy.md | 2 +- .../check-for-ghas-license.md | 2 +- .../advanced-security/ghas-availability.md | 10 - .../note-org-enable-uses-seats.md | 2 +- .../starter-workflow-overview.md | 2 +- .../starter-workflows-beta.md | 2 +- .../apps/optional_feature_activation.md | 5 +- .../apps/user-to-server-rate-limits.md | 2 +- .../reusables/billing/license-statuses.md | 2 +- .../classroom/classroom-admins-link.md | 2 +- .../data/reusables/cli/cli-installation.md | 2 +- .../code-scanning/alert-tracking-link.md | 2 +- .../beta-alert-tracking-in-issues.md | 2 +- .../data/reusables/code-scanning/billing.md | 2 +- .../codeql-runner-analyze-example.md | 32 ---- .../code-scanning/upload-sarif-alert-limit.md | 2 +- .../code-scanning/what-is-codeql-cli.md | 2 - .../codespaces/billing-for-prebuilds.md | 2 +- .../codespaces/codespaces-api-beta-note.md | 2 +- .../deleting-a-codespace-in-vscode.md | 2 +- .../codespaces/links-to-get-started.md | 2 +- .../codespaces/port-visibility-settings.md | 2 +- .../codespaces/prebuilds-beta-note.md | 2 +- .../codespaces/prebuilds-crossreference.md | 2 +- .../dependabot/about-the-dependency-graph.md | 2 +- ...security-and-version-updates-onboarding.md | 2 +- .../beta-security-and-version-updates.md | 2 +- .../codespaces-report-download.md | 2 +- .../about-recovery-codes.md | 2 +- .../dormant-user-activity.md | 2 +- .../download-recovery-codes.md | 2 +- .../enterprise-accounts-compliance-tab.md | 2 +- .../enterprise-accounts/github-connect-tab.md | 4 +- .../viewing-dormant-users.md | 2 +- .../about-license-sync.md | 6 +- .../verified-domains-license-sync.md | 5 + .../view-consumed-licenses.md | 1 + .../create-an-enterprise-account.md | 2 +- .../navigate-to-log-streaming-tab.md | 2 +- .../repository-caching-config-summary.md | 2 +- .../repository-caching-release-phase.md | 2 +- .../enterprise/upgrade-ghes-for-features.md | 2 +- .../azure-instance-recommendation.md | 2 +- .../generate-replication-key-pair.md | 2 +- .../proxy-incompatible-with-aws-nlbs.md | 2 +- .../enterprise_installation/replica-steps.md | 2 +- .../verify-replication-channel.md | 2 +- .../save-settings.md | 2 +- .../access-settings.md | 2 +- .../reusables/gated-features/code-scanning.md | 2 +- .../gated-features/generated-health-checks.md | 2 +- .../gated-features/secret-scanning-partner.md | 13 ++ .../gated-features/secret-scanning.md | 10 +- .../gated-features/user-repo-collaborators.md | 2 +- .../reusables/github-ae/saml-idp-table.md | 2 +- .../team-sync-confirm-scim.md | 2 +- .../custom-notification-types.md | 2 +- ...nerable-dependency-notification-options.md | 6 +- .../organizations/mixed-roles-warning.md | 2 +- .../organizations/organization-plans.md | 2 +- .../reusables/organizations/people-export.md | 2 +- .../about-packaging-and-actions.md | 4 - .../reusables/pages/check-workflow-run.md | 2 +- .../org-owners-can-restrict-pages-creation.md | 2 +- ...-builds-with-github-actions-public-beta.md | 2 +- .../reusables/pages/secure-your-domain.md | 2 +- .../pages/settings-verify-domain-confirm.md | 2 +- .../pages/settings-verify-domain-setup.md | 2 +- .../expiring-user-access-tokens.md | 9 +- .../reusables/projects/about-workflows.md | 2 +- .../reusables/projects/project-description.md | 2 +- .../reusables/projects/project-settings.md | 2 +- .../merge-queue-merging-method.md | 2 +- .../merge-queue-overview-short.md | 2 +- .../pull_requests/merge-queue-references.md | 2 +- .../pull_requests/merge-queue-reject.md | 2 +- .../pull_requests/you-can-auto-merge.md | 2 - .../repositories/navigate-to-ghas-settings.md | 2 +- .../navigate-to-job-superlinter.md | 7 - .../reusables/repositories/navigate-to-job.md | 3 + .../navigate-to-workflow-superlinter.md | 1 - .../repositories/navigate-to-workflow.md | 2 +- .../repositories/security-guidelines.md | 2 - .../view-failed-job-results-superlinter.md | 8 - .../repositories/view-failed-job-results.md | 3 + .../repositories/view-run-superlinter.md | 1 - .../data/reusables/repositories/view-run.md | 2 +- .../view-specific-line-superlinter.md | 10 - .../repositories/view-specific-line.md | 3 + .../actions/self-hosted-runner-groups.md | 2 - .../actions/self-hosted-runners.md | 2 - .../secret-scanning/secret-scanning.md | 10 +- .../cannot-update-existing-saml-settings.md | 2 +- .../saml/external-group-audit-events.md | 2 +- .../saml/external-identity-audit-events.md | 2 +- .../data/reusables/saml/okta-ae-sso-beta.md | 2 +- .../reusables/saml/recovery-code-access.md | 2 +- .../saml/removed-users-can-rejoin.md | 2 +- .../data/reusables/saml/saml-accounts.md | 2 +- ...saml-disabled-linked-identities-removed.md | 2 +- .../reusables/secret-scanning/api-beta.md | 2 +- .../secret-scanning/partner-program-link.md | 2 +- .../partner-secret-list-private-repo.md | 26 +-- .../repository-level-advisory-note.md | 2 +- .../security/compliance-report-list.md | 2 +- .../security/compliance-report-screenshot.md | 2 +- .../reusables/sponsors/sponsors-only-repos.md | 2 +- .../reusables/stars/stars-page-navigation.md | 2 +- .../support/free-and-paid-support.md | 2 +- .../support/premium-support-features.md | 2 +- .../data/reusables/support/submit-a-ticket.md | 2 +- .../reusables/support/view-open-tickets.md | 2 +- .../reusables/support/zendesk-old-tickets.md | 2 +- .../user-settings/appearance-settings.md | 2 +- .../user-settings/developer_settings.md | 2 +- .../enabling-fixed-width-fonts.md | 2 +- .../webhooks/check_run_properties.md | 4 +- .../pull_request_webhook_properties.md | 2 +- translations/zh-CN/data/variables/product.yml | 7 +- 367 files changed, 1328 insertions(+), 1653 deletions(-) create mode 100644 translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise.md delete mode 100644 translations/zh-CN/content/code-security/secret-scanning/secret-scanning-partners.md create mode 100644 translations/zh-CN/content/code-security/secret-scanning/secret-scanning-patterns.md delete mode 100644 translations/zh-CN/data/graphql/ghes-3.0/graphql_previews.enterprise.yml delete mode 100644 translations/zh-CN/data/graphql/ghes-3.0/graphql_upcoming_changes.public-enterprise.yml delete mode 100644 translations/zh-CN/data/release-notes/enterprise-server/3-3/18.yml create mode 100644 translations/zh-CN/data/reusables/actions/about-actions-for-enterprises.md delete mode 100644 translations/zh-CN/data/reusables/actions/ae-self-hosted-runners-notice.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runner-add-to-enterprise.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runner-architecture.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runner-communications-for-ghae.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runner-groups-add-to-enterprise-first-steps.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runner-locations.md create mode 100644 translations/zh-CN/data/reusables/actions/self-hosted-runners-prerequisites.md delete mode 100644 translations/zh-CN/data/reusables/advanced-security/ghas-availability.md create mode 100644 translations/zh-CN/data/reusables/enterprise-licensing/verified-domains-license-sync.md create mode 100644 translations/zh-CN/data/reusables/enterprise-licensing/view-consumed-licenses.md create mode 100644 translations/zh-CN/data/reusables/gated-features/secret-scanning-partner.md delete mode 100644 translations/zh-CN/data/reusables/repositories/navigate-to-job-superlinter.md create mode 100644 translations/zh-CN/data/reusables/repositories/navigate-to-job.md delete mode 100644 translations/zh-CN/data/reusables/repositories/navigate-to-workflow-superlinter.md delete mode 100644 translations/zh-CN/data/reusables/repositories/view-failed-job-results-superlinter.md create mode 100644 translations/zh-CN/data/reusables/repositories/view-failed-job-results.md delete mode 100644 translations/zh-CN/data/reusables/repositories/view-run-superlinter.md delete mode 100644 translations/zh-CN/data/reusables/repositories/view-specific-line-superlinter.md create mode 100644 translations/zh-CN/data/reusables/repositories/view-specific-line.md diff --git a/translations/log/cn-resets.csv b/translations/log/cn-resets.csv index 02be8ce43f..e1c8826c50 100644 --- a/translations/log/cn-resets.csv +++ b/translations/log/cn-resets.csv @@ -108,8 +108,6 @@ translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scannin translations/zh-CN/content/code-security/getting-started/securing-your-organization.md,broken liquid tags translations/zh-CN/content/code-security/getting-started/securing-your-repository.md,broken liquid tags translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md,broken liquid tags -translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md,broken liquid tags -translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot.md,broken liquid tags translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md,Listed in localization-support#489 @@ -137,7 +135,6 @@ translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/ins translations/zh-CN/content/desktop/installing-and-configuring-github-desktop/overview/creating-your-first-repository-using-github-desktop.md,broken liquid tags translations/zh-CN/content/developers/apps/building-github-apps/rate-limits-for-github-apps.md,broken liquid tags translations/zh-CN/content/developers/apps/getting-started-with-apps/about-apps.md,broken liquid tags -translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md,broken liquid tags translations/zh-CN/content/developers/apps/getting-started-with-apps/migrating-oauth-apps-to-github-apps.md,broken liquid tags translations/zh-CN/content/developers/github-marketplace/github-marketplace-overview/about-github-marketplace.md,broken liquid tags translations/zh-CN/content/developers/github-marketplace/github-marketplace-overview/index.md,broken liquid tags @@ -181,7 +178,6 @@ translations/zh-CN/content/organizations/managing-organization-settings/managing translations/zh-CN/content/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization.md,Listed in localization-support#489 translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization.md,parsing error translations/zh-CN/content/organizations/organizing-members-into-teams/about-teams.md,broken liquid tags -translations/zh-CN/content/packages/learn-github-packages/deleting-a-package.md,broken liquid tags translations/zh-CN/content/packages/learn-github-packages/installing-a-package.md,broken liquid tags translations/zh-CN/content/packages/learn-github-packages/introduction-to-github-packages.md,broken liquid tags translations/zh-CN/content/packages/learn-github-packages/publishing-a-package.md,broken liquid tags @@ -226,7 +222,9 @@ translations/zh-CN/data/reusables/actions/enterprise-common-prereqs.md,broken li translations/zh-CN/data/reusables/actions/enterprise-marketplace-actions.md,broken liquid tags translations/zh-CN/data/reusables/actions/enterprise-no-internet-actions.md,broken liquid tags translations/zh-CN/data/reusables/actions/enterprise-postinstall-nextsteps.md,broken liquid tags +translations/zh-CN/data/reusables/actions/self-hosted-runner-architecture.md,broken liquid tags translations/zh-CN/data/reusables/actions/self-hosted-runner-auto-removal.md,broken liquid tags +translations/zh-CN/data/reusables/actions/self-hosted-runners-prerequisites.md,broken liquid tags translations/zh-CN/data/reusables/advanced-security/about-committer-numbers-ghec-ghes.md,broken liquid tags translations/zh-CN/data/reusables/apps/deprecating_auth_with_query_parameters.md,Listed in localization-support#489 translations/zh-CN/data/reusables/code-scanning/codeql-context-for-actions-and-third-party-tools.md,broken liquid tags @@ -253,7 +251,6 @@ translations/zh-CN/data/reusables/repositories/github-reviews-security-advisorie translations/zh-CN/data/reusables/rest-reference/activity/events.md,broken liquid tags translations/zh-CN/data/reusables/rest-reference/apps/marketplace.md,broken liquid tags translations/zh-CN/data/reusables/rest-reference/packages/packages.md,broken liquid tags -translations/zh-CN/data/reusables/rest-reference/secret-scanning/secret-scanning.md,broken liquid tags translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,Listed in localization-support#489 translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,parsing error translations/zh-CN/data/reusables/scim/after-you-configure-saml.md,broken liquid tags diff --git a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions.md b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions.md index 94fb868962..24c5fa8921 100644 --- a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions.md +++ b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions.md @@ -65,15 +65,11 @@ shortTitle: 管理您的订阅 ![管理通知下拉菜单选项](/assets/images/help/notifications-v2/manage-notifications-options.png) 2. 在关注的仓库页面上,评估您关注的仓库后,选择是否: - {%- ifversion fpt or ghes > 3.0 or ghae or ghec %} + - 取消关注仓库 - 忽略某仓库的所有通知 - 如有启用,请自定义接收通知的事件类型({% data reusables.notifications-v2.custom-notification-types %}) - {%- else %} - - 取消关注仓库 - - 只关注某仓库的发行版 - - 忽略某仓库的所有通知 - {%- endif %} + {%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5819 %} 1. (可选)要取消订阅指定用户或组织拥有的所有存储库,请选择 **Unwatch all(全部取消关注)**下拉列表,然后单击要取消订阅其存储库的组织。 取消关注所有存储库的按钮仅在您正在关注超过 10 个存储库上的所有活动或自定义通知时才可用。 diff --git a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions.md b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions.md index bb4b7612f6..150eaeec72 100644 --- a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions.md +++ b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions.md @@ -39,13 +39,11 @@ shortTitle: 查看订阅 更多信息请参阅“[配置通知](/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#automatic-watching)”。 To see an overview of your repository subscriptions, see "[Reviewing repositories that you're watching](#reviewing-repositories-that-youre-watching)." Many people forget about repositories that they've chosen to watch in the past. From the "Watched repositories" page you can quickly unwatch repositories. For more information on ways to unsubscribe, see "[Managing subscriptions](/github/managing-subscriptions-and-notifications-on-github/managing-your-subscriptions)." -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} {% tip %} **提示:**您可以在[关注页面](https://github.com/watching)或 {% data variables.product.product_name %} 上的任何仓库页面,使用 **Watch/Unwatch(关注/取消关注)**下拉列表中的 **Custom(自定义)**选项选择要通知的事件类型。 更多信息请参阅“[配置通知](/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#configuring-your-watch-settings-for-an-individual-repository)”。 {% endtip %} -{% endif %} 许多人忘记了他们过去选择关注的仓库。 从“Watched repositories(已关注仓库)”页面,您可以快速取消关注仓库。 有关取消订阅的方式的更多信息,请参阅 {% data variables.product.prodname_blog %} 上的“[取消关注建议](https://github.blog/changelog/2020-11-10-unwatch-recommendations/)”和“[管理订阅](/github/managing-subscriptions-and-notifications-on-github/managing-your-subscriptions)”。 您也可以创建分类工作流程来帮助整理收到的通知。 有关分类工作流程的指导,请参阅“[自定义对通知分类的工作流程](/github/managing-subscriptions-and-notifications-on-github/customizing-a-workflow-for-triaging-your-notifications)”。 @@ -70,16 +68,11 @@ To see an overview of your repository subscriptions, see "[Reviewing repositorie ## 查看您目前关注的仓库 1. 在左侧边栏中的仓库列表下,使用“Manage notifications(管理通知)”下拉菜单单击 **Watched repositories(已关注的仓库)**。 ![管理通知下拉菜单选项](/assets/images/help/notifications-v2/manage-notifications-options.png) -2. 评估您正在关注的仓库,确定它们更新是否仍然相关和有用。 关注某仓库后,您将收到该仓库所有对话的通知。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ![已关注的通知页面](/assets/images/help/notifications-v2/watched-notifications-custom.png) -{% else %} - ![已关注的通知页面](/assets/images/help/notifications-v2/watched-notifications.png) -{% endif %} +2. 评估您正在关注的仓库,确定它们更新是否仍然相关和有用。 关注某仓库后,您将收到该仓库所有对话的通知。 ![已关注的通知页面](/assets/images/help/notifications-v2/watched-notifications-custom.png) {% tip %} - **提示:**不关注仓库,而是考虑仅{% ifversion fpt or ghes > 3.0 or ghae or ghec %}当 {% data reusables.notifications-v2.custom-notification-types %}(如果已对仓库启用)或这些选项的任何组合有更新、{% else %}仓库中有发布{% endif %}或完全取消关注仓库时才接收通知。 + **Tip:** Instead of watching a repository, consider only receiving notifications when there are updates to {% data reusables.notifications-v2.custom-notification-types %} (if enabled for the repository), or any combination of these options, or completely unwatching a repository. 取消关注仓库后,当您被@提及或参与帖子时仍然会收到通知。 当您配置接收某些事件类型的通知时,仅在仓库中有这些事件类型的更新、您参与了线程或者您或您所在团队被 @提及时才收到通知。 diff --git a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications.md b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications.md index 12f5adfddc..30119ed23a 100644 --- a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications.md +++ b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/about-notifications.md @@ -29,9 +29,8 @@ topics: 您可以选择订阅关于以下内容的通知: - 关于特定议题、拉取请求或 Gist 的对话。 - 仓库或团队讨论中的所有活动。 -- CI 活动,例如仓库中使用 {% data variables.product.prodname_actions %} 设置的工作流程的状态。 {% ifversion fpt or ghes > 3.0 or ghae or ghec %} -- 仓库 {% data reusables.notifications-v2.custom-notification-types %} (如果启用)。{% else %} -- 在仓库中发布。{% endif %} +- CI 活动,例如仓库中使用 {% data variables.product.prodname_actions %} 设置的工作流程的状态。 +- 仓库 {% data reusables.notifications-v2.custom-notification-types %} (如果启用)。 您也可以选择自动关注所有您有推送访问权限的仓库,但复刻除外。 您可以通过单击 **Watch(关注)**来手动关注您有权访问的任何其他仓库。 diff --git a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md index 4b11d385d7..286b7b089f 100644 --- a/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md +++ b/translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md @@ -71,16 +71,13 @@ When you watch a repository, you're subscribing to updates for activity in that To see repositories that you're watching, go to your [watching page](https://github.com/watching). For more information, see "[Managing subscriptions and notifications on GitHub](/github/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github)." -{% ifversion ghae or ghes < 3.1 %} +{% ifversion ghae %} ### Configuring notifications {% endif %} -You can configure notifications for a repository on the repository page, or on your watching page.{% ifversion ghes < 3.1 %} You can choose to only receive notifications for releases in a repository, or ignore all notifications for a repository.{% endif %} - -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} +You can configure notifications for a repository on the repository page, or on your watching page. ### About custom notifications -You can customize notifications for a repository. For example, you can choose to only be notified when updates to one or more types of events ({% data reusables.notifications-v2.custom-notification-types %}) happen within a repository, or ignore all notifications for a repository. -{% endif %} For more information, see "[Configuring your watch settings for an individual repository](#configuring-your-watch-settings-for-an-individual-repository)" below. +You can customize notifications for a repository. For example, you can choose to only be notified when updates to one or more types of events ({% data reusables.notifications-v2.custom-notification-types %}) happen within a repository, or ignore all notifications for a repository. For more information, see "[Configuring your watch settings for an individual repository](#configuring-your-watch-settings-for-an-individual-repository)" below. ### Participating in conversations Anytime you comment in a conversation or when someone @mentions your username, you are _participating_ in a conversation. By default, you are automatically subscribed to a conversation when you participate in it. You can unsubscribe from a conversation you've participated in manually by clicking **Unsubscribe** on the issue or pull request or through the **Unsubscribe** option in the notifications inbox. @@ -160,17 +157,17 @@ If "Automatically watch repositories" is disabled, then you will not automatical ## Configuring your watch settings for an individual repository -You can choose whether to watch or unwatch an individual repository. You can also choose to only be notified of {% ifversion fpt or ghes > 3.0 or ghae or ghec %}certain event types such as {% data reusables.notifications-v2.custom-notification-types %} (if enabled for the repository) {% else %}new releases{% endif %}, or completely ignore an individual repository. +You can choose whether to watch or unwatch an individual repository. You can also choose to only be notified of certain event types such as {% data reusables.notifications-v2.custom-notification-types %} (if enabled for the repository) , or completely ignore an individual repository. {% data reusables.repositories.navigate-to-repo %} 2. In the upper-right corner, select the "Watch" drop-down menu to click a watch option. -{% ifversion fpt or ghes > 3.0 or ghae-issue-4910 or ghec %} +{% ifversion fpt or ghes or ghae-issue-4910 or ghec %} ![Watch options in a drop-down menu for a repository](/assets/images/help/notifications-v2/watch-repository-options-custom.png) The **Custom** option allows you to further customize notifications so that you're only notified when specific events happen in the repository, in addition to participating and @mentions. {% else %} ![Watch options in a drop-down menu for a repository](/assets/images/help/notifications-v2/watch-repository-options.png){% endif %} -{% ifversion fpt or ghes > 3.0 or ghae-issue-4910 or ghec %} +{% ifversion fpt or ghes or ghae-issue-4910 or ghec %} ![Custom watch options in a drop-down menu for a repository](/assets/images/help/notifications-v2/watch-repository-options-custom2-dotcom.png) If you select "Issues", you will be notified about, and subscribed to, updates on every issue (including those that existed prior to you selecting this option) in the repository. If you're @mentioned in a pull request in this repository, you'll receive notifications for that too, and you'll be subscribed to updates on that specific pull request, in addition to being notified about issues. {% endif %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md index 54fdec940d..a0f36654a4 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization.md @@ -25,7 +25,7 @@ shortTitle: 用户到组织 - **无法**将组织转换回用户。 - SSH 密钥、OAuth 令牌、作业档案、 反应、及关联的用户信息**不会**传输到组织。 这只适用于被转换的用户帐户,而不适用于该用户帐户的任何协作者。 - 使用被转换用户帐户进行的任何提交**将不再链接**到该帐户。 提交本身**将**保持原状。 - - Any forks of private repositories made with the converted user account will be deleted. + - 使用转换后用户帐户创建的任何私有仓库的复刻都将被删除。 {% endwarning %} @@ -57,7 +57,7 @@ shortTitle: 用户到组织 {% tip %} -**提示**:将用户帐户转换为组织时,我们会将属于该帐户的仓库中的协作者作为*外部协作者*添加到新组织。 然后,您可以根据需要邀请*外部协作者*成为新组织的成员。 For more information, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#outside-collaborators)." +**提示**:将用户帐户转换为组织时,我们会将属于该帐户的仓库中的协作者作为*外部协作者*添加到新组织。 然后,您可以根据需要邀请*外部协作者*成为新组织的成员。 更多信息请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#outside-collaborators)”。 {% endtip %} diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md index 2fd6ceee7c..00274197eb 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-security-and-analysis-settings-for-your-user-account.md @@ -31,7 +31,7 @@ shortTitle: 管理安全和分析 {% data reusables.user-settings.access_settings %} {% data reusables.user-settings.security-analysis %} -3. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable all(全部禁用)**或 **Enable all(全部启用)**。 +3. Under "Code security and analysis", to the right of the feature, click **Disable all** or **Enable all**. {% ifversion ghes > 3.2 %}!["Enable all" or "Disable all" button for "Configure security and analysis" features](/assets/images/enterprise/3.3/settings/security-and-analysis-disable-or-enable-all.png){% else %}!["Enable all" or "Disable all" button for "Configure security and analysis" features](/assets/images/help/settings/security-and-analysis-disable-or-enable-all.png){% endif %} 6. (可选)默认情况下为您拥有的新存储库启用该功能。 {% ifversion ghes > 3.2 %}!["Enable by default" option for new repositories](/assets/images/enterprise/3.3/settings/security-and-analysis-enable-by-default-in-modal.png){% else %}!["Enable by default" option for new repositories](/assets/images/help/settings/security-and-analysis-enable-by-default-in-modal.png){% endif %} @@ -44,7 +44,7 @@ shortTitle: 管理安全和分析 {% data reusables.user-settings.access_settings %} {% data reusables.user-settings.security-analysis %} -3. 在“Configure security and analysis features(配置安全和分析功能)”下,在功能右侧,默认为您拥有的新存储库启用或禁用该功能。 +3. Under "Code security and analysis", to the right of the feature, enable or disable the feature by default for new repositories that you own. {% ifversion ghes > 3.2 %}![Checkbox for enabling or disabling a feature for new repositories](/assets/images/enterprise/3.3/settings/security-and-analysis-enable-or-disable-feature-checkbox.png){% else %}![Checkbox for enabling or disabling a feature for new repositories](/assets/images/help/settings/security-and-analysis-enable-or-disable-feature-checkbox.png){% endif %} ## 延伸阅读 diff --git a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository.md b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository.md index 43b3073dd9..ffb339b021 100644 --- a/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository.md +++ b/translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/permission-levels-for-a-user-account-repository.md @@ -36,16 +36,15 @@ shortTitle: 权限用户仓库 | {% ifversion fpt or ghec %}邀请协作者{% else %}添加协作者{% endif %} | | | "[邀请个人仓库的协作者](/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository)" | | | 更改仓库的可见性 | “[设置仓库可见性](/github/administering-a-repository/setting-repository-visibility)” |{% ifversion fpt or ghec %} -| 限制与仓库的交互 | “[限制仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository)”|{% endif %}{% ifversion fpt or ghes > 3.0 or ghae or ghec %} -| 重命名分支,包括默认分支 | "[重命名分支](/github/administering-a-repository/renaming-a-branch)" +| 限制与仓库的交互 | "[限制仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository)" {% endif %} +| 重命名分支,包括默认分支 | "[重命名分支](/github/administering-a-repository/renaming-a-branch)" | | 合并受保护分支上的拉取请求(即使没有批准审查) | "[关于受保护分支](/github/administering-a-repository/about-protected-branches)" | | 删除仓库 | "[删除仓库](/repositories/creating-and-managing-repositories/deleting-a-repository)" | | 管理仓库的主题 | "[使用主题对仓库分类](/github/administering-a-repository/classifying-your-repository-with-topics)" |{% ifversion fpt or ghec %} | 管理仓库的安全性和分析设置 | "[管理仓库的安全和分析设置](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" |{% endif %}{% ifversion fpt or ghec %} | 为私有仓库启用依赖项图 | “[探索仓库的依赖项](/github/visualizing-repository-data-with-graphs/exploring-the-dependencies-of-a-repository#enabling-and-disabling-the-dependency-graph-for-a-private-repository)” |{% endif %}{% ifversion fpt or ghes > 3.1 or ghec or ghae %} -| 删除和恢复包 | “[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package)”|{% endif %}{% ifversion ghes < 3.1 %} -| 删除包 | “[删除包](/packages/learn-github-packages/deleting-a-package)” +| 删除和恢复包 | “[删除和恢复软件包](/packages/learn-github-packages/deleting-and-restoring-a-package)” {% endif %} | 自定义仓库的社交媒体预览 | "[自定义仓库的社交媒体预览](/github/administering-a-repository/customizing-your-repositorys-social-media-preview)" | | 从仓库创建模板 | "[创建模板仓库](/github/creating-cloning-and-archiving-repositories/creating-a-template-repository)" |{% ifversion fpt or ghes or ghae-issue-4864 or ghec %} @@ -55,9 +54,10 @@ shortTitle: 权限用户仓库 {% endif %} | 定义仓库的代码所有者 | "[关于代码所有者](/github/creating-cloning-and-archiving-repositories/about-code-owners)" | | 存档仓库 | "[归档存储库](/repositories/archiving-a-github-repository/archiving-repositories)"|{% ifversion fpt or ghec %} -| 创建安全通告 | "[关于 {% data variables.product.prodname_security_advisories %}](/github/managing-security-vulnerabilities/about-github-security-advisories)" | -| 显示赞助按钮 | “[在仓库中显示赞助者按钮](/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository)”|{% endif %}{% ifversion fpt or ghae or ghes > 3.0 or ghec %} -| 允许或禁止自动合并拉取请求 | "[管理仓库中的拉取请求自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository)" | {% endif %} +| 创建安全通告 | "[About {% data variables.product.prodname_security_advisories %}](/github/managing-security-vulnerabilities/about-github-security-advisories)" | +| 显示赞助按钮 | “[在仓库中显示赞助者按钮](/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository)” +{% endif %} +| 允许或禁止自动合并拉取请求 | "[管理仓库中的拉取请求自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository)" | ## 协作者对用户帐户拥有仓库的权限 @@ -71,27 +71,27 @@ shortTitle: 权限用户仓库 协作者还可以执行以下操作。 -| 操作 | 更多信息 | -|:--------------------------- |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 操作 | 更多信息 | +|:--------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------- | | 复刻仓库 | "[关于复刻](/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks)" |{% ifversion fpt or ghes > 3.1 or ghae or ghec %} | 重命名除默认分支以外的分支 | "[重命名分支](/github/administering-a-repository/renaming-a-branch)" {% endif %} -| 在仓库中创建、编辑和删除关于提交、拉取请求和议题的评论 | | -| 在仓库中创建、分配、关闭和重新打开议题 | "[使用议题管理工作](/github/managing-your-work-on-github/managing-your-work-with-issues)" | -| 在仓库中管理议题和拉取请求的标签 | "[标记议题和拉取请求](/github/managing-your-work-on-github/labeling-issues-and-pull-requests)" | -| 在仓库中管理议题和拉取请求的里程碑 | "[创建和编辑议题及拉取请求的里程碑](/github/managing-your-work-on-github/creating-and-editing-milestones-for-issues-and-pull-requests)" | -| 将仓库中的议题或拉取请求标记为重复项 | "[关于重复的议题和拉取请求](/github/managing-your-work-on-github/about-duplicate-issues-and-pull-requests)" | -| 在仓库中创建、合并和关闭拉取请求 | "[通过拉取请求提议工作更改](/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests)" |{% ifversion fpt or ghae or ghes > 3.0 or ghec %} -| 启用或禁用自动合并拉取请求 | "[自动合并拉取请求](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)"{% endif %} -| 将建议的更改应用于仓库中的拉取请求 | "[在拉取请求中加入反馈](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request)" | -| 从仓库的复刻创建拉取请求 | "[从复刻创建拉取请求](/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)" | -| 提交影响拉取请求可合并性的拉取请求审查 | "[审查拉取请求中提议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)" | -| 为仓库创建和编辑 wiki | "[关于 wikis](/communities/documenting-your-project-with-wikis/about-wikis)" | -| 为仓库创建和编辑发行版 | “[管理仓库中的发行版](/github/administering-a-repository/managing-releases-in-a-repository)” | +| 在仓库中创建、编辑和删除关于提交、拉取请求和议题的评论 | | +| 在仓库中创建、分配、关闭和重新打开议题 | "[使用议题管理工作](/github/managing-your-work-on-github/managing-your-work-with-issues)" | +| 在仓库中管理议题和拉取请求的标签 | "[标记议题和拉取请求](/github/managing-your-work-on-github/labeling-issues-and-pull-requests)" | +| 在仓库中管理议题和拉取请求的里程碑 | "[创建和编辑议题及拉取请求的里程碑](/github/managing-your-work-on-github/creating-and-editing-milestones-for-issues-and-pull-requests)" | +| 将仓库中的议题或拉取请求标记为重复项 | "[关于重复的议题和拉取请求](/github/managing-your-work-on-github/about-duplicate-issues-and-pull-requests)" | +| 在仓库中创建、合并和关闭拉取请求 | "[通过拉取请求提议工作更改](/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests)" | +| 启用或禁用自动合并拉取请求 | "[自动合并拉取请求](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)" | +| 将建议的更改应用于仓库中的拉取请求 | "[在拉取请求中加入反馈](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request)" | +| 从仓库的复刻创建拉取请求 | "[从复刻创建拉取请求](/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)" | +| 提交影响拉取请求可合并性的拉取请求审查 | "[审查拉取请求中提议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)" | +| 为仓库创建和编辑 wiki | "[关于 wikis](/communities/documenting-your-project-with-wikis/about-wikis)" | +| 为仓库创建和编辑发行版 | “[管理仓库中的发行版](/github/administering-a-repository/managing-releases-in-a-repository)” | | 作为仓库的代码所有者 | "[关于代码所有者](/articles/about-code-owners)" |{% ifversion fpt or ghae or ghec %} | 发布、查看或安装包 | "[发布和管理包](/github/managing-packages-with-github-packages/publishing-and-managing-packages)" {% endif %} -| 作为仓库协作者删除自己 | "[从协作者的仓库删除您自己](/github/setting-up-and-managing-your-github-user-account/removing-yourself-from-a-collaborators-repository)" | +| 作为仓库协作者删除自己 | "[从协作者的仓库删除您自己](/github/setting-up-and-managing-your-github-user-account/removing-yourself-from-a-collaborators-repository)" | ## 延伸阅读 diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md index 1ce2228c19..5c0ae92154 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md @@ -119,7 +119,7 @@ steps: distribution: 'adopt' - run: ant -noinput -buildfile build.xml - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: Package path: build/jar diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md index eb63dc902d..63c6272c07 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md @@ -138,7 +138,7 @@ steps: uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 with: arguments: build - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: Package path: build/libs diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md index f5b6c1f7ba..50bc34f65d 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md @@ -140,7 +140,7 @@ steps: distribution: 'adopt' - run: mvn --batch-mode --update-snapshots verify - run: mkdir staging && cp target/*.jar staging - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: Package path: staging diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-net.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-net.md index 3c896f4f00..34717343cb 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-net.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-net.md @@ -218,7 +218,7 @@ jobs: - name: Test with dotnet run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}" - name: Upload dotnet test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dotnet-results-${{ matrix.dotnet-version }} path: TestResults-${{ matrix.dotnet-version }} diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-powershell.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-powershell.md index c376b2bd4f..048b0e5f06 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-powershell.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-powershell.md @@ -73,11 +73,9 @@ jobs: * `run: Test-Path resultsfile.log` - 检查仓库的根目录中是否存在名为 `resultsfile.log` 的文件。 * `Should -Be $true` - 使用 Pester 定义预期结果。 如果结果是非预期的,则 {% data variables.product.prodname_actions %} 会将此标记为失败的测试。 例如: - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} + ![失败的 Pester 测试](/assets/images/help/repository/actions-failed-pester-test-updated.png) - {% else %} - ![失败的 Pester 测试](/assets/images/help/repository/actions-failed-pester-test.png) - {% endif %} + * `Invoke-Pester Unit.Tests.ps1 -Passthru` - 使用 Pester 执行文件 `Unit.Tests.ps1` 中定义的测试。 例如,要执行上述相同的测试, `Unit.Tests.ps1` 将包含以下内容: ``` @@ -215,7 +213,7 @@ jobs: shell: pwsh run: Invoke-Pester Unit.Tests.ps1 -Passthru | Export-CliXml -Path Unit.Tests.xml - name: Upload test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ubuntu-Unit-Tests path: Unit.Tests.xml diff --git a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-python.md b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-python.md index 39c4bcc52e..ecd9c0c085 100644 --- a/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-python.md +++ b/translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-python.md @@ -444,7 +444,7 @@ jobs: - name: Test with pytest run: pytest tests.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pytest-results-${{ matrix.python-version }} path: junit/test-results-${{ matrix.python-version }}.xml diff --git a/translations/zh-CN/content/actions/creating-actions/about-custom-actions.md b/translations/zh-CN/content/actions/creating-actions/about-custom-actions.md index 598d6034b0..7b8ae2a1ac 100644 --- a/translations/zh-CN/content/actions/creating-actions/about-custom-actions.md +++ b/translations/zh-CN/content/actions/creating-actions/about-custom-actions.md @@ -73,7 +73,6 @@ _复合_操作允许您在一个操作中组合多个工作流程步骤。 例 {% ifversion fpt or ghec %}If you're building an action that you don't plan to make available to others, you {% else %} You{% endif %} can store the action's files in any location in your repository. 如果计划将操作、工作流程和应用程序代码合并到一个仓库中,建议将操作存储在 `.github` 目录中。 例如,`.github/actions/action-a` 和 `.github/actions/action-b`。 - ## 与 {% data variables.product.prodname_ghe_server %} 的兼容性 To ensure that your action is compatible with {% data variables.product.prodname_ghe_server %}, you should make sure that you do not use any hard-coded references to {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API URLs. You should instead use environment variables to refer to the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API: @@ -130,7 +129,7 @@ steps: ### 使用提交的 SHA 进行发行版管理 -每个 Git 提交都会收到一个计算出来的 SHA 值,该值是唯一且不可更改的。 您操作的用户可能更喜欢依赖提交的 SHA 值,因为此方法会比指定可删除或移动的标记更可靠。 但是,这意味着用户将不会收到对该操作所做的进一步更新。 {% ifversion fpt or ghes > 3.0 or ghae or ghec %}您必须使用提交的完整 SHA 值,而不是缩写值。{% else %}使用提交的完整 SHA 值而不使用缩写值有助于防止他人使用相同缩写值进行恶意提交。{% endif %} +每个 Git 提交都会收到一个计算出来的 SHA 值,该值是唯一且不可更改的。 您操作的用户可能更喜欢依赖提交的 SHA 值,因为此方法会比指定可删除或移动的标记更可靠。 但是,这意味着用户将不会收到对该操作所做的进一步更新。 You must use a commit's full SHA value, and not an abbreviated value. ```yaml steps: diff --git a/translations/zh-CN/content/actions/creating-actions/creating-a-composite-action.md b/translations/zh-CN/content/actions/creating-actions/creating-a-composite-action.md index 0396f68729..3e989cdd9e 100644 --- a/translations/zh-CN/content/actions/creating-actions/creating-a-composite-action.md +++ b/translations/zh-CN/content/actions/creating-actions/creating-a-composite-action.md @@ -1,6 +1,6 @@ --- -title: Creating a composite action -intro: 'In this guide, you''ll learn how to build a composite action.' +title: 创建组合操作 +intro: 在本指南中,您将学习如何构建组合操作。 redirect_from: - /actions/creating-actions/creating-a-composite-run-steps-action versions: @@ -11,7 +11,7 @@ versions: type: tutorial topics: - Action development -shortTitle: Composite action +shortTitle: 组合操作 --- {% data reusables.actions.enterprise-beta %} @@ -19,17 +19,17 @@ shortTitle: Composite action ## 简介 -In this guide, you'll learn about the basic components needed to create and use a packaged composite action. 本指南的重点是打包操作所需的组件,因此很少讲操作代码的功能。 该操作将依次打印 "Hello World" 和 "Goodbye",如果您提供自定义名称,则将依次打印 "Hello [who-to-greet]" 和 "Goodbye"。 该操作还将随机数映射到 `random-number` 输出变量,并运行名为 `goodbye.sh` 的脚本。 +在本指南中,您将了解创建和使用打包的组合操作所需的基本组件。 本指南的重点是打包操作所需的组件,因此很少讲操作代码的功能。 该操作将依次打印 "Hello World" 和 "Goodbye",如果您提供自定义名称,则将依次打印 "Hello [who-to-greet]" 和 "Goodbye"。 该操作还将随机数映射到 `random-number` 输出变量,并运行名为 `goodbye.sh` 的脚本。 -Once you complete this project, you should understand how to build your own composite action and test it in a workflow. +完成此项目后,您应了解如何构建自己的组合操作和在工作流程测试该操作。 {% data reusables.actions.context-injection-warning %} ## 基本要求 -Before you begin, you'll create a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. +在开始之前,您将在 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} 上创建一个存储库。 -1. 在 {% data variables.product.product_location %} 上创建公共仓库 You can choose any repository name, or use the following `hello-world-composite-action` example. 您可以在项目推送到 {% data variables.product.product_name %} 之后添加这些文件。 更多信息请参阅“[创建新仓库](/articles/creating-a-new-repository)”。 +1. 在 {% data variables.product.product_location %} 上创建公共仓库 您可以选择任何仓库名称,或者使用下面的 `hello-world-composite-action` 示例。 您可以在项目推送到 {% data variables.product.product_name %} 之后添加这些文件。 更多信息请参阅“[创建新仓库](/articles/creating-a-new-repository)”。 1. 将仓库克隆到计算机。 更多信息请参阅“[克隆仓库](/articles/cloning-a-repository)”。 @@ -39,7 +39,7 @@ Before you begin, you'll create a repository on {% ifversion ghae %}{% data vari cd hello-world-composite-action ``` -2. In the `hello-world-composite-action` repository, create a new file called `goodbye.sh`, and add the following example code: +2. 在 `hello-world-composite-action` 仓库中,创建一个名为 `goodbye.sh` 的新文件,并添加以下示例代码: ```bash echo "Goodbye" @@ -60,7 +60,7 @@ Before you begin, you'll create a repository on {% ifversion ghae %}{% data vari ## 创建操作元数据文件 -1. In the `hello-world-composite-action` repository, create a new file called `action.yml` and add the following example code. For more information about this syntax, see "[`runs` for a composite actions](/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-actions)". +1. 在 `hello-world-composite-action` 仓库中,创建一个名为 `action.yml` 的新文件,并添加以下示例代码: 有关此语法的更多信息,请参阅“组合运行步骤的[`运行`](/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-actions)”。 {% raw %} **action.yml** @@ -90,9 +90,9 @@ Before you begin, you'll create a repository on {% ifversion ghae %}{% data vari shell: bash ``` {% endraw %} - 此文件定义 `who-greet` 输入,将随机生成的数字映射到 `random-number` 输出变量,并运行 `goodbye.sh` 脚本。 It also tells the runner how to execute the composite action. + 此文件定义 `who-greet` 输入,将随机生成的数字映射到 `random-number` 输出变量,并运行 `goodbye.sh` 脚本。 它还告诉运行器如何执行组合操作。 - For more information about managing outputs, see "[`outputs` for a composite action](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions)". + 有关管理输出的更多信息,请参阅“组合运行步骤的[`输出`](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions)”。 有关如何使用 `github.action_path` 的更多信息,请参阅“[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)”。 @@ -115,7 +115,7 @@ Before you begin, you'll create a repository on {% ifversion ghae %}{% data vari 以下工作流程代码使用您在“[创建操作元数据文件](/actions/creating-actions/creating-a-composite-action#creating-an-action-metadata-file)”中设置的已完成 hello world 操作。 -Copy the workflow code into a `.github/workflows/main.yml` file in another repository, but replace `actions/hello-world-composite-action@v1` with the repository and tag you created. 您还可以将 `who-to-greet` 输入替换为您的名称。 +将工作流程代码复制到另一个仓库中的 `.github/workflows/main.yml` 文件,但用您创建的仓库和标记替换 `actions/hello-world-composite-action@v1`。 您还可以将 `who-to-greet` 输入替换为您的名称。 {% raw %} **.github/workflows/main.yml** diff --git a/translations/zh-CN/content/actions/creating-actions/creating-a-docker-container-action.md b/translations/zh-CN/content/actions/creating-actions/creating-a-docker-container-action.md index 7d5ef502c6..c7c12b7c1d 100644 --- a/translations/zh-CN/content/actions/creating-actions/creating-a-docker-container-action.md +++ b/translations/zh-CN/content/actions/creating-actions/creating-a-docker-container-action.md @@ -237,10 +237,7 @@ jobs: ``` {% endraw %} -从您的仓库中,单击 **Actions(操作)**选项卡,然后选择最新的工作流程来运行。 {% ifversion fpt or ghes > 3.0 or ghae or ghec %}在 **Jobs(作业)**下或可视化图表中,单击 **A job to say hello(表示问候的作业)**。 {% endif %}您应看到 "Hello Mona the Octocat" 或您用于 `who-to-greet` 输入的姓名和时间戳在日志中打印。 +从您的仓库中,单击 **Actions(操作)**选项卡,然后选择最新的工作流程来运行。 Under **Jobs** or in the visualization graph, click **A job to say hello**. 您应看到 "Hello Mona the Octocat" 或您用于 `who-to-greet` 输入的姓名和时间戳在日志中打印。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ![在工作流中使用操作的屏幕截图](/assets/images/help/repository/docker-action-workflow-run-updated.png) -{% else %} -![在工作流中使用操作的屏幕截图](/assets/images/help/repository/docker-action-workflow-run.png) -{% endif %} + diff --git a/translations/zh-CN/content/actions/creating-actions/creating-a-javascript-action.md b/translations/zh-CN/content/actions/creating-actions/creating-a-javascript-action.md index edf4c0b686..092e40cfe1 100644 --- a/translations/zh-CN/content/actions/creating-actions/creating-a-javascript-action.md +++ b/translations/zh-CN/content/actions/creating-actions/creating-a-javascript-action.md @@ -263,12 +263,6 @@ jobs: ``` {% endraw %} -从您的仓库中,单击 **Actions(操作)**选项卡,然后选择最新的工作流程来运行。 {% ifversion fpt or ghes > 3.0 or ghae or ghec %}在 **Jobs(作业)**下或可视化图表中,单击 **A job to say hello(表示问候的作业)**。 {% endif %}您应看到 "Hello Mona the Octocat" 或您用于 `who-to-greet` 输入的姓名和时间戳在日志中打印。 +从您的仓库中,单击 **Actions(操作)**选项卡,然后选择最新的工作流程来运行。 Under **Jobs** or in the visualization graph, click **A job to say hello**. 您应看到 "Hello Mona the Octocat" 或您用于 `who-to-greet` 输入的姓名和时间戳在日志中打印。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ![在工作流中使用操作的屏幕截图](/assets/images/help/repository/javascript-action-workflow-run-updated-2.png) -{% elsif ghes %} -![在工作流中使用操作的屏幕截图](/assets/images/help/repository/javascript-action-workflow-run-updated.png) -{% else %} -![在工作流中使用操作的屏幕截图](/assets/images/help/repository/javascript-action-workflow-run.png) -{% endif %} diff --git a/translations/zh-CN/content/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise.md b/translations/zh-CN/content/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise.md index 33f50fc509..edcc878400 100644 --- a/translations/zh-CN/content/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise.md +++ b/translations/zh-CN/content/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise.md @@ -10,12 +10,6 @@ topics: shortTitle: Share with your enterprise --- -{% note %} - -**Note:** Allowing workflows to access actions in internal repositories is currently in beta and subject to change. - -{% endnote %} - ## About {% data variables.product.prodname_actions %} access to internal repositories If your organization is owned by an enterprise account, you can share actions and workflows within your enterprise, without publishing the action or workflow publicly, by allowing {% data variables.product.prodname_actions %} workflows to access an internal repository that contains the action or workflow. diff --git a/translations/zh-CN/content/actions/deployment/about-deployments/about-continuous-deployment.md b/translations/zh-CN/content/actions/deployment/about-deployments/about-continuous-deployment.md index cd04e735e6..d419866754 100644 --- a/translations/zh-CN/content/actions/deployment/about-deployments/about-continuous-deployment.md +++ b/translations/zh-CN/content/actions/deployment/about-deployments/about-continuous-deployment.md @@ -29,8 +29,7 @@ You can set up a {% data variables.product.prodname_actions %} workflow to deplo You can configure your CD workflow to run when a {% data variables.product.product_name %} event occurs (for example, when new code is pushed to the default branch of your repository), on a set schedule, manually, or when an external event occurs using the repository dispatch webhook. For more information about when your workflow can run, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows)." -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} -{% data variables.product.prodname_actions %} provides features that give you more control over deployments. For example, you can use environments to require approval for a job to proceed, restrict which branches can trigger a workflow, or limit access to secrets. {% ifversion fpt or ghae or ghes > 3.1 or ghec %}You can use concurrency to limit your CD pipeline to a maximum of one in-progress deployment and one pending deployment. {% endif %}For more information about these features, see "[Deploying with GitHub Actions](/actions/deployment/deploying-with-github-actions)" and "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)."{% endif %} +{% data variables.product.prodname_actions %} provides features that give you more control over deployments. For example, you can use environments to require approval for a job to proceed, restrict which branches can trigger a workflow, or limit access to secrets. {% ifversion fpt or ghae or ghes > 3.1 or ghec %}You can use concurrency to limit your CD pipeline to a maximum of one in-progress deployment and one pending deployment. {% endif %}For more information about these features, see "[Deploying with GitHub Actions](/actions/deployment/deploying-with-github-actions)" and "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)." {% ifversion fpt or ghec or ghae-issue-4856 %} @@ -44,12 +43,9 @@ You can configure your CD workflow to run when a {% data variables.product.produ {% data reusables.actions.cd-templates-actions %} -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - ## 延伸阅读 - [Deploying with GitHub Actions](/actions/deployment/deploying-with-github-actions) - [Using environments for deployment](/actions/deployment/using-environments-for-deployment){% ifversion fpt or ghec %} - "[Managing billing for {% data variables.product.prodname_actions %}](/billing/managing-billing-for-github-actions)"{% endif %} -{% endif %} diff --git a/translations/zh-CN/content/actions/deployment/about-deployments/deploying-with-github-actions.md b/translations/zh-CN/content/actions/deployment/about-deployments/deploying-with-github-actions.md index 5a949dba4d..58b8cf98bf 100644 --- a/translations/zh-CN/content/actions/deployment/about-deployments/deploying-with-github-actions.md +++ b/translations/zh-CN/content/actions/deployment/about-deployments/deploying-with-github-actions.md @@ -3,7 +3,7 @@ title: Deploying with GitHub Actions intro: Learn how to control deployments with features like environments and concurrency. versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' type: overview diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md index a46011c0eb..4d9cac1104 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md @@ -76,9 +76,7 @@ On every new push to `main` in your {% data variables.product.company_short %} r See the documentation for each action used below for the recommended IAM policies for the IAM user, and methods for handling the access key credentials. -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## Creating the workflow diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md index 3fe6af6b54..e1a0ad28fb 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md @@ -66,9 +66,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to --settings DOCKER_REGISTRY_SERVER_URL=https://ghcr.io DOCKER_REGISTRY_SERVER_USERNAME=MY_REPOSITORY_OWNER DOCKER_REGISTRY_SERVER_PASSWORD=MY_PERSONAL_ACCESS_TOKEN ``` -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md index 2b5cf2e243..21afaef9f3 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md @@ -16,7 +16,6 @@ topics: {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} - ## 简介 This guide explains how to use {% data variables.product.prodname_actions %} to build and deploy a Java project to [Azure App Service](https://azure.microsoft.com/services/app-service/). @@ -53,9 +52,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to {% data reusables.actions.create-azure-publish-profile %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 1. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 @@ -98,7 +95,7 @@ jobs: run: mvn clean install - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: java-app path: '{% raw %}${{ github.workspace }}{% endraw %}/target/*.jar' @@ -112,7 +109,7 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: java-app @@ -129,6 +126,6 @@ jobs: 以下资源也可能有用: -* For the original starter workflow, see [`azure-webapps-java-jar.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-java-jar.yml) in the {% data variables.product.prodname_actions %} `starter-workflows` repository. +* 有关原始入门工作流程,请参阅 {% data variables.product.prodname_actions %} `starter-workflows` 仓库中的 [`azure-webapps-java-jar.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-java-jar.yml)。 * 用于部署 Web 应用的操作是正式的 Azure [`Azure/webapps-deploy`](https://github.com/Azure/webapps-deploy) 操作。 * For more examples of GitHub Action workflows that deploy to Azure, see the [actions-workflow-samples](https://github.com/Azure/actions-workflow-samples) repository. diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md index 4e9647e1b8..e746a794b6 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md @@ -15,7 +15,6 @@ topics: {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} - ## 简介 This guide explains how to use {% data variables.product.prodname_actions %} to build and deploy a .NET project to [Azure App Service](https://azure.microsoft.com/services/app-service/). @@ -52,9 +51,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to {% data reusables.actions.create-azure-publish-profile %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 @@ -108,7 +105,7 @@ jobs: run: dotnet publish -c Release -o {% raw %}${{env.DOTNET_ROOT}}{% endraw %}/myapp - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: .net-app path: {% raw %}${{env.DOTNET_ROOT}}{% endraw %}/myapp @@ -122,7 +119,7 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: .net-app @@ -139,6 +136,6 @@ jobs: 以下资源也可能有用: -* For the original starter workflow, see [`azure-webapps-dotnet-core.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-dotnet-core.yml) in the {% data variables.product.prodname_actions %} `starter-workflows` repository. +* 有关原始入门工作流程,请参阅 {% data variables.product.prodname_actions %} `starter-workflows` 仓库中的 [`azure-webapps-dotnet-core.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-dotnet-core.yml)。 * 用于部署 Web 应用的操作是正式的 Azure [`Azure/webapps-deploy`](https://github.com/Azure/webapps-deploy) 操作。 * For more examples of GitHub Action workflows that deploy to Azure, see the [actions-workflow-samples](https://github.com/Azure/actions-workflow-samples) repository. diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md index 8bc6bffaa8..bcbec87a85 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md @@ -21,7 +21,6 @@ topics: {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} - ## 简介 This guide explains how to use {% data variables.product.prodname_actions %} to build, test, and deploy a Node.js project to [Azure App Service](https://azure.microsoft.com/services/app-service/). @@ -58,9 +57,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to {% data reusables.actions.create-azure-publish-profile %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 @@ -103,7 +100,7 @@ jobs: npm run build --if-present npm run test --if-present - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: node-app path: . @@ -117,7 +114,7 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: node-app @@ -134,7 +131,7 @@ jobs: 以下资源也可能有用: -* For the original starter workflow, see [`azure-webapps-node.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-node.yml) in the {% data variables.product.prodname_actions %} `starter-workflows` repository. +* 有关原始入门工作流程,请参阅 {% data variables.product.prodname_actions %} `starter-workflows` 仓库中的 [`azure-webapps-node.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-node.yml)。 * 用于部署 Web 应用的操作是正式的 Azure [`Azure/webapps-deploy`](https://github.com/Azure/webapps-deploy) 操作。 * For more examples of GitHub Action workflows that deploy to Azure, see the [actions-workflow-samples](https://github.com/Azure/actions-workflow-samples) repository. -* The "[Create a Node.js web app in Azure](https://docs.microsoft.com/azure/app-service/quickstart-nodejs)" quickstart in the Azure web app documentation demonstrates using VS Code with the [Azure App Service extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice). +* Azure web 应用文档中的“[在 Azure 中创建 Node.js web 应用](https://docs.microsoft.com/azure/app-service/quickstart-nodejs)”快速入门说明如何通过 [Azure App Service 扩展](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice)使用 VS Code。 diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md index ca120dfb5e..163e467db9 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md @@ -15,7 +15,6 @@ topics: {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} - ## 简介 This guide explains how to use {% data variables.product.prodname_actions %} to build and deploy a PHP project to [Azure App Service](https://azure.microsoft.com/services/app-service/). @@ -52,9 +51,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to {% data reusables.actions.create-azure-publish-profile %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 @@ -119,7 +116,7 @@ jobs: run: composer validate --no-check-publish && composer install --prefer-dist --no-progress - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: php-app path: . @@ -133,7 +130,7 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: php-app @@ -150,6 +147,6 @@ jobs: 以下资源也可能有用: -* For the original starter workflow, see [`azure-webapps-php.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-php.yml) in the {% data variables.product.prodname_actions %} `starter-workflows` repository. +* 有关原始入门工作流程,请参阅 {% data variables.product.prodname_actions %} `starter-workflows` 仓库中的 [`azure-webapps-php.yml`](https://github.com/actions/starter-workflows/blob/main/deployments/azure-webapps-php.yml)。 * 用于部署 Web 应用的操作是正式的 Azure [`Azure/webapps-deploy`](https://github.com/Azure/webapps-deploy) 操作。 * For more examples of GitHub Action workflows that deploy to Azure, see the [actions-workflow-samples](https://github.com/Azure/actions-workflow-samples) repository. diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md index 42e31020f4..b351001f65 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md @@ -16,7 +16,6 @@ topics: {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} - ## 简介 This guide explains how to use {% data variables.product.prodname_actions %} to build and deploy a Python project to [Azure App Service](https://azure.microsoft.com/services/app-service/). @@ -55,9 +54,7 @@ This guide explains how to use {% data variables.product.prodname_actions %} to 1. Add an app setting called `SCM_DO_BUILD_DURING_DEPLOYMENT` and set the value to `1`. -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 5. Optionally, configure a deployment environment. {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 @@ -114,7 +111,7 @@ jobs: # Optional: Add a step to run tests here (PyTest, Django test suites, etc.) - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: python-app path: | @@ -129,7 +126,7 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: python-app path: . diff --git a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md index d156e2c3d4..16ffd39eb8 100644 --- a/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md +++ b/translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md @@ -120,11 +120,9 @@ Store the name of your project as a secret named `GKE_PROJECT`. For more informa ### (可选)配置 kustomize Kustomize 是用于管理 YAML 规范的可选工具。 After creating a `kustomization` file, the workflow below can be used to dynamically set fields of the image and pipe in the result to `kubectl`. 更多信息请参阅 [kustomize 的用法](https://github.com/kubernetes-sigs/kustomize#usage)。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ### (Optional) Configure a deployment environment {% data reusables.actions.about-environments %} -{% endif %} ## 创建工作流程 diff --git a/translations/zh-CN/content/actions/deployment/managing-your-deployments/viewing-deployment-history.md b/translations/zh-CN/content/actions/deployment/managing-your-deployments/viewing-deployment-history.md index 4bf4005037..142e2755d9 100644 --- a/translations/zh-CN/content/actions/deployment/managing-your-deployments/viewing-deployment-history.md +++ b/translations/zh-CN/content/actions/deployment/managing-your-deployments/viewing-deployment-history.md @@ -15,7 +15,7 @@ redirect_from: --- -您可以通过 {% ifversion fpt or ghae or ghes > 3.0 or ghec %}{% data variables.product.prodname_actions %} 和环境或使用 {% endif %} REST API 和第三方应用程序来交付部署。 {% ifversion fpt or ghae ghes > 3.0 or ghec %}For more information about using environments to deploy with {% data variables.product.prodname_actions %}, see "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)." {% endif %}有关使用 REST API 进行部署的更多信息,请参阅“[仓库](/rest/reference/repos#deployments)”。 +You can deliver deployments through {% data variables.product.prodname_actions %} and environments or with the REST API and third party apps. {% ifversion fpt or ghae ghes > 3.0 or ghec %}For more information about using environments to deploy with {% data variables.product.prodname_actions %}, see "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)." {% endif %}有关使用 REST API 进行部署的更多信息,请参阅“[仓库](/rest/reference/repos#deployments)”。 要查看当前和过去的部署,请在仓库的主页上单击 **Environments(环境)**。 {% ifversion ghae %} diff --git a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md index 231c9752e6..11b5d04f8d 100644 --- a/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md +++ b/translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md @@ -164,7 +164,7 @@ You can configure a subject that filters for a specific [environment](/actions/d #### Filtering for `pull_request` events -The subject claim includes the `pull_request` string when the workflow is triggered by a pull request event. +The subject claim includes the `pull_request` string when the workflow is triggered by a pull request event, but only if the job doesn't reference an environment. You can configure a subject that filters for the [`pull_request`](/actions/learn-github-actions/events-that-trigger-workflows#pull_request) event. In this example, the workflow run must have been triggered by a `pull_request` event in a repository named `octo-repo` that is owned by the `octo-org` organization: diff --git a/translations/zh-CN/content/actions/deployment/targeting-different-environments/using-environments-for-deployment.md b/translations/zh-CN/content/actions/deployment/targeting-different-environments/using-environments-for-deployment.md index 387ef721bf..52d5005266 100644 --- a/translations/zh-CN/content/actions/deployment/targeting-different-environments/using-environments-for-deployment.md +++ b/translations/zh-CN/content/actions/deployment/targeting-different-environments/using-environments-for-deployment.md @@ -10,7 +10,7 @@ redirect_from: - /actions/deployment/using-environments-for-deployment versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' --- diff --git a/translations/zh-CN/content/actions/guides.md b/translations/zh-CN/content/actions/guides.md index af76254e1a..67574a1620 100644 --- a/translations/zh-CN/content/actions/guides.md +++ b/translations/zh-CN/content/actions/guides.md @@ -13,7 +13,8 @@ learningTracks: - continuous_integration - continuous_deployment - deploy_to_the_cloud - - '{% ifversion ghec or ghes or ghae %}adopting_github_actions_for_your_enterprise{% endif %}' + - adopting_github_actions_for_your_enterprise_ghec + - adopting_github_actions_for_your_enterprise_ghes_and_ghae - hosting_your_own_runners - create_actions includeGuides: diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md index 31c4aee228..5e7c96e028 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/about-self-hosted-runners.md @@ -12,13 +12,16 @@ versions: type: overview --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} ## About self-hosted runners -{% data reusables.actions.self-hosted-runner-description %} Self-hosted runners can be physical, virtual, in a container, on-premises, or in a cloud. +A self-hosted runner is a system that you deploy and manage to execute jobs from {% data variables.product.prodname_actions %} on {% ifversion ghae or ghec %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. For more information about {% data variables.product.prodname_actions %}, see "[Understanding {% data variables.product.prodname_actions %}](/actions/learn-github-actions/understanding-github-actions){% ifversion fpt %}."{% elsif ghec or ghes or ghae %}" and "[About {% data variables.product.prodname_actions %} for enterprises](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)."{% endif %} + +{% data reusables.actions.self-hosted-runner-description %} {% data reusables.actions.self-hosted-runner-locations %} + +{% data reusables.actions.self-hosted-runner-architecture %} {% data reusables.actions.runner-app-open-source %} When a new version is released, the runner application automatically updates itself when a job is assigned to the runner, or within a week of release if the runner hasn't been assigned any jobs. You can add self-hosted runners at various levels in the management hierarchy: - Repository-level runners are dedicated to a single repository. @@ -59,7 +62,7 @@ You can use any machine as a self-hosted runner as long at it meets these requir * The machine has enough hardware resources for the type of workflows you plan to run. The self-hosted runner application itself only requires minimal resources. * If you want to run workflows that use Docker container actions or service containers, you must use a Linux machine and Docker must be installed. -{% ifversion fpt or ghes > 3.2 or ghec %} +{% ifversion fpt or ghes > 3.2 or ghec or ghae-issue-4462 %} ## Autoscaling your self-hosted runners You can automatically increase or decrease the number of self-hosted runners in your environment in response to the webhook events you receive. For more information, see "[Autoscaling with self-hosted runners](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)." @@ -133,12 +136,7 @@ The self-hosted runner polls {% data variables.product.product_name %} to retrie {% data reusables.actions.self-hosted-runner-ports-protocols %} -{% ifversion ghae %} -You must ensure that the self-hosted runner has appropriate network access to communicate with the {% data variables.product.prodname_ghe_managed %} URL and its subdomains. -For example, if your instance name is `octoghae`, then you will need to allow the self-hosted runner to access `octoghae.githubenterprise.com`, `api.octoghae.githubenterprise.com`, and `codeload.octoghae.githubenterprise.com`. - -If you use an IP address allow list for your {% data variables.product.prodname_dotcom %} organization or enterprise account, you must add your self-hosted runner's IP address to the allow list. For more information, see "[Managing allowed IP addresses for your organization](/organizations/keeping-your-organization-secure/managing-allowed-ip-addresses-for-your-organization#using-github-actions-with-an-ip-allow-list)." -{% endif %} +{% data reusables.actions.self-hosted-runner-communications-for-ghae %} {% ifversion fpt or ghec %} @@ -242,3 +240,11 @@ Untrusted workflows running on your self-hosted runner pose significant security * Persisting unwanted or dangerous data on the machine. For more information about security hardening for self-hosted runners, see "[Security hardening for {% data variables.product.prodname_actions %}](/actions/security-guides/security-hardening-for-github-actions#hardening-for-self-hosted-runners)." + +{% ifversion ghec or ghes or ghae %} + +## Further reading + +- "[Getting started with self-hosted runners for your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise)" + +{% endif %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md index 6be17995b5..142aec4a27 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md @@ -13,7 +13,6 @@ type: tutorial shortTitle: Add self-hosted runners --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} @@ -33,6 +32,16 @@ For more information, see "[About self-hosted runners](/github/automating-your-w {% endwarning %} {% endif %} +{% ifversion fpt or ghec or ghes > 3.2 %} + +You can set up automation to scale the number of self-hosted runners. For more information, see "[Autoscaling with self-hosted runners](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)." + +{% endif %} + +## Prerequisites + +{% data reusables.actions.self-hosted-runners-prerequisites %} + ## Adding a self-hosted runner to a repository You can add self-hosted runners to a single repository. To add a self-hosted runner to a user repository, you must be the repository owner. For an organization repository, you must be an organization owner or have admin access to the repository. For information about how to add a self-hosted runner with the REST API, see "[Self-hosted runners](/rest/reference/actions#self-hosted-runners)." @@ -53,6 +62,8 @@ You can add self-hosted runners to a single repository. To add a self-hosted run {% endif %} {% data reusables.actions.self-hosted-runner-check-installation-success %} +For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)." + ## Adding a self-hosted runner to an organization You can add self-hosted runners at the organization level, where they can be used to process jobs for multiple repositories in an organization. To add a self-hosted runner to an organization, you must be an organization owner. For information about how to add a self-hosted runner with the REST API, see "[Self-hosted runners](/rest/reference/actions#self-hosted-runners)." @@ -71,9 +82,10 @@ You can add self-hosted runners at the organization level, where they can be use 1. Under {% ifversion ghes > 3.1 or ghae %}"Runners", click **Add new**, then click **New runner**.{% elsif ghes < 3.2 %}"Self-hosted runners", click **Add runner**."{% endif %} {% data reusables.actions.self-hosted-runner-configure %} {% endif %} - {% data reusables.actions.self-hosted-runner-check-installation-success %} +For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)." + {% data reusables.actions.self-hosted-runner-public-repo-access %} ## Adding a self-hosted runner to an enterprise @@ -81,29 +93,20 @@ You can add self-hosted runners at the organization level, where they can be use {% ifversion fpt %}If you use {% data variables.product.prodname_ghe_cloud %}, you{% elsif ghec or ghes or ghae %}You{% endif %} can add self-hosted runners to an enterprise, where they can be assigned to multiple organizations. The organization admins are then able to control which repositories can use it. {% ifversion fpt %}For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-an-enterprise).{% endif %} {% ifversion ghec or ghes or ghae %} - New runners are assigned to the default group. You can modify the runner's group after you've registered the runner. For more information, see "[Managing access to self-hosted runners](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#moving-a-self-hosted-runner-to-a-group)." {% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} -To add a self-hosted runner to an enterprise account, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners). -{% data reusables.enterprise-accounts.access-enterprise %} -{% data reusables.enterprise-accounts.policies-tab %} -{% data reusables.enterprise-accounts.actions-tab %} -{% data reusables.enterprise-accounts.actions-runners-tab %} -1. Click **New runner**. -{% data reusables.actions.self-hosted-runner-configure %} -{% elsif ghae or ghes < 3.4 %} -To add a self-hosted runner at the enterprise level of {% data variables.product.product_location %}, you must be a site administrator. -{% data reusables.enterprise-accounts.access-enterprise %} -{% data reusables.enterprise-accounts.policies-tab %} -{% data reusables.enterprise-accounts.actions-tab %} -{% data reusables.enterprise-accounts.actions-runners-tab %} -1. Click **Add new**, then click **New runner**. -{% data reusables.actions.self-hosted-runner-configure %} +To add a self-hosted runner to an enterprise, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners). + {% endif %} + +{% data reusables.actions.self-hosted-runner-add-to-enterprise %} + {% data reusables.actions.self-hosted-runner-check-installation-success %} +For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)." + {% data reusables.actions.self-hosted-runner-public-repo-access %} ### Making enterprise runners available to repositories @@ -114,3 +117,11 @@ To make an enterprise-level self-hosted runner group available to an organizatio For more information on changing runner group access settings, see "[Managing access to self-hosted runners using groups](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#changing-the-access-policy-of-a-self-hosted-runner-group)." {% endif %} + +{% ifversion ghec or ghes or ghae %} + +## Further reading + +- "[Getting started with self-hosted runners for your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise)" + +{% endif %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md index 772ba71732..9046cfc75b 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md @@ -5,10 +5,10 @@ versions: fpt: '*' ghec: '*' ghes: '>3.2' + ghae: issue-4462 type: overview --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service.md b/translations/zh-CN/content/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service.md index f7b1a5d09e..13f7860877 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service.md @@ -13,7 +13,6 @@ defaultPlatform: linux shortTitle: 启动时运行运行器应用程序 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/index.md b/translations/zh-CN/content/actions/hosting-your-own-runners/index.md index 6a261e2651..92493531d9 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/index.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/index.md @@ -28,6 +28,5 @@ children: - /removing-self-hosted-runners --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md b/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md index 619aedbef9..1e7d307f9d 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups.md @@ -12,7 +12,6 @@ type: tutorial shortTitle: 管理运行器组 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} @@ -70,17 +69,19 @@ shortTitle: 管理运行器组 ![添加运行器组](/assets/images/help/settings/actions-org-add-runner-group.png) 1. 输入运行程序组的名称,并分配仓库访问策略。 - {% ifversion ghes or ghae %} 您可以配置一个运行器组可供一组特定的仓库或组织中所有仓库访问。 默认情况下,只有私有仓库可以访问运行器组中的运行器,但您可以覆盖此设置。 如果配置企业共享的组织的运行组,则不能覆盖此设置。{% endif %} + You can configure a runner group to be accessible to a specific list of repositories, or to all repositories in the organization.{% ifversion ghec or ghes %} By default, only private repositories can access runners in a runner group, but you can override this. 如果配置企业共享的组织的运行组,则不能覆盖此设置。{% endif %} + {%- ifversion ghes %} {% warning %} - **警告** + **Warning**: {% indented_data_reference reusables.actions.self-hosted-runner-security spaces=3 %} 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories)”。 {% endwarning %} + {%- endif %} ![添加运行器组选项](/assets/images/help/settings/actions-org-add-runner-group-options.png) 1. 单击 **Save group(保存组)**创建组并应用策略。 @@ -94,49 +95,29 @@ shortTitle: 管理运行器组 创建组时,必须选择用于定义哪些组织有权访问运行器组的策略。 -{% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} -{% data reusables.enterprise-accounts.access-enterprise %} -{% data reusables.enterprise-accounts.policies-tab %} -{% data reusables.enterprise-accounts.actions-tab %} -{% data reusables.enterprise-accounts.actions-runner-groups-tab %} -1. 单击 **New runner group(新运行器组)**。 - {% data reusables.actions.runner-group-assign-policy-org %} +{% data reusables.actions.self-hosted-runner-groups-add-to-enterprise-first-steps %} +1. To choose a policy for organization access, select the **Organization access** drop-down, and click a policy. You can configure a runner group to be accessible to a specific list of organizations, or all organizations in the enterprise.{% ifversion ghes %} By default, only private repositories can access runners in a runner group, but you can override this.{% endif %} + {%- ifversion ghec or ghes %} {% warning %} - **警告** + **Warning**: {% indented_data_reference reusables.actions.self-hosted-runner-security spaces=3 %} 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories)”。 {% endwarning %} -{% data reusables.actions.self-hosted-runner-create-group %} -{% elsif ghae or ghes < 3.4 %} -{% data reusables.enterprise-accounts.access-enterprise %} -{% data reusables.enterprise-accounts.policies-tab %} -{% data reusables.enterprise-accounts.actions-tab %} -{% data reusables.enterprise-accounts.actions-runners-tab %} -1. 单击 **Add new(新增)**,然后单击 **New group(新组)**。 + {%- endif %} + {%- ifversion ghec or ghes %} - ![添加运行器组](/assets/images/help/settings/actions-enterprise-account-add-runner-group.png) -1. 输入运行程序组的名称,并分配组织访问策略。 + ![添加运行器组选项](/assets/images/help/settings/actions-enterprise-account-add-runner-group-options.png) + {%- elsif ghae %} - 您可以配置运行器组供特定的组织列表或企业中所有组织访问。 默认情况下,只有私有仓库可以访问运行器组中的运行器,但您可以覆盖此设置。 如果配置企业共享的组织的运行组,则不能覆盖此设置。 - - {% warning %} - - **警告** - - {% indented_data_reference reusables.actions.self-hosted-runner-security spaces=3 %} - - 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories)”。 - - {% endwarning %} - - ![添加运行器组选项](/assets/images/help/settings/actions-enterprise-account-add-runner-group-options.png) + ![添加运行器组选项](/assets/images/help/settings/actions-enterprise-account-add-runner-group-options-ae.png) + {%- endif %} 1. 单击 **Save group(保存组)**创建组并应用策略。 -{% endif %} + {% endif %} ## 更改自托管运行器组的访问策略 @@ -147,15 +128,17 @@ shortTitle: 管理运行器组 {% data reusables.actions.settings-sidebar-actions-runner-groups-selection %} 1. 修改访问选项或更改运行器组名称。 + {%- ifversion fpt or ghec or ghes %} {% warning %} - **警告** + **Warning**: {% indented_data_reference reusables.actions.self-hosted-runner-security spaces=3 %} 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories)”。 {% endwarning %} + {%- endif %} {% elsif ghae or ghes < 3.4 %} {% data reusables.actions.self-hosted-runner-configure-runner-group-access %} {% endif %} @@ -182,7 +165,7 @@ shortTitle: 管理运行器组 {% data reusables.actions.self-hosted-runner-navigate-to-org-enterprise %} {% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} 1. 在“Runners(运行器)”列表中,单击您要配置的运行器。 -2. 选择运行器组下拉菜单。 +2. Select the **Runner group** drop-down. 3. 在“Move runner to group(将运行器移动到组)”中,选择运行器的目的地组。 {% elsif ghae or ghes < 3.4 %} 1. 在设置页面的{% ifversion ghes > 3.1 or ghae %}“Runners groups(运行器组)”{% elsif ghes < 3.2 %}“Self-hosted runners(自托管运行器)”{% endif %} 部分,找到要移动的运行器的当前组,并展开组成员列表。 ![查看运行器组成员](/assets/images/help/settings/actions-org-runner-group-members.png) diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md index 9d6baa9ecf..71a7221f37 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md @@ -15,7 +15,6 @@ defaultPlatform: linux shortTitle: Monitor & troubleshoot --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md index b8f8830105..290c9ade3e 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md @@ -13,7 +13,6 @@ type: tutorial shortTitle: 删除自托管的运行器 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners.md index c866eb7411..59fb323da6 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners.md @@ -12,7 +12,6 @@ type: tutorial shortTitle: 代理服务器 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/using-labels-with-self-hosted-runners.md b/translations/zh-CN/content/actions/hosting-your-own-runners/using-labels-with-self-hosted-runners.md index 43416744ca..6b0e1d06ee 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/using-labels-with-self-hosted-runners.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/using-labels-with-self-hosted-runners.md @@ -10,7 +10,6 @@ type: tutorial shortTitle: 标签运行器 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md b/translations/zh-CN/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md index 0ed90b933b..bb0b399806 100644 --- a/translations/zh-CN/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md +++ b/translations/zh-CN/content/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow.md @@ -13,7 +13,6 @@ type: tutorial shortTitle: 在工作流程中使用运行器 --- -{% data reusables.actions.ae-self-hosted-runners-notice %} {% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %} diff --git a/translations/zh-CN/content/actions/learn-github-actions/contexts.md b/translations/zh-CN/content/actions/learn-github-actions/contexts.md index 25a45286fb..ac73e75095 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/contexts.md +++ b/translations/zh-CN/content/actions/learn-github-actions/contexts.md @@ -501,7 +501,7 @@ jobs: ./build.sh --log-path ${{ runner.temp }}/build_logs - name: Upload logs on fail if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Build failure logs path: ${{ runner.temp }}/build_logs @@ -583,7 +583,7 @@ jobs: - uses: actions/checkout@v2 - run: npm test > test-job-${{ strategy.job-index }}.txt - name: Upload logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Build log for job ${{ strategy.job-index }} path: test-job-${{ strategy.job-index }}.txt diff --git a/translations/zh-CN/content/actions/learn-github-actions/essential-features-of-github-actions.md b/translations/zh-CN/content/actions/learn-github-actions/essential-features-of-github-actions.md index c79db62080..18a51a9afa 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/essential-features-of-github-actions.md +++ b/translations/zh-CN/content/actions/learn-github-actions/essential-features-of-github-actions.md @@ -75,7 +75,7 @@ jobs: run: | expr 1 + 1 > output.log - name: Upload output file - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: output-log-file path: output.log @@ -88,7 +88,7 @@ jobs: example-job: steps: - name: Download a single artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: output-log-file ``` diff --git a/translations/zh-CN/content/actions/learn-github-actions/understanding-github-actions.md b/translations/zh-CN/content/actions/learn-github-actions/understanding-github-actions.md index c30e6ef695..1dcbafa5ac 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/understanding-github-actions.md +++ b/translations/zh-CN/content/actions/learn-github-actions/understanding-github-actions.md @@ -26,8 +26,22 @@ topics: {% data variables.product.prodname_actions %} 不仅仅是 DevOps,还允许您在存储库中发生其他事件时运行工作流程。 例如,您可以运行工作流程,以便在有人在您的存储库中创建新问题时自动添加相应的标签。 +{% ifversion fpt or ghec %} + {% data variables.product.prodname_dotcom %} 提供 Linux、Windows 和 macOS 虚拟机来运行工作流程,或者您可以在自己的数据中心或云基础架构中托管自己的自托管运行器。 +{% elsif ghes or ghae %} + +You must host your own Linux, Windows, or macOS virtual machines to run workflows for {% data variables.product.product_location %}. {% data reusables.actions.self-hosted-runner-locations %} + +{% endif %} + +{% ifversion ghec or ghes or ghae %} + +For more information about introducing {% data variables.product.prodname_actions %} to your enterprise, see "[Introducing {% data variables.product.prodname_actions %} to your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise)." + +{% endif %} + ## {% data variables.product.prodname_actions %} 的组件 您可以将 {% data variables.product.prodname_actions %} _工作流程_配置为在存储库中发生_事件_时触发,例如打开拉取请求或创建议题。 工作流程包含一个或多个_作业_,这些作业可以按顺序运行,也可以并行运行。 每个作业都将在其自己的虚拟机_运行器_中运行,或者在容器内运行,并且具有一个或多个_步骤_ ,这些步骤要么运行您定义的脚本,要么运行_操作_,这是一个可重用的扩展,可以简化您的工作流程。 @@ -225,22 +239,14 @@ _操作_是 {% data variables.product.prodname_actions %} 平台的自定义应 ## 查看工作流程的活动 -工作流程开始运行后,您可以{% ifversion fpt or ghes > 3.0 or ghae or ghec %}查看运行进度的可视化图形,以及{% endif %}查看 {% data variables.product.prodname_dotcom %} 上每个步骤的活动。 +Once your workflow has started running, you can see a visualization graph of the run's progress and view each step's activity on {% data variables.product.prodname_dotcom %}. {% data reusables.repositories.navigate-to-repo %} 1. 在仓库名称下,单击 **Actions(操作)**。 ![导航到仓库](/assets/images/help/images/learn-github-actions-repository.png) 1. 在左侧边栏中,单击您想要查看的工作流程。 ![工作流程结果的屏幕截图](/assets/images/help/images/learn-github-actions-workflow.png) 1. 在“Workflow runs(工作流程运行)”下,单击您想要查看的运行的名称。 ![工作流程运行的屏幕截图](/assets/images/help/images/learn-github-actions-run.png) -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 1. 在 **Jobs(作业)**下或可视化图中,单击您要查看的作业。 ![选择作业](/assets/images/help/images/overview-actions-result-navigate.png) -{% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 1. 查看每个步骤的结果。 ![工作流程运行详细信息的屏幕截图](/assets/images/help/images/overview-actions-result-updated-2.png) -{% elsif ghes %} -1. 单击作业名称以查看每个步骤的结果。 ![工作流程运行详细信息的屏幕截图](/assets/images/help/images/overview-actions-result-updated.png) -{% else %} -1. 单击作业名称以查看每个步骤的结果。 ![工作流程运行详细信息的屏幕截图](/assets/images/help/images/overview-actions-result.png) -{% endif %} ## 后续步骤 diff --git a/translations/zh-CN/content/actions/managing-workflow-runs/canceling-a-workflow.md b/translations/zh-CN/content/actions/managing-workflow-runs/canceling-a-workflow.md index 3391d3201e..7a492c2e8f 100644 --- a/translations/zh-CN/content/actions/managing-workflow-runs/canceling-a-workflow.md +++ b/translations/zh-CN/content/actions/managing-workflow-runs/canceling-a-workflow.md @@ -19,12 +19,7 @@ versions: {% data reusables.repositories.actions-tab %} {% data reusables.repositories.navigate-to-workflow %} 1. 从工作流程运行列表中,单击您要取消的`已排队`或`进行中`运行的名称。 ![工作流程运行的名称](/assets/images/help/repository/in-progress-run.png) -1. 在工作流程右上角单击 **Cancel workflow(取消工作流程)**。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ![取消检查套件按钮](/assets/images/help/repository/cancel-check-suite-updated.png) -{% else %} - ![取消检查套件按钮](/assets/images/help/repository/cancel-check-suite.png) -{% endif %} +1. 在工作流程右上角单击 **Cancel workflow(取消工作流程)**。 ![取消检查套件按钮](/assets/images/help/repository/cancel-check-suite-updated.png) ## {% data variables.product.prodname_dotcom %} 取消工作流程运行所执行的步骤 diff --git a/translations/zh-CN/content/actions/managing-workflow-runs/downloading-workflow-artifacts.md b/translations/zh-CN/content/actions/managing-workflow-runs/downloading-workflow-artifacts.md index 301097a1c3..3c1a993cb9 100644 --- a/translations/zh-CN/content/actions/managing-workflow-runs/downloading-workflow-artifacts.md +++ b/translations/zh-CN/content/actions/managing-workflow-runs/downloading-workflow-artifacts.md @@ -23,11 +23,9 @@ shortTitle: 下载工作流程构件 {% data reusables.repositories.navigate-to-workflow %} {% data reusables.repositories.view-run %} 1. 在**构件**下,单击您想要下载的构件。 - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} + ![下载构件下拉菜单](/assets/images/help/repository/artifact-drop-down-updated.png) - {% else %} - ![下载构件下拉菜单](/assets/images/help/repository/artifact-drop-down.png) - {% endif %} + {% endwebui %} diff --git a/translations/zh-CN/content/actions/managing-workflow-runs/index.md b/translations/zh-CN/content/actions/managing-workflow-runs/index.md index 1921ccc0cc..3b23541f3b 100644 --- a/translations/zh-CN/content/actions/managing-workflow-runs/index.md +++ b/translations/zh-CN/content/actions/managing-workflow-runs/index.md @@ -1,7 +1,7 @@ --- title: 管理工作流程运行 shortTitle: 管理工作流程运行 -intro: '您可以重新运行或取消工作流程、{% ifversion fpt or ghes > 3.0 or ghae %}审核部署、{% endif %}查看可计费作业执行分钟数和下载工件。' +intro: '您可以重新运行或取消工作流程、{% ifversion fpt or ghes or ghae %}审核部署、{% endif %}查看可计费作业执行分钟数和下载工件。' redirect_from: - /actions/configuring-and-managing-workflows/managing-a-workflow-run - /articles/managing-a-workflow-run diff --git a/translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md b/translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md index c93e99d754..dd63f1d616 100644 --- a/translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md +++ b/translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md @@ -29,11 +29,9 @@ shortTitle: Remove workflow artifacts {% data reusables.repositories.navigate-to-workflow %} {% data reusables.repositories.view-run %} 1. Under **Artifacts**, click {% octicon "trash" aria-label="The trash icon" %} next to the artifact you want to remove. - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} + ![Delete artifact drop-down menu](/assets/images/help/repository/actions-delete-artifact-updated.png) - {% else %} - ![Delete artifact drop-down menu](/assets/images/help/repository/actions-delete-artifact.png) - {% endif %} + ## Setting the retention period for an artifact diff --git a/translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md b/translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md index 0e164843de..c4d06fdbd3 100644 --- a/translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md +++ b/translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md @@ -4,7 +4,7 @@ intro: You can approve or reject jobs awaiting review. product: '{% data reusables.gated-features.environments %}' versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' --- diff --git a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md index bc8ddeeab9..5327d180fe 100644 --- a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md +++ b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md @@ -158,7 +158,7 @@ GitHub Actions {% raw %} ```yaml - name: Upload math result for job 1 - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: homework path: math-homework.txt @@ -166,7 +166,7 @@ GitHub Actions ... - name: Download math result for job 1 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: homework ``` diff --git a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-gitlab-cicd-to-github-actions.md b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-gitlab-cicd-to-github-actions.md index 973bdb44da..4a086b1233 100644 --- a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-gitlab-cicd-to-github-actions.md +++ b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-gitlab-cicd-to-github-actions.md @@ -391,7 +391,7 @@ artifacts: {% raw %} ```yaml - name: Upload math result for job 1 - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: homework path: math-homework.txt diff --git a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md index 37f4338fc7..0c067b5a82 100644 --- a/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md +++ b/translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md @@ -187,7 +187,7 @@ Travis CI 和 {% data variables.product.prodname_actions %} 可以将自定义 ### 存储密码 -{% data variables.product.prodname_actions %} 允许您存储密码并在作业中引用它们。 {% data variables.product.prodname_actions %} 组织可以限制哪些仓库能够访问组织机密。 {% ifversion fpt or ghes > 3.0 or ghae or ghec %}环境保护规则可能需要手动批准工作流程才能访问环境秘密。 {% endif %}更多信息请参阅“[加密密码](/actions/reference/encrypted-secrets)”。 +{% data variables.product.prodname_actions %} 允许您存储密码并在作业中引用它们。 {% data variables.product.prodname_actions %} 组织可以限制哪些仓库能够访问组织机密。 Environment protection rules can require manual approval for a workflow to access environment secrets. 更多信息请参阅“[加密密码](/actions/reference/encrypted-secrets)”。 ### 在作业和工作流程之间共享文件 diff --git a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md index 92bccf803c..5fd63a64da 100644 --- a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md +++ b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging.md @@ -16,9 +16,7 @@ versions: 这些额外的日志将通过在包含工作流程的仓库中设置密码来启用,因此将应用相同的权限要求: - {% data reusables.actions.permissions-statement-secrets-repository %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - {% data reusables.actions.permissions-statement-secrets-environment %} -{% endif %} - {% data reusables.actions.permissions-statement-secrets-organization %} - {% data reusables.actions.permissions-statement-secrets-api %} diff --git a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph.md b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph.md index 5259749639..cf17670778 100644 --- a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph.md +++ b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph.md @@ -5,7 +5,7 @@ redirect_from: - /actions/managing-workflow-runs/using-the-visualization-graph versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' shortTitle: 使用可视化图表 diff --git a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md index c55e060d1f..742d49f9c3 100644 --- a/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md +++ b/translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md @@ -31,11 +31,11 @@ versions: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %} -{% data reusables.repositories.navigate-to-workflow-superlinter %} -{% data reusables.repositories.view-run-superlinter %} -{% data reusables.repositories.navigate-to-job-superlinter %} -{% data reusables.repositories.view-failed-job-results-superlinter %} -{% data reusables.repositories.view-specific-line-superlinter %} +{% data reusables.repositories.navigate-to-workflow %} +{% data reusables.repositories.view-run %} +{% data reusables.repositories.navigate-to-job %} +{% data reusables.repositories.view-failed-job-results %} +{% data reusables.repositories.view-specific-line %} ## 搜索日志 @@ -43,15 +43,10 @@ versions: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %} -{% data reusables.repositories.navigate-to-workflow-superlinter %} -{% data reusables.repositories.view-run-superlinter %} -{% data reusables.repositories.navigate-to-job-superlinter %} -1. 在日志输出的右上角,在 **Search logs(搜索日志)**搜索框中输入搜索查询。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ![搜索日志的搜索框](/assets/images/help/repository/search-log-box-updated-2.png) -{% else %} - ![搜索日志的搜索框](/assets/images/help/repository/search-log-box-updated.png) -{% endif %} +{% data reusables.repositories.navigate-to-workflow %} +{% data reusables.repositories.view-run %} +{% data reusables.repositories.navigate-to-job %} +1. 在日志输出的右上角,在 **Search logs(搜索日志)**搜索框中输入搜索查询。 ![搜索日志的搜索框](/assets/images/help/repository/search-log-box-updated-2.png) ## 下载日志 @@ -59,15 +54,13 @@ versions: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %} -{% data reusables.repositories.navigate-to-workflow-superlinter %} -{% data reusables.repositories.view-run-superlinter %} -{% data reusables.repositories.navigate-to-job-superlinter %} -1. In the upper right corner, click {% ifversion fpt or ghes > 3.0 or ghae or ghec %}{% octicon "gear" aria-label="The gear icon" %}{% else %}{% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}{% endif %} and select **Download log archive**. - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} +{% data reusables.repositories.navigate-to-workflow %} +{% data reusables.repositories.view-run %} +{% data reusables.repositories.navigate-to-job %} +1. In the upper right corner, click {% octicon "gear" aria-label="The gear icon" %} and select **Download log archive**. + ![下载日志下拉菜单](/assets/images/help/repository/download-logs-drop-down-updated-2.png) - {% else %} - ![下载日志下拉菜单](/assets/images/help/repository/download-logs-drop-down-updated.png) - {% endif %} + ## 删除日志 @@ -75,20 +68,16 @@ versions: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %} -{% data reusables.repositories.navigate-to-workflow-superlinter %} -{% data reusables.repositories.view-run-superlinter %} +{% data reusables.repositories.navigate-to-workflow %} +{% data reusables.repositories.view-run %} 1. In the upper right corner, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}. - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} + ![烤肉串水平图标](/assets/images/help/repository/workflow-run-kebab-horizontal-icon-updated-2.png) - {% else %} - ![烤肉串水平图标](/assets/images/help/repository/workflow-run-kebab-horizontal-icon-updated.png) - {% endif %} + 2. 要删除日志文件,单击 **Delete all logs(删除所有日志)**按钮并审查确认提示。 - {% ifversion fpt or ghes > 3.0 or ghae or ghec %} + ![删除所有日志](/assets/images/help/repository/delete-all-logs-updated-2.png) - {% else %} - ![删除所有日志](/assets/images/help/repository/delete-all-logs-updated.png) - {% endif %} + 删除日志后,**Delete all logs(删除所有日志)** 按钮将会移除,以表示在工作流程运行中没有日志文件。 ## 使用 {% data variables.product.prodname_cli %} 查看日志 diff --git a/translations/zh-CN/content/actions/security-guides/encrypted-secrets.md b/translations/zh-CN/content/actions/security-guides/encrypted-secrets.md index cb7c2b333a..a20f8f2fb8 100644 --- a/translations/zh-CN/content/actions/security-guides/encrypted-secrets.md +++ b/translations/zh-CN/content/actions/security-guides/encrypted-secrets.md @@ -1,6 +1,6 @@ --- title: 加密机密 -intro: '加密密码可让您将敏感信息存储在您的组织{% ifversion fpt or ghes > 3.0 or ghec %}、仓库或者仓库环境{% else %} 或仓库{% endif %} 中。' +intro: 'Encrypted secrets allow you to store sensitive information in your organization{% ifversion fpt or ghes or ghec %}, repository, or repository environments{% else %} or repository{% endif %}.' redirect_from: - /github/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets - /actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets @@ -19,13 +19,11 @@ versions: ## 关于加密密码 -机密是您在组织{% ifversion fpt or ghes > 3.0 or ghae or ghec %}、仓库或者仓库环境{% else %} 或仓库{% endif %} 中创建的加密环境变量。 您创建的机密可用于 {% data variables.product.prodname_actions %} 工作流程。 在机密到达 {% data variables.product.prodname_dotcom %} 之前,{% data variables.product.prodname_dotcom %} 使用 [libsodium 密封盒](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes)对机密加密,并且在您于工作流程中使用它们之前一直保持加密状态。 +Secrets are encrypted environment variables that you create in an organization, repository, or repository environment. 您创建的机密可用于 {% data variables.product.prodname_actions %} 工作流程。 在机密到达 {% data variables.product.prodname_dotcom %} 之前,{% data variables.product.prodname_dotcom %} 使用 [libsodium 密封盒](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes)对机密加密,并且在您于工作流程中使用它们之前一直保持加密状态。 {% data reusables.actions.secrets-org-level-overview %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 对于存储在环境级别的机密,您可以启用所需的审查者来控制对机密的访问。 在必要的审查者授予批准之前,工作流程作业无法访问环境机密。 -{% endif %} {% ifversion fpt or ghec or ghae-issue-4856 %} @@ -41,29 +39,27 @@ versions: {% data reusables.codespaces.secrets-naming %} - 例如,{% ifversion fpt or ghes > 3.0 or ghae or ghec %}在环境级别创建的机密必须在环境中具有唯一的名称,{% endif %}在仓库级别创建的机密必须在该仓库中具有唯一的名称,而在组织级别创建的机密必须在该级别具有独特的名称。 + For example, a secret created at the environment level must have a unique name in that environment, a secret created at the repository level must have a unique name in that repository, and a secret created at the organization level must have a unique name at that level. - {% data reusables.codespaces.secret-precedence %}{% ifversion fpt or ghes > 3.0 or ghae or ghec %}同样,如果组织、仓库和环境都具有同名的密钥,则环境级密钥优先。{% endif %} + {% data reusables.codespaces.secret-precedence %} Similarly, if an organization, repository, and environment all have a secret with the same name, the environment-level secret takes precedence. 为帮助确保 {% data variables.product.prodname_dotcom %} 在日志中编写密码,请勿将结构化数据用作密码的值。 例如,避免创建包含 JSON 或编码 Git blob 的密码。 ### 访问您的密码 -为使密码用于操作,必须将密码设置为工作流程文件中的输入或环境变量。 查看操作的自述文件以了解操作预期的输入和环境变量。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/articles/workflow-syntax-for-github-actions/#jobsjob_idstepsenv)”。 +为使密码用于操作,必须将密码设置为工作流程文件中的输入或环境变量。 查看操作的自述文件以了解操作预期的输入和环境变量。 For more information, see "[Workflow syntax for {% data variables.product.prodname_actions %}](/articles/workflow-syntax-for-github-actions/#jobsjob_idstepsenv)." 如果您拥有编辑文件的权限,便可在工作流程文件中使用和读取加密密码。 更多信息请参阅“[{% data variables.product.prodname_dotcom %} 上的访问权限](/github/getting-started-with-github/access-permissions-on-github)”。 {% data reusables.actions.secrets-redaction-warning %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 当工作流程运行排队时读取组织和仓库机密,在引用环境的作业开始时读取环境机密。 -{% endif %} -您还可以使用 REST API 管理密码。 更多信息请参阅“[密码](/rest/reference/actions#secrets)”。 +您还可以使用 REST API 管理密码。 For more information, see "[Secrets](/rest/reference/actions#secrets)." ### 限制凭据权限 -生成凭据时,建议尽可能授予最低的权限。 例如,不使用个人凭据,而使用[部署密钥](/developers/overview/managing-deploy-keys#deploy-keys)或服务帐户。 请考虑授予只读权限(如果这是所需的全部权限)并尽可能限制访问。 生成个人访问令牌 (PAT) 时,选择所需的最小范围。 +生成凭据时,建议尽可能授予最低的权限。 For example, instead of using personal credentials, use [deploy keys](/developers/overview/managing-deploy-keys#deploy-keys) or a service account. 请考虑授予只读权限(如果这是所需的全部权限)并尽可能限制访问。 生成个人访问令牌 (PAT) 时,选择所需的最小范围。 {% note %} @@ -85,7 +81,7 @@ versions: 1. 输入密码的值。 1. 单击 **Add secret(添加密码)**。 -如果您的仓库 {% ifversion fpt or ghes > 3.0 or ghae or ghec %}拥有环境机密或 {% endif %}可以访问父组织中的机密,则这些机密也会列入本页。 +If your repository has environment secrets or can access secrets from the parent organization, then those secrets are also listed on this page. {% endwebui %} @@ -109,8 +105,6 @@ gh secret set secret-name < secret.txt {% endcli %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ## 为环境创建加密密码 {% data reusables.actions.permissions-statement-secrets-environment %} @@ -144,8 +138,6 @@ gh secret list --env environment-name {% endcli %} -{% endif %} - ## 为组织创建加密密码 在组织中创建密码时,可以使用策略来限制可以访问该密码的仓库。 例如,您可以将访问权限授予所有仓库,也可以限制仅私有仓库或指定的仓库列表拥有访问权限。 @@ -217,7 +209,7 @@ gh secret list --org organization-name {% note %} -**注:**{% data reusables.actions.forked-secrets %} +**Note:** {% data reusables.actions.forked-secrets %} {% endnote %} @@ -234,7 +226,7 @@ steps: ``` {% endraw %} -尽可能避免使用命令行在进程之间传递密码。 命令行进程可能对其他用户可见(使用 `ps` 命令)或通过[安全审计事件](https://docs.microsoft.com/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing)获取。 为帮助保护密码,请考虑使用环境变量 `STDIN` 或目标进程支持的其他机制。 +尽可能避免使用命令行在进程之间传递密码。 Command-line processes may be visible to other users (using the `ps` command) or captured by [security audit events](https://docs.microsoft.com/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing). 为帮助保护密码,请考虑使用环境变量 `STDIN` 或目标进程支持的其他机制。 如果必须在命令行中传递密码,则将它们包含在适当的引用规则中。 密码通常包含可能意外影响 shell 的特殊字符。 要转义这些特殊字符,请引用环境变量。 例如: @@ -279,19 +271,19 @@ steps: ## 密码的限制 -您可以存储最多 1,000 个组织密钥{% ifversion fpt or ghes > 3.0 or ghae or ghec %}、100 个仓库密钥和 100 个环境密钥{% else %} 以及 100 个仓库密钥{% endif %}。 +You can store up to 1,000 organization secrets, 100 repository secrets, and 100 environment secrets. 在仓库中创建的工作流程可以访问以下数量的密钥: * 所有100个仓库密钥。 * 如果分配仓库访问超过 100 个组织密钥,则工作流程只能使用前 100 个组织密钥(按密钥名称字母顺序排序)。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %}* 所有 100 个环境密钥。{% endif %} +* All 100 environment secrets. 密码大小限于 64 KB。 要使用大于 64 KB 的密码,可以将加密的密码存储在仓库中,并将解密短语在 {% data variables.product.prodname_dotcom %} 上存储为密码。 例如,在将文件检入您在 {% data variables.product.prodname_dotcom %} 上的仓库之前,可以使用 `gpg` 在本地对您的凭据加密。 更多信息请参阅“[gpg manpage](https://www.gnupg.org/gph/de/manual/r1023.html)”。 {% warning %} -**警告**:请注意,您的密码在操作运行时不会印出。 使用此解决方法时,{% data variables.product.prodname_dotcom %} 不会编写日志中印出的密码。 +**Warning**: Be careful that your secrets do not get printed when your action runs. 使用此解决方法时,{% data variables.product.prodname_dotcom %} 不会编写日志中印出的密码。 {% endwarning %} @@ -355,7 +347,6 @@ steps: ``` {% endraw %} - ## Storing Base64 binary blobs as secrets You can use Base64 encoding to store small binary blobs as secrets. You can then reference the secret in your workflow and decode it for use on the runner. For the size limits, see ["Limits for secrets"](/actions/security-guides/encrypted-secrets#limits-for-secrets). diff --git a/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md b/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md index 7dcbf6e459..1504c6cea8 100644 --- a/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md +++ b/translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md @@ -25,7 +25,7 @@ miniTocMaxHeadingLevel: 3 ## 使用密码 -敏感值绝不能以明文存储在工作流程文件中,而应存储为密码。 [密码](/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets)可在组织{% ifversion fpt or ghes > 3.0 or ghae or ghec %}、仓库或环境{% else %}或仓库{% endif %}级配置,可用于在 {% data variables.product.product_name %} 中存储敏感信息。 +敏感值绝不能以明文存储在工作流程文件中,而应存储为密码。 [Secrets](/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) can be configured at the organization, repository, or environment level, and allow you to store sensitive information in {% data variables.product.product_name %}. 密码使用 [Libsodium 密封箱](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes),以使它们在到达 {% data variables.product.product_name %} 前被加密处理。 [使用 UI](/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) 或通过 [REST API](/rest/reference/actions#secrets) 提交密码时就会发生这种情况。 此客户端加密有助于最大程度地减少与 {% data variables.product.product_name %}基础架构中的意外日志记录相关的风险(例如,异常日志和请求日志等)。 密钥在上传后,{% data variables.product.product_name %} 可对其进行解密,以便它能够被注入工作流程运行时。 @@ -45,10 +45,8 @@ miniTocMaxHeadingLevel: 3 - **审核并轮换注册密码** - 定期查查已注册的密码,以确认它们仍是必需的。 删除不再需要的密码。 - 定期轮换密码,以减小泄露的密码有效的时间窗。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - **考虑要求对访问密码进行审查** - 您可以使用所需的审查者来保护环境机密。 在审查者批准之前,工作流程作业无法访问环境机密。 For more information about storing secrets in environments or requiring reviews for environments, see "[Encrypted secrets](/actions/reference/encrypted-secrets)" and "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)." -{% endif %} ## 使用 `CODEOWNERS` 监控更改 @@ -175,13 +173,7 @@ For more information, see "[About {% data variables.product.prodname_code_scanni 将操作固定到全长提交 SHA 是当前将操作用作不可变版本的唯一方法。 固定到特定 SHA 有助于降低恶意执行者向操作仓库添加后门的风险,因为他们需要为有效的 Git 对象负载生成 SHA-1 冲突。 - {% ifversion ghes < 3.1 %} - {% warning %} - **警告** 提交 SHA 的简短版本不安全,绝不可用于指定操作的 Git 引用。 由于仓库网络的工作方式,任何用户都可以复刻仓库,将精心编写的提交推送到与短 SHA 冲突的仓库。 这会导致该 SHA 上的后续克隆失败,因为它成为不明确的提交。 因此,使用缩短的 SHA 的任何工作流程将立即失败。 - - {% endwarning %} - {% endif %} * **审核操作的源代码** @@ -271,7 +263,7 @@ The attacker server can use the {% ifversion fpt or ghec %}{% data variables.pro {% ifversion fpt or ghec %}**Self-hosted**{% elsif ghes or ghae %}Self-hosted{% endif %} runners for {% data variables.product.product_name %} do not have guarantees around running in ephemeral clean virtual machines, and can be persistently compromised by untrusted code in a workflow. -{% ifversion fpt or ghec %}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{% elsif ghes or ghae %}Be{% endif %} cautious when using self-hosted runners on private or internal repositories, as anyone who can fork the repository and open a pull request (generally those with read-access to the repository) are able to compromise the self-hosted runner environment, including gaining access to secrets and the `GITHUB_TOKEN` which{% ifversion fpt or ghes > 3.1 or ghae or ghec %}, depending on its settings, can grant {% else %} grants {% endif %}write-access permissions on the repository. 尽管工作流程可以通过使用环境和必需的审查来控制对环境密钥的访问,但是这些工作流程不是在隔离的环境中运行,在自托管运行程器上运行时仍然容易遭受相同的风险。 +{% ifversion fpt or ghec %}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{% elsif ghes or ghae %}Be{% endif %} cautious when using self-hosted runners on private or internal repositories, as anyone who can fork the repository and open a pull request (generally those with read access to the repository) are able to compromise the self-hosted runner environment, including gaining access to secrets and the `GITHUB_TOKEN` which{% ifversion fpt or ghes > 3.1 or ghae or ghec %}, depending on its settings, can grant {% else %} grants {% endif %}write access to the repository. 尽管工作流程可以通过使用环境和必需的审查来控制对环境密钥的访问,但是这些工作流程不是在隔离的环境中运行,在自托管运行程器上运行时仍然容易遭受相同的风险。 在组织或企业级别定义自托管运行器时, {% data variables.product.product_name %} 可将多个仓库中的工作流程安排到同一个运行器中。 因此,这些环境的安全危害可能会导致广泛的影响。 为了帮助缩小损害范围,可以通过将自托管运行器组织到单独的组中来创建边界。 更多信息请参阅“[使用组管理对自托管运行器的访问](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups)”。 @@ -285,12 +277,12 @@ The attacker server can use the {% ifversion fpt or ghec %}{% data variables.pro A self-hosted runner can be added to various levels in your {% data variables.product.prodname_dotcom %} hierarchy: the enterprise, organization, or repository level. This placement determines who will be able to manage the runner: -**Centralised management:** +**Centralized management:** - If you plan to have a centralized team own the self-hosted runners, then the recommendation is to add your runners at the highest mutual organization or enterprise level. This gives your team a single location to view and manage your runners. - If you only have a single organization, then adding your runners at the organization level is effectively the same approach, but you might encounter difficulties if you add another organization in the future. -**De-centralised management:** - - If each team will manage their own self-hosted runners, then its recommended that you add the runners at the highest level of team ownership. For example, if each team owns their own organization, then it will be simplest if the runners are added at the organization level too. +**Decentralized management:** + - If each team will manage their own self-hosted runners, then the recommendation is to add the runners at the highest level of team ownership. For example, if each team owns their own organization, then it will be simplest if the runners are added at the organization level too. - You could also add runners at the repository level, but this will add management overhead and also increases the numbers of runners you need, since you cannot share runners between repositories. {% ifversion fpt or ghec or ghae-issue-4856 %} diff --git a/translations/zh-CN/content/actions/using-workflows/advanced-workflow-features.md b/translations/zh-CN/content/actions/using-workflows/advanced-workflow-features.md index a042a736f1..99596fa52f 100644 --- a/translations/zh-CN/content/actions/using-workflows/advanced-workflow-features.md +++ b/translations/zh-CN/content/actions/using-workflows/advanced-workflow-features.md @@ -1,7 +1,7 @@ --- title: Advanced workflow features shortTitle: Advanced workflow features -intro: '本指南说明如何使用 {% data variables.product.prodname_actions %} 的高级功能,包括机密管理、相关作业、缓存、生成矩阵、{% ifversion fpt or ghes > 3.0 or ghae or ghec %}环境{% endif %}和标签。' +intro: 'This guide shows you how to use the advanced features of {% data variables.product.prodname_actions %}, with secret management, dependent jobs, caching, build matrices, environments, and labels.' redirect_from: - /actions/learn-github-actions/managing-complex-workflows versions: @@ -169,12 +169,9 @@ To learn more about {% data variables.product.prodname_dotcom %}-hosted runner l {% data reusables.actions.reusable-workflows %} {% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ## 使用环境 您可以使用保护规则和机密配置环境。 工作流程中的每个作业都可以引用单个环境。 在将引用环境的作业发送到运行器之前,必须通过为环境配置的任何保护规则。 更多信息请参阅“[使用环境进行部署](/actions/deployment/using-environments-for-deployment)”。 -{% endif %} ## Using starter workflows diff --git a/translations/zh-CN/content/actions/using-workflows/events-that-trigger-workflows.md b/translations/zh-CN/content/actions/using-workflows/events-that-trigger-workflows.md index c16f2cd0c6..6098213611 100644 --- a/translations/zh-CN/content/actions/using-workflows/events-that-trigger-workflows.md +++ b/translations/zh-CN/content/actions/using-workflows/events-that-trigger-workflows.md @@ -39,8 +39,7 @@ Some events have multiple activity types. For these events, you can specify whic {% data reusables.actions.branch-requirement %} -Runs your workflow when branch protection rules in the workflow repository are changed. For more information about branch protection rules, see "[About protected branches](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches)." For information about the branch protection rule APIs, see "[BranchProtectionRule](/graphql/reference/objects#branchprotectionrule)" in the GraphQL API documentation or "[Branches](/rest/reference/branches)" in the REST API documentation. - +Runs your workflow when branch protection rules in the workflow repository are changed. 有关分支保护规则的更多信息,请参阅“[关于受保护分支](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches)”。 For information about the branch protection rule APIs, see "[BranchProtectionRule](/graphql/reference/objects#branchprotectionrule)" in the GraphQL API documentation or "[Branches](/rest/reference/branches)" in the REST API documentation. For example, you can run a workflow when a branch protection rule has been `created` or `deleted`: @@ -558,9 +557,9 @@ on: ### `pull_request` -| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | ----------------------------------- | -| [`pull_request`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#pull_request) | - `assigned`
- `unassigned`
- `labeled`
- `unlabeled`
- `opened`
- `edited`
- `closed`
- `reopened`
- `synchronize`
- `converted_to_draft`
- `ready_for_review`
- `locked`
- `unlocked`
- `review_requested`
- `review_request_removed`{% ifversion fpt or ghes > 3.0 or ghae or ghec %}
- `auto_merge_enabled`
- `auto_merge_disabled`{% endif %} | `GITHUB_REF` 分支上的最新合并提交 | PR 合并分支 `refs/pull/:prNumber/merge` | +| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | ----------------------------------- | +| [`pull_request`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#pull_request) | - `assigned`
- `unassigned`
- `labeled`
- `unlabeled`
- `opened`
- `edited`
- `closed`
- `reopened`
- `synchronize`
- `converted_to_draft`
- `ready_for_review`
- `locked`
- `unlocked`
- `review_requested`
- `review_request_removed`
- `auto_merge_enabled`
- `auto_merge_disabled` | `GITHUB_REF` 分支上的最新合并提交 | PR 合并分支 `refs/pull/:prNumber/merge` | {% note %} @@ -777,9 +776,9 @@ on: ### `pull_request_target` -| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------ | -| [`pull_request`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#pull_request) | - `assigned`
- `unassigned`
- `labeled`
- `unlabeled`
- `opened`
- `edited`
- `closed`
- `reopened`
- `synchronize`
- `converted_to_draft`
- `ready_for_review`
- `locked`
- `unlocked`
- `review_requested`
- `review_request_removed`{% ifversion fpt or ghes > 3.0 or ghae or ghec %}
- `auto_merge_enabled`
- `auto_merge_disabled`{% endif %} | PR 基分支上的最后一次提交 | PR 基础分支 | +| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------ | +| [`pull_request`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#pull_request) | - `assigned`
- `unassigned`
- `labeled`
- `unlabeled`
- `opened`
- `edited`
- `closed`
- `reopened`
- `synchronize`
- `converted_to_draft`
- `ready_for_review`
- `locked`
- `unlocked`
- `review_requested`
- `review_request_removed`
- `auto_merge_enabled`
- `auto_merge_disabled` | PR 基分支上的最后一次提交 | PR 基础分支 | {% note %} @@ -1300,7 +1299,6 @@ gh workflow run run-tests.yml -f logLevel=warning -f tags=false -f environment=s For more information, see the {% data variables.product.prodname_cli %} information in "[Manually running a workflow](/actions/managing-workflow-runs/manually-running-a-workflow)." - {% else %} 此示例定义了 `name` 和 `home` 输入,并使用 `github.event.inputs.name` 和 `github.event.inputs.home` 上下文打印。 如果未提供 `home` ,则打印默认值“The Octoverse”。 @@ -1431,7 +1429,7 @@ jobs: run: | mkdir -p ./pr echo $PR_NUMBER > ./pr/pr_number - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: pr_number path: pr/ diff --git a/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md b/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md index e05fdb3457..ed6162ec6b 100644 --- a/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md +++ b/translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md @@ -101,14 +101,14 @@ jobs: npm run build --if-present npm test - name: Archive production artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist-without-markdown path: | dist !dist/**/*.md - name: Archive code coverage results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: code-coverage-report path: output/test/code-coverage.html @@ -120,7 +120,7 @@ You can define a custom retention period for individual artifacts created by a w ```yaml{:copy} - name: 'Upload Artifact' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: my-artifact path: my_file.txt @@ -149,7 +149,7 @@ Specify an artifact's name to download an individual artifact. If you uploaded a ```yaml - name: Download a single artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: my-artifact ``` @@ -158,7 +158,7 @@ You can also download all artifacts in a workflow run by not specifying a name. ```yaml - name: Download all workflow run artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 ``` If you download all workflow run's artifacts, a directory for each artifact is created using its name. @@ -200,7 +200,7 @@ jobs: run: | expr 3 + 7 > math-homework.txt - name: Upload math result for job 1 - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: homework path: math-homework.txt @@ -211,7 +211,7 @@ jobs: runs-on: windows-latest steps: - name: Download math result for job 1 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: homework - shell: bash @@ -219,7 +219,7 @@ jobs: value=`cat math-homework.txt` expr $value \* 9 > math-homework.txt - name: Upload math result for job 2 - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: homework path: math-homework.txt @@ -230,7 +230,7 @@ jobs: runs-on: macOS-latest steps: - name: Download math result for job 2 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: homework - name: Print the final result @@ -241,11 +241,7 @@ jobs: ``` The workflow run will archive any artifacts that it generated. For more information on downloading archived artifacts, see "[Downloading workflow artifacts](/actions/managing-workflow-runs/downloading-workflow-artifacts)." -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ![Workflow that passes data between jobs to perform math](/assets/images/help/repository/passing-data-between-jobs-in-a-workflow-updated.png) -{% else %} -![Workflow that passes data between jobs to perform math](/assets/images/help/repository/passing-data-between-jobs-in-a-workflow.png) -{% endif %} {% ifversion fpt or ghec %} diff --git a/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md index bd19ee3f15..88dde4ac8d 100644 --- a/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -166,7 +166,6 @@ A string identifier to associate with the secret. A boolean specifying whether the secret must be supplied. {% endif %} - ## `on.workflow_run.` {% data reusables.actions.workflows.section-specifying-branches %} @@ -186,6 +185,8 @@ A boolean specifying whether the secret must be supplied. 环境变量的 `map` 可用于工作流程中所有作业的步骤。 您还可以设置仅适用于单个作业的步骤或单个步骤的环境变量。 更多信息请参阅 [`jobs..env`](#jobsjob_idenv) and [`jobs..steps[*].env`](#jobsjob_idstepsenv)。 +Variables in the `env` map cannot be defined in terms of other variables in the map. + {% data reusables.repositories.actions-env-var-note %} ### 示例 @@ -240,13 +241,10 @@ env: {% data reusables.actions.jobs.section-choosing-the-runner-for-a-job %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ## `jobs..environment` {% data reusables.actions.jobs.section-using-environments-for-jobs %} -{% endif %} - {% ifversion fpt or ghae or ghes > 3.1 or ghec %} ## `jobs..concurrency` diff --git a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md index 59b9911171..46c6d3387a 100644 --- a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md @@ -34,7 +34,7 @@ You can configure {% data variables.product.prodname_code_scanning %} to run {% ## Prerequisites for {% data variables.product.prodname_code_scanning %} -- A license for {% data variables.product.prodname_GH_advanced_security %}{% ifversion ghes > 3.0 %} (see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)"){% endif %} +- A license for {% data variables.product.prodname_GH_advanced_security %}{% ifversion ghes %} (see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)"){% endif %} - {% data variables.product.prodname_code_scanning_capc %} enabled in the management console (see "[Enabling {% data variables.product.prodname_GH_advanced_security %} for your enterprise](/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise)") @@ -64,21 +64,18 @@ If you set up the {% data variables.product.prodname_codeql %} action sync tool, {% endif %} - ### Configuring {% data variables.product.prodname_github_connect %} to sync {% data variables.product.prodname_actions %} 1. If you want to download action workflows on demand from {% data variables.product.prodname_dotcom_the_website %}, you need to enable {% data variables.product.prodname_github_connect %}. For more information, see "[Enabling {% data variables.product.prodname_github_connect %}](/admin/configuration/managing-connections-between-your-enterprise-accounts/connecting-your-enterprise-account-to-github-enterprise-cloud#enabling-github-connect)." 2. You'll also need to enable {% data variables.product.prodname_actions %} for {% data variables.product.product_location %}. For more information, see "[Getting started with {% data variables.product.prodname_actions %} for {% data variables.product.prodname_ghe_server %}](/admin/github-actions/getting-started-with-github-actions-for-github-enterprise-server)." 3. The next step is to configure access to actions on {% data variables.product.prodname_dotcom_the_website %} using {% data variables.product.prodname_github_connect %}. For more information, see "[Enabling automatic access to {% data variables.product.prodname_dotcom_the_website %} actions using {% data variables.product.prodname_github_connect %}](/enterprise/admin/github-actions/enabling-automatic-access-to-githubcom-actions-using-github-connect)." 4. Add a self-hosted runner to your repository, organization, or enterprise account. For more information, see "[Adding self-hosted runners](/actions/hosting-your-own-runners/adding-self-hosted-runners)." - ## Running code scanning using the {% data variables.product.prodname_codeql_cli %} If you don't want to use {% data variables.product.prodname_actions %}, you should run {% data variables.product.prodname_code_scanning %} using the {% data variables.product.prodname_codeql_cli %}. The {% data variables.product.prodname_codeql_cli %} is a command-line tool that you use to analyze codebases on any machine, including a third-party CI/CD system. For more information, see "[Installing CodeQL CLI in your CI system](/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system)." - {% if codeql-runner-supported %} ## Running {% data variables.product.prodname_code_scanning %} using the {% data variables.product.prodname_codeql_runner %} @@ -89,4 +86,4 @@ If you don't want to use {% data variables.product.prodname_actions %}, you can The {% data variables.product.prodname_codeql_runner %} is a command-line tool that you can add to your third-party CI/CD system. The tool runs {% data variables.product.prodname_codeql %} analysis on a checkout of a {% data variables.product.prodname_dotcom %} repository. For more information, see "[Running {% data variables.product.prodname_code_scanning %} in your CI system](/github/finding-security-vulnerabilities-and-errors-in-your-code/running-codeql-code-scanning-in-your-ci-system)." -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md index 7aaf539c3c..8446069a04 100644 --- a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-secret-scanning-for-your-appliance.md @@ -29,10 +29,9 @@ If someone checks a secret with a known pattern into a repository, {% data varia ## Prerequisites for {% data variables.product.prodname_secret_scanning %} - - The [SSSE3](https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf#G3.1106470) (Supplemental Streaming SIMD Extensions 3) CPU flag needs to be enabled on the VM/KVM that runs {% data variables.product.product_location %}. -- A license for {% data variables.product.prodname_GH_advanced_security %}{% ifversion ghes > 3.0 %} (see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)"){% endif %} +- A license for {% data variables.product.prodname_GH_advanced_security %}{% ifversion ghes %} (see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)"){% endif %} - {% data variables.product.prodname_secret_scanning_caps %} enabled in the management console (see "[Enabling {% data variables.product.prodname_GH_advanced_security %} for your enterprise](/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise)") diff --git a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md index 9e8dea2efa..f0908fc46d 100644 --- a/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/enabling-github-advanced-security-for-your-enterprise.md @@ -20,10 +20,10 @@ topics: {% data reusables.advanced-security.ghas-helps-developers %} -{% ifversion ghes > 3.0 %} +{% ifversion ghes %} 为企业启用 {% data variables.product.prodname_GH_advanced_security %} 后,所有组织的仓库管理员都可以启用这些功能,除非您设置了限制访问的策略。 更多信息请参阅“[在企业中执行 {% data variables.product.prodname_advanced_security %} 的策略](/admin/policies/enforcing-policies-for-advanced-security-in-your-enterprise)”。 {% else %} -为企业启用 {% data variables.product.prodname_GH_advanced_security %} 后,所有组织的仓库管理员都可以启用这些功能。 {% ifversion ghes = 3.0 %}更多信息请参阅“[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)”或“[管理仓库的安全和分析设置](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)”。{% endif %} +为企业启用 {% data variables.product.prodname_GH_advanced_security %} 后,所有组织的仓库管理员都可以启用这些功能。 {% endif %} {% ifversion ghes %} @@ -32,24 +32,16 @@ topics: ## 检查您的许可是否包含 {% data variables.product.prodname_GH_advanced_security %} -{% ifversion ghes > 3.0 %} +{% ifversion ghes %} {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.license-tab %} 1. 如果您的许可包括 {% data variables.product.prodname_GH_advanced_security %},则许可页面将包括显示当前使用情况详细信息的部分。 ![企业许可证的 {% data variables.product.prodname_GH_advanced_security %} 部分](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png) {% endif %} -{% ifversion ghes = 3.0 %} -{% data reusables.enterprise_site_admin_settings.access-settings %} -{% data reusables.enterprise_site_admin_settings.management-console %} -1. 如果您的许可包括 {% data variables.product.prodname_GH_advanced_security %},则左侧边栏中有一个 **{% data variables.product.prodname_advanced_security %}** 条目。 ![高级安全侧边栏](/assets/images/enterprise/management-console/sidebar-advanced-security.png) - -{% data reusables.enterprise_management_console.advanced-security-license %} -{% endif %} - ## 启用 {% data variables.product.prodname_GH_advanced_security %} 的前提条件 -1. 升级 {% data variables.product.product_name %} 许可以包括 {% data variables.product.prodname_GH_advanced_security %}。{% ifversion ghes > 3.0 %}有关许可的更多信息,请参阅“[关于 {% data variables.product.prodname_GH_advanced_security %} 的计费](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)”。{% endif %} +1. 升级 {% data variables.product.product_name %} 许可以包括 {% data variables.product.prodname_GH_advanced_security %}。{% ifversion ghes %}有关许可的更多信息,请参阅“[关于 {% data variables.product.prodname_GH_advanced_security %} 的计费](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)”。{% endif %} 2. 下载新的许可文件。 更多信息请参阅“[下载 {% data variables.product.prodname_enterprise %} 的许可](/billing/managing-your-license-for-github-enterprise/downloading-your-license-for-github-enterprise)”。 3. 将新许可文件上传到 {% data variables.product.product_location %}。 更多信息请参阅“[上传新许可到 {% data variables.product.prodname_ghe_server %}](/billing/managing-your-license-for-github-enterprise/uploading-a-new-license-to-github-enterprise-server)”。{% ifversion ghes %} 4. 审查您计划启用的功能的先决条件。 diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md index 718b426ffc..03e4dbaf66 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise.md @@ -1,6 +1,6 @@ --- title: Enabling automatic user license sync for your enterprise -intro: 'You can manage license usage across your {% data variables.product.prodname_enterprise %} deployments by automatically syncing user licenses from {% data variables.product.product_location %} to {% data variables.product.prodname_ghe_cloud %}.' +intro: 'You can manage license usage across your {% data variables.product.prodname_enterprise %} environments by automatically syncing user licenses from {% data variables.product.product_location %} to {% data variables.product.prodname_ghe_cloud %}.' redirect_from: - /enterprise/admin/installation/enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud - /enterprise/admin/configuration/enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud @@ -20,13 +20,22 @@ shortTitle: Automatic user license sync ## 关于许可同步 -After you enable license synchronization, you'll be able to view license usage for your entire enterprise across {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %}. {% data variables.product.prodname_github_connect %} 每周在 {% data variables.product.prodname_ghe_server %} 与 {% data variables.product.prodname_ghe_cloud %} 之间同步许可。 更多信息请参阅“[管理 {% data variables.product.prodname_enterprise %} 的许可](/billing/managing-your-license-for-github-enterprise)”。 +{% 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)." + +If you enable automatic user license sync for your enterprise, {% data variables.product.prodname_github_connect %} will automatically synchronize license usage between {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %} weekly. + +If you use multiple {% data variables.product.prodname_ghe_server %} instances, you can enable automatic license sync between each of your instances and the same organization or enterprise account on {% data variables.product.prodname_ghe_cloud %}. + +{% data reusables.enterprise-licensing.view-consumed-licenses %} 您还可以手动将 {% data variables.product.prodname_ghe_server %} 用户许可信息上传到 {% data variables.product.prodname_ghe_cloud %}。 For more information, see "[Syncing license usage between {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %}](/billing/managing-your-license-for-github-enterprise/syncing-license-usage-between-github-enterprise-server-and-github-enterprise-cloud)." +{% data reusables.enterprise-licensing.verified-domains-license-sync %} + ## 启用许可同步 Before enabling license synchronization on {% data variables.product.product_location %}, you must enable {% data variables.product.prodname_github_connect %}. For more information, see "[Managing {% data variables.product.prodname_github_connect %}](/admin/configuration/configuring-github-connect/managing-github-connect)." -{% data reusables.enterprise-accounts.access-enterprise %}{% ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %}{% data reusables.enterprise-accounts.github-connect-tab %} +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.github-connect-tab %} 1. 在“Server can sync user license count and usage”下,使用下拉菜单,然后选择 **Enabled**。 ![用于启用自动用户许可同步的下拉菜单](/assets/images/enterprise/site-admin-settings/enable-user-license-drop-down.png) diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md index 3429b78734..763a67eb20 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md @@ -28,7 +28,7 @@ topics: {% data variables.product.prodname_dependabot %} helps users of {% data variables.product.product_location %} find and fix vulnerabilities in their dependencies.{% ifversion ghes > 3.2 %} You can enable {% data variables.product.prodname_dependabot_alerts %} to notify users about vulnerable dependencies and {% data variables.product.prodname_dependabot_updates %} to fix the vulnerabilities and keep dependencies updated to the latest version. -### About {% data variables.product.prodname_dependabot_alerts %} +### 关于 {% data variables.product.prodname_dependabot_alerts %} {% endif %} {% data reusables.dependabot.dependabot-alerts-beta %} @@ -39,7 +39,7 @@ With {% data variables.product.prodname_dependabot_alerts %}, {% data variables. After you enable {% data variables.product.prodname_dependabot_alerts %} for your enterprise, vulnerability data is synced from the {% data variables.product.prodname_advisory_database %} to your instance once every hour. Only {% data variables.product.company_short %}-reviewed advisories are synchronized. {% data reusables.security-advisory.link-browsing-advisory-db %} -You can also choose to manually sync vulnerability data at any time. For more information, see "[Viewing the vulnerability data for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise)." +您还可以随时选择手动同步漏洞数据。 For more information, see "[Viewing the vulnerability data for your enterprise](/admin/code-security/managing-supply-chain-security-for-your-enterprise/viewing-the-vulnerability-data-for-your-enterprise)." {% note %} @@ -52,7 +52,7 @@ When {% data variables.product.product_location %} receives information about a For repositories with {% data variables.product.prodname_dependabot_alerts %} enabled, scanning is triggered on any push to the default branch that contains a manifest file or lock file. Additionally, when a new vulnerability record is added to {% data variables.product.product_location %}, {% data variables.product.product_name %} scans all existing repositories on {% data variables.product.product_location %} and generates alerts for any repository that is vulnerable. 更多信息请参阅“[关于易受攻击的依赖项的警报](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies)”。 {% ifversion ghes > 3.2 %} -### About {% data variables.product.prodname_dependabot_updates %} +### 关于 {% data variables.product.prodname_dependabot_updates %} {% data reusables.dependabot.beta-security-and-version-updates %} @@ -66,18 +66,17 @@ After you enable {% data variables.product.prodname_dependabot_alerts %}, you ca With {% data variables.product.prodname_dependabot_updates %}, {% data variables.product.company_short %} automatically creates pull requests to update dependencies in two ways. -- **{% data variables.product.prodname_dependabot_version_updates %}**: Users add a {% data variables.product.prodname_dependabot %} configuration file to the repository to enable {% data variables.product.prodname_dependabot %} to create pull requests when a new version of a tracked dependency is released. For more information, see "[About {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates)." +- **{% data variables.product.prodname_dependabot_version_updates %}**: Users add a {% data variables.product.prodname_dependabot %} configuration file to the repository to enable {% data variables.product.prodname_dependabot %} to create pull requests when a new version of a tracked dependency is released. 更多信息请参阅“[关于 {% data variables.product.prodname_dependabot_version_updates %}](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates)“。 - **{% data variables.product.prodname_dependabot_security_updates %}**: Users toggle a repository setting to enable {% data variables.product.prodname_dependabot %} to create pull requests when {% data variables.product.prodname_dotcom %} detects a vulnerability in one of the dependencies of the dependency graph for the repository. For more information, see "[About alerts for vulnerable dependencies](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies)" and "[About {% data variables.product.prodname_dependabot_security_updates %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates)." {% endif %} -## Enabling {% data variables.product.prodname_dependabot_alerts %} +## 启用 {% data variables.product.prodname_dependabot_alerts %} Before you can enable {% data variables.product.prodname_dependabot_alerts %}: - You must enable {% data variables.product.prodname_github_connect %}. For more information, see "[Managing {% data variables.product.prodname_github_connect %}](/admin/configuration/configuring-github-connect/managing-github-connect)."{% ifversion ghes %} -- You must enable the dependency graph. For more information, see "[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 %} +- 您必须启用依赖关系图。 For more information, see "[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 %} {% data reusables.enterprise-accounts.access-enterprise %} -{%- ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %} {% data reusables.enterprise-accounts.github-connect-tab %} {%- if dependabot-updates-github-connect %} 1. Under "{% data variables.product.prodname_dependabot %}", to the right of "Users can receive vulnerability alerts for open source code dependencies", select the dropdown menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. @@ -85,16 +84,16 @@ Before you can enable {% data variables.product.prodname_dependabot_alerts %}: ![Screenshot of the dropdown menu to enable scanning repositories for vulnerabilities](/assets/images/enterprise/site-admin-settings/dependabot-alerts-dropdown.png) {%- else %} -1. Under "Repositories can be scanned for vulnerabilities", select the drop-down menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. ![Drop-down menu to enable scanning repositories for vulnerabilities](/assets/images/enterprise/site-admin-settings/enable-vulnerability-scanning-in-repositories.png) +1. Under "Repositories can be scanned for vulnerabilities", select the drop-down menu and click **Enabled without notifications**. Optionally, to enable alerts with notifications, click **Enabled with notifications**. ![用于启用扫描仓库有无漏洞的下拉菜单](/assets/images/enterprise/site-admin-settings/enable-vulnerability-scanning-in-repositories.png) {%- endif %} {% tip %} - **Tip**: We recommend configuring {% data variables.product.prodname_dependabot_alerts %} without notifications for the first few days to avoid an overload of emails. After a few days, you can enable notifications to receive {% data variables.product.prodname_dependabot_alerts %} as usual. + **Tip**: We recommend configuring {% data variables.product.prodname_dependabot_alerts %} without notifications for the first few days to avoid an overload of emails. 几天后,您可以开启通知,像往常一样接收 {% data variables.product.prodname_dependabot_alerts %}。 {% endtip %} {% if dependabot-updates-github-connect %} -## Enabling {% data variables.product.prodname_dependabot_updates %} +## 启用 {% data variables.product.prodname_dependabot_updates %} After you enable {% data variables.product.prodname_dependabot_alerts %} for your enterprise, you can enable {% data variables.product.prodname_dependabot_updates %}. diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md index 3432a0110e..51481d7bb8 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise.md @@ -43,7 +43,7 @@ Before enabling {% data variables.product.prodname_unified_contributions %} on { {% data reusables.github-connect.access-dotcom-and-enterprise %} {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.business %} -{% ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %}{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} +{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} 1. 登录到 {% data variables.product.product_location %} 和 {% data variables.product.prodname_dotcom_the_website %}。 {% data reusables.enterprise-accounts.access-enterprise %}{% data reusables.enterprise-accounts.github-connect-tab %}{% endif %} 1. 在“Users can share contribution counts to {% data variables.product.prodname_dotcom_the_website %}”下,单击 **Request access**。 ![Request access to unified contributions option](/assets/images/enterprise/site-admin-settings/dotcom-ghe-connection-request-access.png){% ifversion ghes %} diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md index 6c2bcc8322..7144dcb264 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-unified-search-for-your-enterprise.md @@ -44,7 +44,7 @@ Before you can enable {% data variables.product.prodname_unified_search %}, you {% data reusables.github-connect.access-dotcom-and-enterprise %} {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.business %} -{% ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %}{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} +{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} 1. Sign into {% data variables.product.product_location %} and {% data variables.product.prodname_dotcom_the_website %}. {% data reusables.enterprise-accounts.access-enterprise %}{% data reusables.enterprise-accounts.github-connect-tab %}{% endif %} 1. 在“Users can search {% data variables.product.prodname_dotcom_the_website %}”下,使用下拉菜单,然后单击 **Enabled**。 ![在搜索 GitHub.com 下拉菜单中启用搜索选项](/assets/images/enterprise/site-admin-settings/github-dotcom-enable-search.png) diff --git a/translations/zh-CN/content/admin/configuration/configuring-github-connect/managing-github-connect.md b/translations/zh-CN/content/admin/configuration/configuring-github-connect/managing-github-connect.md index c99478e8a3..5198b11e53 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-github-connect/managing-github-connect.md +++ b/translations/zh-CN/content/admin/configuration/configuring-github-connect/managing-github-connect.md @@ -54,7 +54,8 @@ If you're connecting {% data variables.product.product_location %} to an organiz {% ifversion ghes %} 1. 登录到 {% data variables.product.product_location %} 和 {% data variables.product.prodname_dotcom_the_website %}。 -{% data reusables.enterprise-accounts.access-enterprise %}{% ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %}{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.github-connect-tab %}{% else %} 1. 登录到 {% data variables.product.product_location %} 和 {% data variables.product.prodname_dotcom_the_website %}。 {% data reusables.enterprise-accounts.access-enterprise %}{% data reusables.enterprise-accounts.github-connect-tab %}{% endif %} 1. 在“{% data variables.product.prodname_github_connect %} is not enabled yet”下,单击 **Enable {% data variables.product.prodname_github_connect %}**。 By clicking **Enable {% data variables.product.prodname_github_connect %}**, you agree to the "{% data variables.product.prodname_dotcom %} Terms for Additional Products and Features." @@ -70,7 +71,8 @@ Enterprise owners can disable {% data variables.product.prodname_github_connect 与 {% data variables.product.prodname_ghe_cloud %} 断开连接后,{% data variables.product.prodname_github_connect %} {% data variables.product.prodname_github_app %} 会从企业帐户或组织中删除,{% data variables.product.product_location %} 上存储的凭据也会删除。 -{% data reusables.enterprise-accounts.access-enterprise %}{% ifversion ghes < 3.1 %}{% data reusables.enterprise-accounts.settings-tab %}{% endif %}{% data reusables.enterprise-accounts.github-connect-tab %} +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.github-connect-tab %} 1. 在要断开连接的企业帐户或组织旁,单击 **Disable {% data variables.product.prodname_github_connect %}**。 {% ifversion ghes %} ![企业帐户或组织名称旁的 Disable GitHub Connect 按钮](/assets/images/enterprise/business-accounts/disable-github-connect-button.png) diff --git a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/managing-github-mobile-for-your-enterprise.md b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/managing-github-mobile-for-your-enterprise.md index a21010bcdc..5ede63a95d 100644 --- a/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/managing-github-mobile-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/configuration/configuring-your-enterprise/managing-github-mobile-for-your-enterprise.md @@ -11,7 +11,7 @@ topics: redirect_from: - /admin/configuration/configuring-your-enterprise/managing-github-for-mobile-for-your-enterprise - /admin/configuration/managing-github-for-mobile-for-your-enterprise -shortTitle: 'Manage GitHub Mobile' +shortTitle: Manage GitHub Mobile --- {% ifversion ghes %} {% data reusables.mobile.ghes-release-phase %} diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises.md index 58face01db..b07878188c 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises.md @@ -22,7 +22,7 @@ topics: ## About {% data variables.product.prodname_actions %} for enterprises -With {% data variables.product.prodname_actions %}, you can improve developer productivity by automating every phase of your enterprise's software development workflow. +{% data reusables.actions.about-actions-for-enterprises %} | Task | More information | | ---- | ---------------- | @@ -60,4 +60,4 @@ After you finish planning, you can follow the instructions for getting started w ## Further reading - "[Understanding {% data variables.product.prodname_actions %}](/actions/learn-github-actions/understanding-github-actions)"{% ifversion ghec %} -- "[About billing for {% data variables.product.prodname_actions %}](/billing/managing-billing-for-github-actions/about-billing-for-github-actions)"{% endif %} \ No newline at end of file +- "[About billing for {% data variables.product.prodname_actions %}](/billing/managing-billing-for-github-actions/about-billing-for-github-actions)"{% endif %} diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae.md index caad89aa5f..269d6ca0d5 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae.md @@ -2,7 +2,7 @@ title: Getting started with GitHub Actions for GitHub AE shortTitle: Get started intro: 'Learn about configuring {% data variables.product.prodname_actions %} on {% data variables.product.prodname_ghe_managed %}.' -permissions: 'Site administrators can enable {% data variables.product.prodname_actions %} and configure enterprise settings.' +permissions: 'Enterprise owners can enable {% data variables.product.prodname_actions %} and configure enterprise settings.' versions: ghae: '*' type: how_to @@ -17,9 +17,7 @@ redirect_from: ## About {% data variables.product.prodname_actions %} on {% data variables.product.prodname_ghe_managed %} -This article explains how site administrators can configure {% data variables.product.prodname_ghe_managed %} to use {% data variables.product.prodname_actions %}. - -{% data variables.product.prodname_actions %} is enabled for {% data variables.product.prodname_ghe_managed %} by default. To get started using {% data variables.product.prodname_actions %} within your enterprise, you need to manage access permissions for {% data variables.product.prodname_actions %} and add runners to run workflows. +{% data variables.product.prodname_actions %} is enabled for {% data variables.product.product_name %} by default. To get started using {% data variables.product.prodname_actions %} within your enterprise, you need to manage access permissions for {% data variables.product.prodname_actions %} and add runners to run workflows. {% data reusables.actions.introducing-enterprise %} @@ -31,6 +29,6 @@ You can use policies to manage access to {% data variables.product.prodname_acti ## Adding runners -You can configure and host servers to run jobs for your enterprise on {% data variables.product.product_name %}. {% data reusables.actions.about-self-hosted-runners %} For more information, see "[Hosting your own runners](/actions/hosting-your-own-runners)." +You must configure and host your own machines to run jobs for your enterprise on {% data variables.product.product_name %}. {% data reusables.actions.about-self-hosted-runners %} For more information, see "[Getting started with self-hosted runners for your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise)" and "[Hosting your own runners](/actions/hosting-your-own-runners)." {% data reusables.actions.general-security-hardening %} diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud.md index 8680be8654..30cbce6d00 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud.md @@ -29,6 +29,6 @@ To run {% data variables.product.prodname_actions %} workflows, you need to use For more information, see "[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners)." -If you choose self-hosted runners, you can add runners at the enterprise, organization, or repository levels. For more information, see "[Adding self-hosted runners](/actions/hosting-your-own-runners/adding-self-hosted-runners)" +If you choose self-hosted runners, you can add runners at the enterprise, organization, or repository levels. For more information, see "[Adding self-hosted runners](/actions/hosting-your-own-runners/adding-self-hosted-runners)." -{% data reusables.actions.general-security-hardening %} \ No newline at end of file +{% data reusables.actions.general-security-hardening %} diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md index e8eaeae8b1..8aeb75ffad 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md @@ -33,15 +33,6 @@ This article explains how site administrators can configure {% data variables.pr ## Review hardware requirements -{% ifversion ghes = 3.0 %} - -{% note %} - -**Note**: If you're upgrading an existing {% data variables.product.prodname_ghe_server %} instance to 3.0 or later and want to configure {% data variables.product.prodname_actions %}, note that the minimum hardware requirements have increased. For more information, see "[Upgrading {% data variables.product.prodname_ghe_server %}](/admin/enterprise-management/upgrading-github-enterprise-server#about-minimum-requirements-for-github-enterprise-server-30-and-later)." - -{% endnote %} - -{% endif %} {%- ifversion ghes < 3.2 %} @@ -157,6 +148,6 @@ For more information, see "[About using actions in your enterprise](/admin/githu {% endif %} -## Reserved Names +## Reserved names When you enable {% data variables.product.prodname_actions %} for your enterprise, two organizations are created: `github` and `actions`. If your enterprise already uses the `github` organization name, `github-org` (or `github-github-org` if `github-org` is also in use) will be used instead. If your enterprise already uses the `actions` organization name, `github-actions` (or `github-actions-org` if `github-actions` is also in use) will be used instead. Once actions is enabled, you won't be able to use these names anymore. diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise.md new file mode 100644 index 0000000000..559efc0319 --- /dev/null +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise.md @@ -0,0 +1,150 @@ +--- +title: Getting started with self-hosted runners for your enterprise +shortTitle: 自托管运行器 +intro: 'You can configure a runner machine for your enterprise so your developers can start automating workflows with {% data variables.product.prodname_actions %}.' +versions: + ghec: '*' + ghes: '*' + ghae: '*' +permissions: 'Enterprise owners can configure policies for {% data variables.product.prodname_actions %} and add self-hosted runners to the enterprise.' +type: quick_start +topics: + - Actions + - Enterprise + - Fundamentals +--- + +## About self-hosted runners for {% data variables.product.prodname_actions %} + +{% data reusables.actions.about-actions-for-enterprises %} For more information, see "[About {% data variables.product.prodname_actions %} for enterprises](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)." + +With {% data variables.product.prodname_actions %}, developers can write and combine individual tasks called actions to create custom workflows. {% ifversion ghes or ghae %}To enable {% data variables.product.prodname_actions %} for {% ifversion ghae %}your enterprise{% elsif ghes %} {% data variables.product.product_location %}{% endif %}, you must host at least one machine to execute jobs.{% endif %} {% ifversion ghec %}You can host your own runner machine to execute jobs, and this{% elsif ghes or ghae %}This{% endif %} machine is called a self-hosted runner. {% data reusables.actions.self-hosted-runner-locations %} {% data reusables.actions.self-hosted-runner-architecture %} {% ifversion ghec %}All{% elsif ghes or ghae %}Self-hosted{% endif %} runners can run Linux, Windows, or macOS. 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners)”。 + +{% ifversion ghec %} + +Alternatively, you can use runner machines that {% data variables.product.company_short %} hosts. {% data variables.product.company_short %}-hosted runners are outside the scope of this guide. 更多信息请参阅“[关于 {% data variables.product.company_short %} 托管的运行器](/actions/using-github-hosted-runners/about-github-hosted-runners)”。 + +{% endif %} + +This guide shows you how to apply a centralized management approach to self-hosted runners for {% data variables.product.prodname_actions %} in your enterprise. In the guide, you'll complete the following tasks. + +1. Configure a limited policy to restrict the actions that can run within your enterprise +1. Deploy a self-hosted runner for your enterprise +1. Create a group to manage access to the runners available to your enterprise +1. Optionally, further restrict the repositories that can use the runner +{%- ifversion ghec or ghae-issue-4462 or ghes > 3.2 %} +1. Optionally, build custom tooling to automatically scale your self-hosted runners +{% endif %} + +You'll also find additional information about how to monitor and secure your self-hosted runners,{% ifversion ghes or ghae %} how to access actions from {% data variables.product.prodname_dotcom_the_website %},{% endif %} and how to customize the software on your runner machines. + +After you finish the guide, {% ifversion ghec or ghae %}members of your enterprise{% elsif ghes %}users of {% data variables.product.product_location %}{% endif %} will be able to run workflow jobs from {% data variables.product.prodname_actions %} on a self-hosted runner machine. + +## 基本要求 + +{% data reusables.actions.self-hosted-runners-prerequisites %} + +- Your enterprise must own at least one organization. For more information, see "[About organizations](/organizations/collaborating-with-groups-in-organizations/about-organizations)" and "[Creating a new organization from scratch](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch)." + +## 1. Configure policies for {% data variables.product.prodname_actions %} + +First, enable {% data variables.product.prodname_actions %} for all organizations, and configure a policy to restrict the actions that can run {% ifversion ghec or ghae%}within your enterprise on {% data variables.product.product_name %}{% elsif ghes %}on {% data variables.product.product_location %}{% endif %}. Optionally, organization owners can further restrict these policies for each organization. + +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.policies-tab %} +{% data reusables.enterprise-accounts.actions-tab %} +1. Under "Policies", select **Enable for all organizations**. + + ![Screenshot of "Enable for all organizations" policy for {% data variables.product.prodname_actions %}](/assets/images/help/settings/actions-policy-enable-for-all-organizations.png) +1. Select **Allow select actions** and **Allow actions created by GitHub** to allow local actions and actions created by {% data variables.product.company_short %}. + + ![Screenshot of "Allow select actions" and "Allow actions created by {% data variables.product.company_short %}" for {% data variables.product.prodname_actions %}](/assets/images/help/settings/actions-policy-allow-select-actions-and-actions-from-github.png) +1. 单击 **Save(保存)**。 + +You can configure additional policies to restrict the actions available to {% ifversion ghec or ghae %}enterprise members{% elsif ghes %}users of {% data variables.product.product_location %}{% endif %}. 更多信息请参阅“[在企业中执行 {% data variables.product.prodname_actions %} 的策略](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#allowing-select-actions-to-run)”。 + +## 2. Deploy the self-hosted runner for your enterprise + +Next, add a self-hosted runner to your enterprise. {% data variables.product.product_name %} will guide you through installation of the necessary software on the runner machine. After you deploy the runner, you can verify connectivity between the runner machine and {%ifversion ghec or ghae %}your enterprise{% elsif ghes %}{% data variables.product.product_location %}{% endif %}. + +### Adding the self-hosted runner + +{% data reusables.actions.self-hosted-runner-add-to-enterprise %} + +{% data reusables.actions.self-hosted-runner-check-installation-success %} + +## 3. Manage access to the self-hosted runner using a group + +You can create a runner group to manage access to the runner that you added to your enterprise. You'll use the group to choose which organizations can execute jobs from {% data variables.product.prodname_actions %} on the runner. + +{% data variables.product.product_name %} adds all new runners to a group. Runners can be in one group at a time. By default, {% data variables.product.product_name %} adds new runners to the "Default" group. + +{% data reusables.actions.self-hosted-runner-groups-add-to-enterprise-first-steps %} +1. To choose a policy for organization access, under "Organization access", select the **Organization access** drop-down, and click **Selected organizations**. +1. To the right of the drop-down with the organization access policy, click {% octicon "gear" aria-label="The Gear icon" %}. +1. Select the organizations you'd like to grant access to the runner group. +{%- ifversion ghec or ghes %} +1. Optionally, to allow public repositories in the selected organizations to use runners in the group, select **Allow public repositories**. + + {% warning %} + + **Warning**: + + {% indented_data_reference reusables.actions.self-hosted-runner-security spaces=3 %} + + 更多信息请参阅“[关于自托管运行器](/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories)”。 + + {% endwarning %} +{%- endif %} +{% data reusables.actions.self-hosted-runner-create-group %} +{%- ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} +1. Click the "Runners" tab. +1. In the list of runners, click the runner that you deployed in the previous section. +1. 单击 **Edit(编辑)**。 +1. Click **Runner groups {% octicon "gear" aria-label="The Gear icon" %}**. +1. In the list of runner groups, click the name of the group that you previously created. +1. Click **Save** to move the runner to the group. +{%- elsif ghes < 3.4 or ghae %} +1. To the right of "Default", click the number of runners in the group to show the runners. +1. Select the runner that you deployed. +1. To the right of "Runner groups", select the **Move to group** dropdown, and click the group that you previously created. +{%- endif %} + +You've now deployed a self-hosted runner that can run jobs from {% data variables.product.prodname_actions %} within the organizations that you specified. + +## 4. Further restrict access to the self-hosted runner + +Optionally, organization owners can further restrict the access policy of the runner group that you created. For example, an organization owner could allow only certain repositories in the organization to use the runner group. + +更多信息请参阅“[使用组管理对自托管运行器的访问](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#changing-the-access-policy-of-a-self-hosted-runner-group)”。 + +{% ifversion ghec or ghae-issue-4462 or ghes > 3.2 %} + +## 5. Automatically scale your self-hosted runners + +Optionally, you can build custom tooling to automatically scale the self-hosted runners for {% ifversion ghec or ghae %}your enterprise{% elsif ghes %}{% data variables.product.product_location %}{% endif %}. For example, your tooling can respond to webhook events from {% data variables.product.product_location %} to automatically scale a cluster of runner machines. 更多信息请参阅“[使用自托管运行器自动缩放](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)”。 + +{% endif %} + +## 后续步骤 + +- You can monitor self-hosted runners and troubleshoot common issues. 更多信息请参阅“[自托管运行器监控和故障排除](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)”。 + +- {% data variables.product.company_short %} recommends that you review security considerations for self-hosted runner machines. For more information, see "[Security hardening for {% data variables.product.prodname_actions %}](/actions/security-guides/security-hardening-for-github-actions#hardening-for-self-hosted-runners)." + +- {% ifversion ghec %}If you use {% data variables.product.prodname_ghe_server %} or {% data variables.product.prodname_ghe_managed %}, you{% elsif ghes or ghae %}You{% endif %} can manually sync repositories on {% data variables.product.prodname_dotcom_the_website %} containing actions to your enterprise on {% ifversion ghes or ghae %}{% data variables.product.product_name %}{% elsif ghec %}{% data variables.product.prodname_ghe_server %} or {% data variables.product.prodname_ghe_managed %}{% endif %}. Alternatively, you can allow members of your enterprise to automatically access actions from {% data variables.product.prodname_dotcom_the_website %} by using {% data variables.product.prodname_github_connect %}. 更多信息请参阅以下文章。 + + {%- ifversion ghes or ghae %} + - "[Manually syncing actions from {% data variables.product.prodname_dotcom_the_website %}](/admin/github-actions/managing-access-to-actions-from-githubcom/manually-syncing-actions-from-githubcom)" + - "[Enabling automatic access to {% data variables.product.prodname_dotcom_the_website %} actions using {% data variables.product.prodname_github_connect %}](/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect)" + {%- elsif ghec %} + - "Manually syncing actions from {% data variables.product.prodname_dotcom_the_website %}" in the [{% data variables.product.prodname_ghe_server %}](/enterprise-server@latest//admin/github-actions/managing-access-to-actions-from-githubcom/manually-syncing-actions-from-githubcom) or [{% data variables.product.prodname_ghe_managed %}](/github-ae@latest//admin/github-actions/managing-access-to-actions-from-githubcom/manually-syncing-actions-from-githubcom) documentation + - "Enabling automatic access to {% data variables.product.prodname_dotcom_the_website %} actions using {% data variables.product.prodname_github_connect %}" in the [{% data variables.product.prodname_ghe_server %}](/enterprise-server@latest//admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect) or [{% data variables.product.prodname_ghe_managed %}](/github-ae@latest//admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect) documentation + {%- endif %} + +- You can customize the software available on your self-hosted runner machines, or configure your runners to run software similar to {% data variables.product.company_short %}-hosted runners{% ifversion ghes or ghae %} available for customers using {% data variables.product.prodname_dotcom_the_website %}{% endif %}. The software that powers runner machines for {% data variables.product.prodname_actions %} is open source. For more information, see the [`actions/runner`](https://github.com/actions/runner) and [`actions/virtual-environments`](https://github.com/actions/virtual-environments) repositories. + +## 延伸阅读 + +- "[Configuring the self-hosted runner application as a service](/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service)" +- "[Using self-hosted runners in a workflow](/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow)" diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/index.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/index.md index c0cac4ebb7..082a3d387d 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/index.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/index.md @@ -15,6 +15,7 @@ children: - /getting-started-with-github-actions-for-github-enterprise-cloud - /getting-started-with-github-actions-for-github-enterprise-server - /getting-started-with-github-actions-for-github-ae + - /getting-started-with-self-hosted-runners-for-your-enterprise shortTitle: 入门 --- diff --git a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md index 9e11f3ddaf..5b4d4bea58 100644 --- a/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md +++ b/translations/zh-CN/content/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise.md @@ -56,9 +56,7 @@ You should plan where you'll store your secrets. We recommend storing secrets in In {% data variables.product.prodname_dotcom %}, you can store secrets at the repository or organization level. Secrets at the repository level can be limited to workflows in certain environments, such as production or testing. For more information, see "[Encrypted secrets](/actions/security-guides/encrypted-secrets)." -![Screenshot of a list of secrets](/assets/images/help/settings/actions-org-secrets-list.png) -{% ifversion fpt or ghes > 3.0 or ghec or ghae %} -You should consider adding manual approval protection for sensitive environments, so that workflows must be approved before getting access to the environments' secrets. For more information, see "[Using environments for deployments](/actions/deployment/targeting-different-environments/using-environments-for-deployment)."{% endif %} +![Screenshot of a list of secrets](/assets/images/help/settings/actions-org-secrets-list.png) You should consider adding manual approval protection for sensitive environments, so that workflows must be approved before getting access to the environments' secrets. For more information, see "[Using environments for deployments](/actions/deployment/targeting-different-environments/using-environments-for-deployment)." ### Security considerations for third-party actions diff --git a/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect.md b/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect.md index 3535c80c42..3dc27dc3ff 100644 --- a/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect.md +++ b/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect.md @@ -1,7 +1,7 @@ --- title: Enabling automatic access to GitHub.com actions using GitHub Connect intro: 'To allow {% data variables.product.prodname_actions %} in your enterprise to use actions from {% data variables.product.prodname_dotcom_the_website %}, you can connect your enterprise instance to {% data variables.product.prodname_ghe_cloud %}.' -permissions: 'Site administrators for {% data variables.product.product_name %} who are also owners of the connected {% data variables.product.prodname_ghe_cloud %} organization or enterprise account can enable access to all {% data variables.product.prodname_dotcom_the_website %} actions.' +permissions: 'Enterprise owners can enable access to all {% data variables.product.prodname_dotcom_the_website %} actions.' redirect_from: - /enterprise/admin/github-actions/enabling-automatic-access-to-githubcom-actions-using-github-connect - /admin/github-actions/enabling-automatic-access-to-githubcom-actions-using-github-connect @@ -36,17 +36,9 @@ Before enabling access to all actions from {% data variables.product.prodname_do {% data reusables.actions.enterprise-github-connect-warning %} {% data reusables.enterprise-accounts.access-enterprise %} -{%- ifversion ghes < 3.1 %} -{% data reusables.enterprise-accounts.settings-tab %} -{%- endif %} {% data reusables.enterprise-accounts.github-connect-tab %} -{%- ifversion ghes > 3.0 or ghae %} 1. Under "Users can utilize actions from GitHub.com in workflow runs", use the drop-down menu and select **Enabled**. ![Drop-down menu to actions from GitHub.com in workflows runs](/assets/images/enterprise/site-admin-settings/enable-marketplace-actions-drop-down-ae.png) -{%- else %} -1. Under "Server can use actions from GitHub.com in workflows runs", use the drop-down menu and select **Enabled**. - ![Drop-down menu to actions from GitHub.com in workflows runs](/assets/images/enterprise/site-admin-settings/enable-marketplace-actions-drop-down.png) -{%- endif %} 1. {% data reusables.actions.enterprise-limit-actions-use %} {% ifversion ghes > 3.2 or ghae-issue-4815 %} diff --git a/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access.md b/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access.md index 13089317ad..c55b49c3cf 100644 --- a/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access.md +++ b/translations/zh-CN/content/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access.md @@ -72,7 +72,7 @@ You can populate the runner tool cache by running a {% data variables.product.pr cd "${{ runner.tool_cache }}" tar -czf tool_cache.tar.gz * - name: Upload tool cache artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: ${{runner.tool_cache}}/tool_cache.tar.gz ``` diff --git a/translations/zh-CN/content/admin/guides.md b/translations/zh-CN/content/admin/guides.md index 923e43931b..a408499582 100644 --- a/translations/zh-CN/content/admin/guides.md +++ b/translations/zh-CN/content/admin/guides.md @@ -13,7 +13,8 @@ learningTracks: - '{% ifversion ghae %}get_started_with_github_ae{% endif %}' - '{% ifversion ghes %}deploy_an_instance{% endif %}' - '{% ifversion ghes %}upgrade_your_instance{% endif %}' - - adopting_github_actions_for_your_enterprise + - adopting_github_actions_for_your_enterprise_ghec + - adopting_github_actions_for_your_enterprise_ghes_and_ghae - '{% ifversion ghes %}increase_fault_tolerance{% endif %}' - '{% ifversion ghes %}improve_security_of_your_instance{% endif %}' - '{% ifversion ghes > 2.22 %}configure_github_actions{% endif %}' diff --git a/translations/zh-CN/content/admin/index.md b/translations/zh-CN/content/admin/index.md index 941c9adc11..d45da0275e 100644 --- a/translations/zh-CN/content/admin/index.md +++ b/translations/zh-CN/content/admin/index.md @@ -69,7 +69,6 @@ changelog: label: enterprise featuredLinks: guides: - - '{% ifversion ghae %}/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise{% endif %}' - '{% ifversion ghae %}/admin/user-management/auditing-users-across-your-enterprise{% endif %}' - '{% ifversion ghae %}/admin/configuration/restricting-network-traffic-to-your-enterprise{% endif %}' - '{% ifversion ghes %}/admin/configuration/configuring-backups-on-your-appliance{% endif %}' @@ -79,6 +78,7 @@ featuredLinks: - '{% ifversion ghec %}/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users{% endif %}' - '{% ifversion ghec %}/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-identity-and-access-management-for-your-enterprise{% endif %}' - '{% ifversion ghec %}/admin/user-management/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise{% endif %}' + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise guideCards: - '{% ifversion ghes > 2.22 %} /admin/github-actions/getting-started-with-github-actions-for-github-enterprise-server {% elsif ghes < 3.0 %} /admin/enterprise-management/upgrading-github-enterprise-server {% endif %}' - '{% ifversion ghes > 2.22 %} /admin/packages/getting-started-with-github-packages-for-your-enterprise {% elsif ghes < 3.0 %} /admin/user-management/customizing-user-messages-for-your-enterprise {% endif %}' @@ -94,6 +94,7 @@ featuredLinks: - '{% ifversion ghes %}/github/getting-started-with-github/setting-up-a-trial-of-github-enterprise-server{% endif %}' - '{% ifversion ghes %}/admin/installation{% endif %}' - '{% ifversion ghae %}/admin/identity-and-access-management/configuring-authentication-and-provisioning-for-your-enterprise-using-azure-ad{% endif %}' + - '{% ifversion ghae %}/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise{% endif %}' - '{% ifversion ghae %}/admin/overview/about-upgrades-to-new-releases{% endif %}' - '{% ifversion ghae %}/get-started/signing-up-for-github/setting-up-a-trial-of-github-ae{% endif %}' - '{% ifversion ghes %}/billing/managing-your-license-for-github-enterprise{% endif %}' @@ -105,11 +106,11 @@ featuredLinks: - /admin/configuration/configuring-github-connect/managing-github-connect - /admin/enterprise-support/about-github-enterprise-support videos: - - title: "GitHub in the Enterprise – Maya Ross" + - title: GitHub in the Enterprise – Maya Ross href: 'https://www.youtube-nocookie.com/embed/1-i39RqaxRs' - - title: "What's new for GitHub Enterprise – Jarryd McCree" + - title: What's new for GitHub Enterprise – Jarryd McCree href: 'https://www.youtube-nocookie.com/embed/ZZviWZgrqhM' - - title: "Enforcing information security policy through GitHub Enterprise – Thomas Worley" + - title: Enforcing information security policy through GitHub Enterprise – Thomas Worley href: 'https://www.youtube-nocookie.com/embed/DCu-ZTT7WTI' videosHeading: GitHub Universe 2021 videos layout: product-landing @@ -132,3 +133,4 @@ children: - /release-notes - /all-releases --- + diff --git a/translations/zh-CN/content/admin/packages/configuring-package-ecosystem-support-for-your-enterprise.md b/translations/zh-CN/content/admin/packages/configuring-package-ecosystem-support-for-your-enterprise.md index c21e4184ba..dd80f88b9c 100644 --- a/translations/zh-CN/content/admin/packages/configuring-package-ecosystem-support-for-your-enterprise.md +++ b/translations/zh-CN/content/admin/packages/configuring-package-ecosystem-support-for-your-enterprise.md @@ -19,7 +19,6 @@ shortTitle: 配置包生态系统 要防止上传新包,可以将以前启用的生态系统设置为**只读**,同时仍允许下载现有包。 - {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_site_admin_settings.packages-tab %} @@ -29,7 +28,7 @@ shortTitle: 配置包生态系统 ![Ecosystem toggles](/assets/images/enterprise/3.1/site-admin-settings/ecosystem-toggles.png){% endif %} {% data reusables.enterprise_management_console.save-settings %} -{% ifversion ghes = 3.0 or ghes > 3.0 %} +{% ifversion ghes %} ## 连接到官方 npm 注册表 如果您已在企业中启用了 npm 包,并希望允许访问官方 npm 注册表以及 {% data variables.product.prodname_registry %} npm 注册表,则必须执行一些附加配置。 diff --git a/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-advanced-security-in-your-enterprise.md b/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-advanced-security-in-your-enterprise.md index 889ee49ed7..cf6fbea8f7 100644 --- a/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-advanced-security-in-your-enterprise.md +++ b/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-advanced-security-in-your-enterprise.md @@ -5,7 +5,7 @@ permissions: 'Enterprise owners can enforce policies for {% data variables.produ product: '{% data reusables.gated-features.ghas %}' versions: ghec: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' type: how_to topics: diff --git a/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md b/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md index 36599a18be..fd0858fdae 100644 --- a/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md +++ b/translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md @@ -53,7 +53,7 @@ shortTitle: GitHub Actions policies {% data reusables.enterprise-accounts.policies-tab %} {% data reusables.enterprise-accounts.actions-tab %} 1. 在 **Policies(策略)**下,选择 **Allow select actions(允许选择操作)**并将所需操作添加到列表中。 - {%- ifversion ghes > 3.0 or ghae-issue-5094 %} + {%- ifversion ghes or ghae-issue-5094 %} ![添加操作到允许列表](/assets/images/help/organizations/enterprise-actions-policy-allow-list.png) {%- elsif ghae %} ![添加操作到允许列表](/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png) diff --git a/translations/zh-CN/content/admin/policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md b/translations/zh-CN/content/admin/policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md index 182e146c8e..ab45abcb90 100644 --- a/translations/zh-CN/content/admin/policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md +++ b/translations/zh-CN/content/admin/policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md @@ -90,7 +90,7 @@ The `$GITHUB_VIA` variable is available in the pre-receive hook environment when |
git refs delete api
| Deletion of a ref via the API | "[Git database](/rest/reference/git#delete-a-reference)" in the REST API documentation | |
git refs update api
| Update of a ref via the API | "[Git database](/rest/reference/git#update-a-reference)" in the REST API documentation | |
git repo contents api
| Change to a file's contents via the API | "[Create or update file contents](/rest/reference/repos#create-or-update-file-contents)" in the REST API documentation | -{%- ifversion ghes > 3.0 %} +{%- ifversion ghes %} | `merge ` | Merge of a pull request using auto-merge | "[Automatically merging a pull request](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)" | {%- endif %} |
merge base into head
| Update of the topic branch from the base branch when the base branch requires strict status checks (via **Update branch** in a pull request, for example) | "[About protected branches](/github/administering-a-repository/about-protected-branches#require-status-checks-before-merging)" | diff --git a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md index d22e7db956..e59701591a 100644 --- a/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md +++ b/translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md @@ -64,4 +64,4 @@ You must be a site admin and an organization owner to create a team with LDAP sy {% data reusables.organizations.create-team-choose-parent %} {% data reusables.organizations.create_team %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md index ac48242da2..f857603c54 100644 --- a/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md +++ b/translations/zh-CN/content/admin/user-management/monitoring-activity-in-your-enterprise/audited-actions.md @@ -51,7 +51,7 @@ topics: ## 企业配置设置 | 操作 | 描述 | -| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion ghes > 3.0 or ghae %} +| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion ghes or ghae %} | `business.advanced_security_policy_update` | 站点管理员创建、更新或删除 {% data variables.product.prodname_GH_advanced_security %} 策略。 更多信息请参阅“[在企业中执行 {% data variables.product.prodname_advanced_security %} 的策略](/admin/policies/enforcing-policies-for-advanced-security-in-your-enterprise)”。{% endif %} | `business.clear_members_can_create_repos` | 站点管理员取消了对在企业中的组织中创建仓库的限制。 更多信息请参阅“[在企业中实施仓库管理策略](/admin/policies/enforcing-repository-management-policies-in-your-enterprise#setting-a-policy-for-repository-creation)”。{% ifversion ghes > 3.1 %} | `business.referrer_override_enable` | 站点管理员可以改写推荐策略。 更多信息请参阅“[配置企业的推荐策略](/admin/configuration/configuring-your-enterprise/configuring-the-referrer-policy-for-your-enterprise)”。 | diff --git a/translations/zh-CN/content/billing/index.md b/translations/zh-CN/content/billing/index.md index 6067da5b9b..6ef1280884 100644 --- a/translations/zh-CN/content/billing/index.md +++ b/translations/zh-CN/content/billing/index.md @@ -1,7 +1,7 @@ --- title: GitHub 上的帐单和付款 shortTitle: 计费和付款 -intro: '{% ifversion fpt %}{% data variables.product.product_name %} 为每个帐户提供免费和付费产品。 您可以随时升级或降级帐户的订阅和管理结算设置。{% elsif ghec or ghes or ghae %}{% data variables.product.company_short %} 对企业成员{% ifversion ghec or ghae %}使用 {% data variables.product.product_name %}{% elsif ghes %} {% data variables.product.product_name %}的许可席位{% ifversion ghes > 3.0 %} 以及您购买的任何其他服务{% endif %}{% endif %}计费。 {% endif %}{% ifversion ghec %} 您可以随时查看订阅和管理结算设置。 {% endif %}{% ifversion fpt or ghec %} 您还可以查看使用情况和管理 {% data variables.product.product_name %} 功能(如 {% data variables.product.prodname_actions %}、{% data variables.product.prodname_registry %} 和 {% data variables.product.prodname_codespaces %})的支出限制。{% endif %}' +intro: '{% ifversion fpt %}{% data variables.product.product_name %} 为每个帐户提供免费和付费产品。 您可以随时升级或降级帐户的订阅和管理结算设置。{% elsif ghec or ghes or ghae %}{% data variables.product.company_short %} 对企业成员{% ifversion ghec or ghae %}使用 {% data variables.product.product_name %}{% elsif ghes %} {% data variables.product.product_name %}的许可席位{% ifversion ghes %} 以及您购买的任何其他服务{% endif %}{% endif %}计费。 {% endif %}{% ifversion ghec %} 您可以随时查看订阅和管理结算设置。 {% endif %}{% ifversion fpt or ghec %} 您还可以查看使用情况和管理 {% data variables.product.product_name %} 功能(如 {% data variables.product.prodname_actions %}、{% data variables.product.prodname_registry %} 和 {% data variables.product.prodname_codespaces %})的支出限制。{% endif %}' redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github - /categories/setting-up-and-managing-billing-and-payments-on-github diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security.md b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security.md index 6a8a95fbad..858da7fa51 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security.md @@ -9,7 +9,7 @@ redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github/managing-licensing-for-github-advanced-security/about-licensing-for-github-advanced-security versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghec: '*' type: overview topics: diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md index d31fa7bb62..94e18324e3 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/index.md @@ -8,7 +8,7 @@ redirect_from: - /github/setting-up-and-managing-billing-and-payments-on-github/managing-licensing-for-github-advanced-security versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghec: '*' children: - /about-billing-for-github-advanced-security diff --git a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/viewing-your-github-advanced-security-usage.md b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/viewing-your-github-advanced-security-usage.md index 6e4ccf2989..14d5fa7747 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/viewing-your-github-advanced-security-usage.md +++ b/translations/zh-CN/content/billing/managing-billing-for-github-advanced-security/viewing-your-github-advanced-security-usage.md @@ -10,10 +10,10 @@ redirect_from: - /github/setting-up-and-managing-your-enterprise/managing-use-of-advanced-security-for-organizations-in-your-enterprise-account - /github/setting-up-and-managing-billing-and-payments-on-github/viewing-your-github-advanced-security-usage versions: - ghes: '>=3.1' + ghes: '*' fpt: '*' ghec: '*' - ghae: 'issue-5378' + ghae: issue-5378 miniTocMaxHeadingLevel: 3 type: how_to topics: diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md index 2c89e9fac3..df96487115 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-billing-for-your-enterprise.md @@ -1,6 +1,6 @@ --- title: About billing for your enterprise -intro: You can view billing information for your enterprise{% ifversion ghec or ghes %} account on {% data variables.product.prodname_dotcom_the_website %}{% endif %}. +intro: 'You can view billing information for your enterprise{% ifversion ghec or ghes %} account on {% data variables.product.prodname_dotcom_the_website %}{% endif %}.' redirect_from: - /admin/overview/managing-billing-for-your-enterprise - /enterprise/admin/installation/managing-billing-for-github-enterprise diff --git a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md index e1b7c5221c..1a59c30844 100644 --- a/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md +++ b/translations/zh-CN/content/billing/managing-billing-for-your-github-account/index.md @@ -32,3 +32,4 @@ children: - /one-time-payments-for-customers-in-india - /discounted-subscriptions-for-github-accounts --- + diff --git a/translations/zh-CN/content/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/about-visual-studio-subscriptions-with-github-enterprise.md b/translations/zh-CN/content/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/about-visual-studio-subscriptions-with-github-enterprise.md index 86724905ed..8fe8b22212 100644 --- a/translations/zh-CN/content/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/about-visual-studio-subscriptions-with-github-enterprise.md +++ b/translations/zh-CN/content/billing/managing-licenses-for-visual-studio-subscriptions-with-github-enterprise/about-visual-studio-subscriptions-with-github-enterprise.md @@ -48,4 +48,4 @@ You can also see pending {% data variables.product.prodname_enterprise %} invita ## Further reading - [{% data variables.product.prodname_vs %} subscriptions with {% data variables.product.prodname_enterprise %}](https://docs.microsoft.com/visualstudio/subscriptions/access-github) in Microsoft Docs -- [Use {% data variables.product.prodname_vs %} or {% data variables.product.prodname_vscode %} to deploy apps from {% data variables.product.prodname_dotcom %}](https://docs.microsoft.com/en-us/azure/developer/github/deploy-with-visual-studio) in Microsoft Docs \ No newline at end of file +- [Use {% data variables.product.prodname_vs %} or {% data variables.product.prodname_vscode %} to deploy apps from {% data variables.product.prodname_dotcom %}](https://docs.microsoft.com/en-us/azure/developer/github/deploy-with-visual-studio) in Microsoft Docs diff --git a/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/syncing-license-usage-between-github-enterprise-server-and-github-enterprise-cloud.md b/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/syncing-license-usage-between-github-enterprise-server-and-github-enterprise-cloud.md index 3e8e79b851..2fae8de7d2 100644 --- a/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/syncing-license-usage-between-github-enterprise-server-and-github-enterprise-cloud.md +++ b/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/syncing-license-usage-between-github-enterprise-server-and-github-enterprise-cloud.md @@ -16,13 +16,17 @@ shortTitle: Sync license usage {% data reusables.enterprise-licensing.about-license-sync %} -If you allow {% data variables.product.product_location_enterprise %} to connect to your enterprise account on {% data variables.product.prodname_dotcom_the_website %}, you can sync license usage between the environments automatically. Automatic synchronization ensures that you see up-to-date license details on {% data variables.product.prodname_dotcom_the_website %}. If you don't want to allow {% data variables.product.product_location %} to connect to {% data variables.product.prodname_dotcom_the_website %}, you can manually sync license usage by uploading a file from {% data variables.product.product_location %} to {% data variables.product.prodname_dotcom_the_website %}. +To ensure that you see up-to-date license details on {% data variables.product.prodname_dotcom_the_website %}, you can sync license usage between the environments automatically, using {% data variables.product.prodname_github_connect %}. For more information about {% data variables.product.prodname_github_connect %}, see "[About {% data variables.product.prodname_github_connect %}]({% ifversion ghec %}/enterprise-server@latest{% endif %}/admin/configuration/configuring-github-connect/about-github-connect){% ifversion ghec %}" in the {% data variables.product.prodname_ghe_server %} documentation.{% elsif ghes %}."{% endif %} -For more information about licenses and usage for {% data variables.product.prodname_ghe_server %}, see "[About licenses for {% data variables.product.prodname_enterprise %}](/billing/managing-your-license-for-github-enterprise/about-licenses-for-github-enterprise)." +If you don't want to enable {% data variables.product.prodname_github_connect %}, you can manually sync license usage by uploading a file from {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_dotcom_the_website %}. + +{% data reusables.enterprise-licensing.view-consumed-licenses %} + +{% data reusables.enterprise-licensing.verified-domains-license-sync %} ## Automatically syncing license usage -You can use {% data variables.product.prodname_github_connect %} to automatically sync user license count and usage between {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %}. For more information, see "[Enabling automatic user license sync for your enterprise]({% ifversion ghec %}/enterprise-server@latest{% endif %}/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise){% ifversion ghec %}" in the {% data variables.product.prodname_ghe_server %} documentation.{% elsif ghes %}."{% endif %} +You can use {% data variables.product.prodname_github_connect %} to automatically synchronize user license count and usage between {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %}. For more information, see "[Enabling automatic user license sync for your enterprise]({% ifversion ghec %}/enterprise-server@latest{% endif %}/admin/configuration/configuring-github-connect/enabling-automatic-user-license-sync-for-your-enterprise){% ifversion ghec %}" in the {% data variables.product.prodname_ghe_server %} documentation.{% elsif ghes %}."{% endif %} ## Manually syncing license usage diff --git a/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/viewing-license-usage-for-github-enterprise.md b/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/viewing-license-usage-for-github-enterprise.md index 0ab88fdb72..a7309acca3 100644 --- a/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/viewing-license-usage-for-github-enterprise.md +++ b/translations/zh-CN/content/billing/managing-your-license-for-github-enterprise/viewing-license-usage-for-github-enterprise.md @@ -48,7 +48,7 @@ You can view the license usage for your enterprise and download a file with lice {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.license-tab %} -1. Review your current {% data variables.product.prodname_enterprise %} license, as well as consumed and available user licenses.{% ifversion ghes > 3.0 %} +1. Review your current {% data variables.product.prodname_enterprise %} license, as well as consumed and available user licenses.{% ifversion ghes %} - If your license includes {% data variables.product.prodname_GH_advanced_security %}, you can review your total seat use as well as a per-organization breakdown of committers. For more information, see "[Managing {% data variables.product.prodname_GH_advanced_security %} for your enterprise](/admin/advanced-security)."{% endif %} {% endif %} diff --git a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql.md b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql.md index 70303ae4d7..ca4d272e84 100644 --- a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql.md +++ b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql.md @@ -27,7 +27,7 @@ topics: There are two main ways to use {% data variables.product.prodname_codeql %} analysis for {% data variables.product.prodname_code_scanning %}: - Add the {% data variables.product.prodname_codeql %} workflow to your repository. This uses the [github/codeql-action](https://github.com/github/codeql-action/) to run the {% data variables.product.prodname_codeql_cli %}. For more information, see "[Setting up {% data variables.product.prodname_code_scanning %} for a repository](/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository#setting-up-code-scanning-using-actions)." -- Run the {% data variables.product.prodname_codeql %} {% ifversion fpt or ghes > 3.1 or ghae or ghec %}CLI directly {% elsif ghes = 3.0 %}CLI or runner {% else %}runner {% endif %} in an external CI system and upload the results to {% data variables.product.prodname_dotcom %}. For more information, see "[About {% data variables.product.prodname_codeql %} code scanning in your CI system ](/code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system)." +- Run the {% data variables.product.prodname_codeql %} CLI directly in an external CI system and upload the results to {% data variables.product.prodname_dotcom %}. For more information, see "[About {% data variables.product.prodname_codeql %} code scanning in your CI system ](/code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system)." ## About {% data variables.product.prodname_codeql %} diff --git a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md index 7747b61120..d6ae1c8097 100644 --- a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md +++ b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md @@ -69,7 +69,7 @@ For example, you can see when the last scan ran, the number of lines of code ana You can filter the alerts shown in the {% data variables.product.prodname_code_scanning %} alerts view. This is useful if there are many alerts as you can focus on a particular type of alert. There are some predefined filters and a range of keywords that you can use to refine the list of alerts displayed. - To use a predefined filter, click **Filters**, or a filter shown in the header of the list of alerts, and choose a filter from the drop-down list. - {% ifversion fpt or ghes > 3.0 or ghec %}![Predefined filters](/assets/images/help/repository/code-scanning-predefined-filters.png) + {% ifversion fpt or ghes or ghec %}![Predefined filters](/assets/images/help/repository/code-scanning-predefined-filters.png) {% else %}![Predefined filters](/assets/images/enterprise/3.0/code-scanning-predefined-filters.png){% endif %} - To use a keyword, either type directly in the filters text box, or: 1. Click in the filters text box to show a list of all available filter keywords. diff --git a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository.md b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository.md index e5d16e2cfd..80f29556ff 100644 --- a/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository.md +++ b/translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository.md @@ -83,7 +83,7 @@ Enterprise owners, organization and repository administrators can add self-hoste {% data reusables.code-scanning.billing %} {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} -1. To the right of "{% data variables.product.prodname_code_scanning_capc %} alerts", click **Set up {% data variables.product.prodname_code_scanning %}**. {% ifversion fpt or ghes > 3.0 or ghae or ghec %}If {% data variables.product.prodname_code_scanning %} is missing, you need to ask an organization owner or repository administrator to enable {% data variables.product.prodname_GH_advanced_security %}. For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)" or "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)."{% endif %} +1. To the right of "{% data variables.product.prodname_code_scanning_capc %} alerts", click **Set up {% data variables.product.prodname_code_scanning %}**. If {% data variables.product.prodname_code_scanning %} is missing, you need to ask an organization owner or repository administrator to enable {% data variables.product.prodname_GH_advanced_security %}. For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)" or "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)." !["Set up {% data variables.product.prodname_code_scanning %}" button to the right of "{% data variables.product.prodname_code_scanning_capc %}" in the Security Overview](/assets/images/help/security/overview-set-up-code-scanning.png) 4. Under "Get started with {% data variables.product.prodname_code_scanning %}", click **Set up this workflow** on the {% data variables.product.prodname_codeql_workflow %} or on a third-party workflow. !["Set up this workflow" button under "Get started with {% data variables.product.prodname_code_scanning %}" heading](/assets/images/help/repository/code-scanning-set-up-this-workflow.png)Workflows are only displayed if they are relevant for the programming languages detected in the repository. The {% data variables.product.prodname_codeql_workflow %} is always displayed, but the "Set up this workflow" button is only enabled if {% data variables.product.prodname_codeql %} analysis supports the languages present in the repository. diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system.md index 16ce02b338..2cf259bd2d 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/about-codeql-code-scanning-in-your-ci-system.md @@ -86,4 +86,4 @@ For more information, see "[Installing {% data variables.product.prodname_codeql For more information about the {% data variables.product.prodname_codeql_runner %}, see "[Running {% data variables.product.prodname_codeql_runner %} in your CI system](/code-security/secure-coding/running-codeql-runner-in-your-ci-system)." -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system.md index 26a3434564..064f777b1b 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system.md @@ -8,7 +8,7 @@ redirect_from: - /code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system versions: fpt: '*' - ghes: '>=3.0' + ghes: '*' ghae: '*' ghec: '*' type: how_to diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-runner-in-your-ci-system.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-runner-in-your-ci-system.md index 2367ce35ac..d4cf1b7917 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-runner-in-your-ci-system.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-runner-in-your-ci-system.md @@ -144,10 +144,8 @@ $ /path/to-runner/codeql-runner-linux autobuild --language csharp | 标志 | 必选 | 输入值 | | -------------------------------------- |:--:| ----------------------------------------------------------------------------------------------------------------------------------- | | `--repository` | ✓ | 要初始化的仓库名称。 | -| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 |{% ifversion ghes < 3.1 %} -| `--github-auth` | ✓ | {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 |{% else %} -| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 -{% endif %} +| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 | +| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 | | `--languages` | | 要分析的语言列表,以逗号分隔。 默认情况下,{% data variables.product.prodname_codeql_runner %} 检测和分析仓库中所有支持的语言。 | | `--queries` | | 除了默认的安全查询套件之外,要运行的额外查询列表,以逗号分隔。 这将覆盖自定义配置文件中的 `queries` 设置。 | | `--config-file` | | 自定义配置文件的路径。 | @@ -180,10 +178,8 @@ $ /path/to-runner/codeql-runner-linux autobuild --language csharp | `--repository` | ✓ | 要分析的仓库名称。 | | `--commit` | ✓ | 要分析的提交的 SHA。 在 Git 和 Azure DevOps 中,这对应于 `git rev-parse HEAD` 的值。 在 Jenkins 中,这对应于 `$GIT_COMMIT`。 | | `--ref` | ✓ | 要分析的引用的名称,例如 `refs/heads/main` 或 `refs/pull/42/merge`。 在 Git 或 Jenkins 中,这对应于 `git symbolic-ref HEAD` 的值。 在 Azure DevOps 中,这对应于 `$(Build.SourceBranch)`。 | -| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 |{% ifversion ghes < 3.1 %} -| `--github-auth` | ✓ | {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 |{% else %} -| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 -{% endif %} +| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 | +| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 | | `--checkout-path` | | 检出仓库的路径。 默认值为当前工作目录。 | | `--no-upload` | | 无. 阻止 {% data variables.product.prodname_codeql_runner %} 将结果上传到 {% data variables.product.product_name %}。 | | `--output-dir` | | 存储输出 SARIF 文件的目录。 默认在临时文件目录中。 | @@ -212,10 +208,8 @@ $ /path/to-runner/codeql-runner-linux autobuild --language csharp | `--repository` | ✓ | 已分析的仓库名称。 | | `--commit` | ✓ | 已分析的提交的 SHA。 在 Git 和 Azure DevOps 中,这对应于 `git rev-parse HEAD` 的值。 在 Jenkins 中,这对应于 `$GIT_COMMIT`。 | | `--ref` | ✓ | 已分析的引用的名称,例如 `refs/heads/main` 或 `refs/pull/42/merge`。 在 Git 或 Jenkins 中,这对应于 `git symbolic-ref HEAD` 的值。 在 Azure DevOps 中,这对应于 `$(Build.SourceBranch)`。 | -| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 |{% ifversion ghes < 3.1 %} -| `--github-auth` | ✓ | {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 |{% else %} -| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 -{% endif %} +| `--github-url` | ✓ | 托管仓库的 {% data variables.product.prodname_dotcom %} 实例的 URL。 | +| `--github-auth-stdin` | ✓ | 从标准输入读取 {% data variables.product.prodname_github_apps %} 令牌或个人访问令牌。 | | `--checkout-path` | | 检出仓库的路径。 默认值为当前工作目录。 | | `--debug` | | 无. 打印更详细的输出。 | | `-h`, `--help` | | 无. 显示命令的帮助。 | diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system.md index 89fab216d9..e05375528a 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system.md @@ -6,7 +6,7 @@ product: '{% data reusables.gated-features.code-scanning %}' miniTocMaxHeadingLevel: 3 versions: fpt: '*' - ghes: '>=3.0' + ghes: '*' ghae: '*' ghec: '*' type: how_to @@ -47,7 +47,6 @@ You should download the {% data variables.product.prodname_codeql %} bundle from {% ifversion ghes %} {% note %} -{% ifversion ghes = 3.0 %}For {% data variables.product.prodname_ghe_server %} 3.0, we recommend {% data variables.product.prodname_codeql_cli %} version 2.6.3.{% endif %} {% ifversion ghes = 3.1 %}For {% data variables.product.prodname_ghe_server %} 3.1, we recommend {% data variables.product.prodname_codeql_cli %} version 2.6.3.{% endif %} {% ifversion ghes = 3.2 %}For {% data variables.product.prodname_ghe_server %} 3.2, we recommend {% data variables.product.prodname_codeql_cli %} version 2.6.3.{% endif %} {% ifversion ghes > 3.2 %}For {% data variables.product.prodname_ghe_server %} 3.3 and greater, we recommend {% data variables.product.prodname_codeql_cli %} version 2.7.6 or greater.{% endif %} diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/migrating-from-the-codeql-runner-to-codeql-cli.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/migrating-from-the-codeql-runner-to-codeql-cli.md index 24269ff515..51e2c68ed1 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/migrating-from-the-codeql-runner-to-codeql-cli.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/migrating-from-the-codeql-runner-to-codeql-cli.md @@ -5,7 +5,7 @@ intro: 'You can use the {% data variables.product.prodname_codeql_cli %} to comp product: '{% data reusables.gated-features.code-scanning %}' versions: fpt: '*' - ghes: '>=3.0' + ghes: '*' ghae: '*' ghec: '*' topics: diff --git a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md index 4bfcdfa805..cce348e767 100644 --- a/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md +++ b/translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md @@ -38,9 +38,7 @@ topics: The {% data variables.product.prodname_codeql_runner %} is a tool you can use to run {% data variables.product.prodname_code_scanning %} on code that you're processing in a third-party continuous integration (CI) system. {% data reusables.code-scanning.about-code-scanning %} For information, see "[About {% data variables.product.prodname_code_scanning %} with {% data variables.product.prodname_codeql %}](/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql)." -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} In many cases it is easier to set up {% data variables.product.prodname_codeql %} {% data variables.product.prodname_code_scanning %} using the {% data variables.product.prodname_codeql_cli %} directly in your CI system. -{% endif %} Alternatively, you can use {% data variables.product.prodname_actions %} to run {% data variables.product.prodname_code_scanning %} within {% data variables.product.product_name %}. For information, see "[Setting up {% data variables.product.prodname_code_scanning %} for a repository](/code-security/secure-coding/setting-up-code-scanning-for-a-repository)." @@ -54,7 +52,7 @@ The {% data variables.product.prodname_codeql_runner %} is a command-line tool t {% else %} * The {% data variables.product.prodname_codeql_runner %} is available to customers with an {% data variables.product.prodname_advanced_security %} license. {% endif %} -{% ifversion ghes < 3.1 or ghae %} +{% ifversion ghae %} * The {% data variables.product.prodname_codeql_runner %} shouldn't be confused with the {% data variables.product.prodname_codeql %} CLI. The {% data variables.product.prodname_codeql %} CLI is a command-line interface that lets you create {% data variables.product.prodname_codeql %} databases for security research and run {% data variables.product.prodname_codeql %} queries. For more information, see "[{% data variables.product.prodname_codeql_cli %}](https://codeql.github.com/docs/codeql-cli/)." {% endif %} @@ -123,12 +121,6 @@ In this example, the server has access to download the {% data variables.product 1. Move into the directory where the repository is checked out. 1. Initialize the {% data variables.product.prodname_codeql_runner %} and create {% data variables.product.prodname_codeql %} databases for the languages detected. -{% ifversion ghes < 3.1 %} - ```shell - $ /path/to-runner/codeql-runner-linux init --repository octo-org/example-repo - --github-url {% data variables.command_line.git_url_example %} --github-auth TOKEN - ``` -{% else %} ```shell $ echo "$TOKEN" | /path/to-runner/codeql-runner-linux init --repository octo-org/example-repo --github-url {% data variables.command_line.git_url_example %} --github-auth-stdin @@ -136,7 +128,6 @@ In this example, the server has access to download the {% data variables.product > ... > Created CodeQL database at /srv/checkout/example-repo/codeql-runner/codeql_databases/javascript. ``` -{% endif %} {% data reusables.code-scanning.codeql-runner-analyze-example %} @@ -147,12 +138,6 @@ This example is similar to the previous example, however this time the repositor 1. Check out the repository to analyze. 1. Move into the directory where the repository is checked out. 1. Initialize the {% data variables.product.prodname_codeql_runner %} and create {% data variables.product.prodname_codeql %} databases for the languages detected. -{% ifversion ghes < 3.1 %} - ```shell - $ /path/to-runner/codeql-runner-linux init --repository octo-org/example-repo-2 - --github-url {% data variables.command_line.git_url_example %} --github-auth TOKEN - ``` -{% else %} ```shell $ echo "$TOKEN" | /path/to-runner/codeql-runner-linux init --repository octo-org/example-repo-2 --github-url {% data variables.command_line.git_url_example %} --github-auth-stdin @@ -163,7 +148,6 @@ This example is similar to the previous example, however this time the repositor Please export these variables to future processes so that CodeQL can monitor the build, for example by running ". /srv/checkout/example-repo-2/codeql-runner/codeql-env.sh". ``` -{% endif %} 1. Source the script generated by the `init` action to set up the environment to monitor the build. Note the leading dot and space in the following code snippet. ```shell @@ -197,4 +181,4 @@ For information on migrating to {% data variables.product.prodname_codeql_cli %} - [CodeQL runner deprecation](https://github.blog/changelog/2021-09-21-codeql-runner-deprecation/) in the GitHub Blog -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/content/code-security/getting-started/adding-a-security-policy-to-your-repository.md b/translations/zh-CN/content/code-security/getting-started/adding-a-security-policy-to-your-repository.md index a597703230..7464e700b2 100644 --- a/translations/zh-CN/content/code-security/getting-started/adding-a-security-policy-to-your-repository.md +++ b/translations/zh-CN/content/code-security/getting-started/adding-a-security-policy-to-your-repository.md @@ -7,7 +7,7 @@ redirect_from: - /github/code-security/security-advisories/adding-a-security-policy-to-your-repository versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' type: how_to @@ -21,7 +21,7 @@ shortTitle: 添加安全策略 ## 关于安全政策 -要向人说明如何报告项目中的安全漏洞,{% ifversion fpt or ghes > 3.0 or ghec %} 您可以将 _SECURITY.md_ 文件添加到仓库的根目录、`docs` 或 `.github` 文件夹。{% else %} 您可以将 _SECURITY.md_ 文件添加到仓库的根目录或 `docs` 文件夹。{% endif %} 当有人在您的仓库中创建议题时,他们将看到项目安全政策的链接。 +要向人说明如何报告项目中的安全漏洞,{% ifversion fpt or ghes or ghec %} 您可以将 _SECURITY.md_ 文件添加到仓库的根目录、`docs` 或 `.github` 文件夹。{% else %} 您可以将 _SECURITY.md_ 文件添加到仓库的根目录或 `docs` 文件夹。{% endif %} 当有人在您的仓库中创建议题时,他们将看到项目安全政策的链接。 {% ifversion not ghae %} @@ -39,7 +39,7 @@ shortTitle: 添加安全策略 {% data reusables.repositories.github-security-lab %} {% endif %} -{% ifversion ghes > 3.0 or ghae %} +{% ifversion ghes or ghae %} 通过创建明确的安全报告说明,用户可以轻松地使用您喜欢的通信通道报告仓库中发现的任何安全漏洞。 {% endif %} diff --git a/translations/zh-CN/content/code-security/getting-started/github-security-features.md b/translations/zh-CN/content/code-security/getting-started/github-security-features.md index d14136d360..17a4e0db2f 100644 --- a/translations/zh-CN/content/code-security/getting-started/github-security-features.md +++ b/translations/zh-CN/content/code-security/getting-started/github-security-features.md @@ -23,16 +23,14 @@ topics: {% ifversion fpt or ghes or ghae-issue-4864 or ghec %} ## 适用于所有仓库 {% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ### 安全策略 让您的用户能够轻松地秘密报告他们在仓库中发现的安全漏洞。 更多信息请参阅“[添加安全政策到仓库](/code-security/getting-started/adding-a-security-policy-to-your-repository)”。 -{% endif %} {% ifversion fpt or ghec %} ### 安全通告 -私下讨论并修复仓库代码中的安全漏洞。 然后,您可以发布安全通告,提醒您的社区注意漏洞并鼓励社区成员升级。 更多信息请参阅“[关于 {% data variables.product.prodname_security_advisories %}](/github/managing-security-vulnerabilities/about-github-security-advisories)”。 +私下讨论并修复仓库代码中的安全漏洞。 然后,您可以发布安全通告,提醒您的社区注意漏洞并鼓励社区成员升级。 For more information, see "[About {% data variables.product.prodname_security_advisories %}](/github/managing-security-vulnerabilities/about-github-security-advisories)." {% endif %} {% ifversion fpt or ghec or ghes > 3.2 %} @@ -68,17 +66,38 @@ topics: ## 通过 {% data variables.product.prodname_GH_advanced_security %} 可用 -{% data reusables.advanced-security.ghas-availability %} +{% ifversion fpt %} +The following {% data variables.product.prodname_GH_advanced_security %} features are available and free of charge for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations that use {% data variables.product.prodname_ghe_cloud %} with a license for {% data variables.product.prodname_GH_advanced_security %} can use the full set of features in any of their repositories. For a list of the features available with {% data variables.product.prodname_ghe_cloud %}, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/getting-started/github-security-features#available-with-github-advanced-security). + +{% elsif ghec %} +Many {% data variables.product.prodname_GH_advanced_security %} features are available and free of charge for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations within an enterprise that has a {% data variables.product.prodname_GH_advanced_security %} license can use all the following features on their repositories. {% data reusables.advanced-security.more-info-ghas %} + +{% elsif ghes %} +{% data variables.product.prodname_GH_advanced_security %} features are available for enterprises with a license for {% data variables.product.prodname_GH_advanced_security %}. The features are restricted to repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} + +{% elsif ghae %} +{% data variables.product.prodname_GH_advanced_security %} features are available for repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} +{% endif %} ### {% data variables.product.prodname_code_scanning_capc %} 自动检测新代码或修改代码中的安全漏洞和编码错误。 潜在的问题被高亮显示,并附有详细信息,允许您在将代码合并到默认分支之前修复它。 更多信息请参阅“[关于代码扫描](/github/finding-security-vulnerabilities-and-errors-in-your-code/about-code-scanning)”。 -### {% data variables.product.prodname_secret_scanning_caps %} +{% ifversion fpt or ghec %} +### {% data variables.product.prodname_secret_scanning_partner_caps %} -自动检测已签入存储库的令牌或凭据。 {% ifversion fpt or ghec %}{% data variables.product.prodname_secret_scanning_caps %} 在所有公共存储库中查找泄露的机密,并通知相关服务提供商该机密可能已泄露。 有关支持的机密和服务提供商的详细信息,请参阅“[{% data variables.product.prodname_secret_scanning_caps %} 合作伙伴](/code-security/secret-scanning/secret-scanning-partners)”。{% endif %} -{%- ifversion ghec or ghes or ghae %} -{% ifversion ghec %}在私有存储库中,可以查看 {% elsif ghes or ghae %}可以查看{% endif %} {% data variables.product.company_short %} 在代码中找到的任何机密。 应将已签入存储库的令牌或凭据视为已泄露。{% endif %} 更多信息请参阅“[关于秘密扫描](/github/administering-a-repository/about-secret-scanning)”。 +Automatically detect leaked secrets across all public repositories. {% data variables.product.company_short %} informs the relevant service provider that the secret may be compromised. For details of the supported secrets and service providers, see "[{% data variables.product.prodname_secret_scanning_caps %} patterns](/code-security/secret-scanning/secret-scanning-patterns)." +{% endif %} + +{% ifversion not fpt %} +### {% data variables.product.prodname_secret_scanning_GHAS_caps %} + +{% ifversion ghec %} +Available only with a license for {% data variables.product.prodname_GH_advanced_security %}. +{% endif %} + +自动检测已签入存储库的令牌或凭据。 You can view alerts for any secrets that {% data variables.product.company_short %} finds in your code, so that you know which tokens or credentials to treat as compromised. 更多信息请参阅“[关于密钥扫描](/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-advanced-security)”。 +{% endif %} {% ifversion fpt or ghes > 3.1 or ghae-issue-4864 or ghec %} ### 依赖项审查 @@ -89,6 +108,10 @@ topics: {% ifversion ghec or ghes > 3.1 or ghae-issue-4554 %} ### 组织{% ifversion ghec or ghes > 3.4 or ghae-issue-6199 %}、企业、{% endif %} 和团队的安全概述 +{% ifversion ghec %} +Available only with a license for {% data variables.product.prodname_GH_advanced_security %}. +{% endif %} + 检查组织的安全配置和警报,并确定风险最大的存储库。 更多信息请参阅“[关于安全概述](/code-security/security-overview/about-the-security-overview)”。 {% endif %} diff --git a/translations/zh-CN/content/code-security/getting-started/securing-your-organization.md b/translations/zh-CN/content/code-security/getting-started/securing-your-organization.md index d27d4e08ce..bd40761fce 100644 --- a/translations/zh-CN/content/code-security/getting-started/securing-your-organization.md +++ b/translations/zh-CN/content/code-security/getting-started/securing-your-organization.md @@ -33,7 +33,7 @@ You can create a default security policy that will display in any of your organi {% endif %} -{% ifversion fpt or ghes > 2.22 or ghae-issue-4864 or ghec %} +{% ifversion fpt or ghes or ghae-issue-4864 or ghec %} ## Managing {% data variables.product.prodname_dependabot_alerts %} and the dependency graph {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %} detects vulnerabilities in public repositories and displays the dependency graph. You can enable or disable {% data variables.product.prodname_dependabot_alerts %} for all public repositories owned by your organization. You can enable or disable {% data variables.product.prodname_dependabot_alerts %} and the dependency graph for all private repositories owned by your organization. @@ -83,10 +83,10 @@ To enable {% data variables.product.prodname_dependabot_version_updates %}, you {% endif %} -{% ifversion ghes > 2.22 or ghae or ghec %} +{% ifversion ghes or ghae or ghec %} ## Managing {% data variables.product.prodname_GH_advanced_security %} -{% ifversion ghes > 2.22 or ghec %} +{% ifversion ghes or ghec %} If your {% ifversion ghec %}organization is owned by an enterprise that{% else %}enterprise{% endif %} has an {% data variables.product.prodname_advanced_security %} license, you can enable or disable {% data variables.product.prodname_advanced_security %} features. {% elsif ghae %} You can enable or disable {% data variables.product.prodname_advanced_security %} features. @@ -101,7 +101,7 @@ You can enable or disable {% data variables.product.prodname_advanced_security % For more information, see "[About {% data variables.product.prodname_GH_advanced_security %}](/github/getting-started-with-github/about-github-advanced-security)" and "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." {% endif %} -{% ifversion fpt or ghes > 2.22 or ghae or ghec %} +{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ## Configuring {% data variables.product.prodname_secret_scanning %} {% data variables.product.prodname_secret_scanning_caps %} is an {% data variables.product.prodname_advanced_security %} feature that scans repositories for secrets that are insecurely stored. @@ -135,7 +135,7 @@ For more information, see "[Managing security and analysis settings for your org ## Next steps {% ifversion fpt or ghes > 3.1 or ghec %}You can view, filter, and sort security alerts for repositories owned by your organization in the security overview. For more information, see "[About the security overview](/code-security/security-overview/about-the-security-overview)."{% endif %} -You can view and manage alerts from security features to address dependencies and vulnerabilities in your code. For more information, see {% ifversion fpt or ghes > 2.22 or ghec %} "[Viewing and updating vulnerable dependencies in your repository](/code-security/supply-chain-security/viewing-and-updating-vulnerable-dependencies-in-your-repository),"{% endif %} {% ifversion fpt or ghec or ghes > 3.2 %}"[Managing pull requests for dependency updates](/code-security/supply-chain-security/managing-pull-requests-for-dependency-updates)," {% endif %}"[Managing {% data variables.product.prodname_code_scanning %} for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository)," and "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." +You can view and manage alerts from security features to address dependencies and vulnerabilities in your code. For more information, see {% ifversion fpt or ghes or ghec %} "[Viewing and updating vulnerable dependencies in your repository](/code-security/supply-chain-security/viewing-and-updating-vulnerable-dependencies-in-your-repository),"{% endif %} {% ifversion fpt or ghec or ghes > 3.2 %}"[Managing pull requests for dependency updates](/code-security/supply-chain-security/managing-pull-requests-for-dependency-updates)," {% endif %}"[Managing {% data variables.product.prodname_code_scanning %} for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository)," and "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." {% ifversion fpt or ghec %}If you have a security vulnerability, you can create a security advisory to privately discuss and fix the vulnerability. For more information, see "[About {% data variables.product.prodname_security_advisories %}](/code-security/security-advisories/about-github-security-advisories)" and "[Creating a security advisory](/code-security/security-advisories/creating-a-security-advisory)." {% endif %} @@ -144,4 +144,4 @@ You can view and manage alerts from security features to address dependencies an ## Further reading "[Accessing compliance reports for your organization](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/accessing-compliance-reports-for-your-organization)" -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md b/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md index 9344b01f50..293eb3185b 100644 --- a/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md +++ b/translations/zh-CN/content/code-security/getting-started/securing-your-repository.md @@ -35,7 +35,6 @@ From the main page of your repository, click **{% octicon "gear" aria-label="The - To change who can view your repository, click **Change visibility**. For more information, see "[Setting repository visibility](/github/administering-a-repository/setting-repository-visibility)."{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5974 %} - To change who can access your repository and adjust permissions, click **Manage access**. For more information, see"[Managing teams and people with access to your repository](/github/administering-a-repository/managing-teams-and-people-with-access-to-your-repository)."{% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ## Setting a security policy 1. From the main page of your repository, click **{% octicon "shield" aria-label="The shield symbol" %} Security**. @@ -45,8 +44,6 @@ From the main page of your repository, click **{% octicon "gear" aria-label="The For more information, see "[Adding a security policy to your repository](/code-security/getting-started/adding-a-security-policy-to-your-repository)." -{% endif %} - {% ifversion fpt or ghes or ghae-issue-4864 or ghec %} ## Managing the dependency graph diff --git a/translations/zh-CN/content/code-security/guides.md b/translations/zh-CN/content/code-security/guides.md index 9ef016eb5a..fd3657aca6 100644 --- a/translations/zh-CN/content/code-security/guides.md +++ b/translations/zh-CN/content/code-security/guides.md @@ -27,7 +27,7 @@ includeGuides: - /code-security/secret-scanning/configuring-secret-scanning-for-your-repositories - /code-security/secret-scanning/defining-custom-patterns-for-secret-scanning - /code-security/secret-scanning/managing-alerts-from-secret-scanning - - /code-security/secret-scanning/secret-scanning-partners + - /code-security/secret-scanning/secret-scanning-patterns - /code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/tracking-code-scanning-alerts-in-issues-using-task-lists - /code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning - /code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-alerts diff --git a/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md b/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md index f4f8a419e9..884e8b3e26 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md +++ b/translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md @@ -1,7 +1,7 @@ --- title: About secret scanning intro: '{% data variables.product.product_name %} scans repositories for known types of secrets, to prevent fraudulent use of secrets that were committed accidentally.' -product: '{% data reusables.gated-features.secret-scanning %}' +product: '{% data reusables.gated-features.secret-scanning-partner %}' redirect_from: - /github/administering-a-repository/about-token-scanning - /articles/about-token-scanning @@ -26,21 +26,31 @@ topics: If your project communicates with an external service, you might use a token or private key for authentication. Tokens and private keys are examples of secrets that a service provider can issue. If you check a secret into a repository, anyone who has read access to the repository can use the secret to access the external service with your privileges. We recommend that you store secrets in a dedicated, secure location outside of the repository for your project. -{% data variables.product.prodname_secret_scanning_caps %} will scan your entire Git history on all branches present in your {% data variables.product.prodname_dotcom %} repository for any secrets. Service providers can partner with {% data variables.product.company_short %} to provide their secret formats for scanning. For details of the supported secrets and service providers, see "[{% data variables.product.prodname_secret_scanning_caps %} partners](/code-security/secret-scanning/secret-scanning-partners)." - -{% data reusables.secret-scanning.partner-program-link %} +{% data variables.product.prodname_secret_scanning_caps %} will scan your entire Git history on all branches present in your {% data variables.product.prodname_dotcom %} repository for secrets{% ifversion ghec or ghes > 3.4 or ghae-issue-6329 %}, even if the repository is archived{% endif %}. {% ifversion fpt or ghec %} -## About {% data variables.product.prodname_secret_scanning %} for public repositories +{% data variables.product.prodname_secret_scanning_caps %} is available on {% data variables.product.prodname_dotcom_the_website %} in two forms: -{% data variables.product.prodname_secret_scanning_caps %} is automatically enabled on public repositories. When you push to a public repository, {% data variables.product.product_name %} scans the content of the commits for secrets. +1. **{% data variables.product.prodname_secret_scanning_partner_caps %}.** Runs automatically on all public repositories. Any strings that match patterns that were provided by secret scanning partners are reported directly to the relvant partner. -When {% data variables.product.prodname_secret_scanning %} detects a potential secret, we notify the service provider who issued the secret. The service provider validates the string and then decides whether they should revoke the secret, issue a new secret, or contact you directly. Their action will depend on the associated risks to you or them. +2. **{% data variables.product.prodname_secret_scanning_GHAS_caps %}.** You can enable and configure additional scanning for repositories owned by organizations that use {% data variables.product.prodname_ghe_cloud %} and have a license for {% data variables.product.prodname_GH_advanced_security %}. Any strings that match patterns provided by secret scannng partners, by other service providers, or defined by your organization are reported as alerts in the "Security" tab of repositories. If a string in a public repository matches a partner pattern, it is also reported to the partner. +{% endif %} + +Service providers can partner with {% data variables.product.company_short %} to provide their secret formats for scanning. {% data reusables.secret-scanning.partner-program-link %} + +{% ifversion fpt or ghec %} +## About {% data variables.product.prodname_secret_scanning_partner %} + +When you make a repository public, or push changes to a public repository, {% data variables.product.product_name %} always scans the code for secrets that match partner patterns. If {% data variables.product.prodname_secret_scanning %} detects a potential secret, we notify the service provider who issued the secret. The service provider validates the string and then decides whether they should revoke the secret, issue a new secret, or contact you directly. Their action will depend on the associated risks to you or them. For more information, see "[Supported secrets for partner patterns](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-partner-patterns)." You cannot change the configuration of {% data variables.product.prodname_secret_scanning %} on public repositories. {% ifversion fpt %} -Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_GH_advanced_security %} can configure {% data variables.product.prodname_secret_scanning %} to run on private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/secret-security/about-secret-scanning). +{% note %} + +**Note:** Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_GH_advanced_security %} can also enable {% data variables.product.prodname_secret_scanning_GHAS %} on any repository they own, including private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-advanced-security). + +{% endnote %} {% endif %} {% endif %} @@ -48,14 +58,14 @@ Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data {% ifversion not fpt %} {% ifversion ghec %} -## About {% data variables.product.prodname_secret_scanning %} for private repositories +## About {% data variables.product.prodname_secret_scanning_GHAS %} {% elsif ghes or ghae %} ## About {% data variables.product.prodname_secret_scanning %} on {% data variables.product.product_name %} - -{% data variables.product.prodname_secret_scanning_caps %} is available on all organization-owned repositories as part of {% data variables.product.prodname_GH_advanced_security %}. It is not available on user-owned repositories. {% endif %} -If you're a repository administrator or an organization owner, you can enable {% data variables.product.prodname_secret_scanning %} for {% ifversion ghec %} private{% endif %} repositories{% ifversion ghec or ghes > 3.4 or ghae-issue-6329 %}, including archived repositories,{% endif %} that are owned by organizations. You can enable {% data variables.product.prodname_secret_scanning %} for all your organization's repositories, or for all new repositories within your organization.{% ifversion ghec %} {% data variables.product.prodname_secret_scanning_caps %} is not available for private repositories owned by user accounts.{% endif %} For more information, see "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" and "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." +{% data variables.product.prodname_secret_scanning_GHAS_caps %} is available on all organization-owned repositories as part of {% data variables.product.prodname_GH_advanced_security %}. It is not available on user-owned repositories. When you enable {% data variables.product.prodname_secret_scanning %} for a repository, {% data variables.product.prodname_dotcom %} scans the code for patterns that match secrets used by many service providers. For more information, see "{% ifversion ghec %}[Supported secrets for advanced security](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security){% else %}[{% data variables.product.prodname_secret_scanning_caps %} patterns](/code-security/secret-scanning/secret-scanning-patterns){% endif %}." + +If you're a repository administrator you can enable {% data variables.product.prodname_secret_scanning_GHAS %} for any repository{% ifversion ghec or ghes > 3.4 or ghae-issue-6329 %}, including archived repositories{% endif %}. Organization owners can also enable {% data variables.product.prodname_secret_scanning_GHAS %} for all repositories or for all new repositories within an organization. For more information, see "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)" and "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." {% ifversion ghes > 3.1 or ghae or ghec %}You can also define custom {% data variables.product.prodname_secret_scanning %} patterns for a repository, organization, or enterprise. For more information, see "[Defining custom patterns for {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)." {% elsif ghes < 3.2 %} @@ -64,17 +74,17 @@ Versions 3.1 and lower of {% data variables.product.product_name %} do not allow ### About {% data variables.product.prodname_secret_scanning %} alerts -When you push commits to a{% ifversion ghec %} private{% endif %} repository with {% data variables.product.prodname_secret_scanning %} enabled, {% data variables.product.prodname_dotcom %} scans the contents of the commits for secrets. +When you push commits to a repository with {% data variables.product.prodname_secret_scanning %} enabled, {% data variables.product.prodname_dotcom %} scans the contents of those commits for secrets that match patterns defined by service providers{% ifversion ghes > 3.1 or ghae or ghec %} and any custom patterns defined in your enterprise, organization, or repository{% endif %}. -When {% data variables.product.prodname_secret_scanning %} detects a secret in a{% ifversion ghec %} private{% endif %} repository, {% data variables.product.prodname_dotcom %} generates an alert. +If {% data variables.product.prodname_secret_scanning %} detects a secret, {% data variables.product.prodname_dotcom %} generates an alert. - {% data variables.product.prodname_dotcom %} sends an email alert to the repository administrators and organization owners. -{% ifversion ghes > 3.0 or ghae or ghec %} +{% ifversion ghes or ghae or ghec %} - {% data variables.product.prodname_dotcom %} sends an email alert to the contributor who committed the secret to the repository, with a link to the related {% data variables.product.prodname_secret_scanning %} alert. The commit author can then view the alert in the repository, and resolve the alert. {% endif %} -- {% data variables.product.prodname_dotcom %} displays an alert in the repository.{% ifversion ghes = 3.0 %} For more information, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/github/administering-a-repository/managing-alerts-from-secret-scanning)."{% endif %} +- {% data variables.product.prodname_dotcom %} displays an alert in the "Security" tab of the repository.{% ifversion ghes = 3.0 %} For more information, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/github/administering-a-repository/managing-alerts-from-secret-scanning)."{% endif %} -{% ifversion ghes > 3.0 or ghae or ghec %} +{% ifversion ghes or ghae or ghec %} For more information about viewing and resolving {% data variables.product.prodname_secret_scanning %} alerts, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/github/administering-a-repository/managing-alerts-from-secret-scanning)."{% endif %} Repository administrators and organization owners can grant users and teams access to {% data variables.product.prodname_secret_scanning %} alerts. For more information, see "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)." @@ -84,7 +94,7 @@ You can use the security overview to see an organization-level view of which rep {% endif %} {%- ifversion ghec or ghes > 3.1 %}You can also use the REST API to {% elsif ghes = 3.1 %}You can use the REST API to {% endif %} -{%- ifversion ghec or ghes > 3.0 %}monitor results from {% data variables.product.prodname_secret_scanning %} across your {% ifversion ghec %}private {% endif %}repositories{% ifversion ghes > 3.1 %} or your organization{% endif %}. For more information about API endpoints, see "[{% data variables.product.prodname_secret_scanning_caps %}](/rest/reference/secret-scanning)."{% endif %} +monitor results from {% data variables.product.prodname_secret_scanning %} across your {% ifversion ghec %}private {% endif %}repositories{% ifversion ghes > 3.1 %} or your organization{% endif %}. For more information about API endpoints, see "[{% data variables.product.prodname_secret_scanning_caps %}](/rest/reference/secret-scanning)." {% endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md b/translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md index 60461bb8bf..5abaaa378d 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md +++ b/translations/zh-CN/content/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories.md @@ -1,12 +1,12 @@ --- -title: Configuring secret scanning for your repositories -intro: 'You can configure how {% data variables.product.prodname_dotcom %} scans your repositories for secrets.' -permissions: 'People with admin permissions to a repository can enable {% data variables.product.prodname_secret_scanning %} for the repository.' +title: 配置仓库的密码扫描 +intro: 'You can configure how {% data variables.product.prodname_dotcom %} scans your repositories for secrets that match advanced security patterns.' +product: '{% data reusables.gated-features.secret-scanning %}' +permissions: 'People with admin permissions to a repository can enable {% data variables.product.prodname_secret_scanning_GHAS %} for the repository.' redirect_from: - /github/administering-a-repository/configuring-secret-scanning-for-private-repositories - /github/administering-a-repository/configuring-secret-scanning-for-your-repositories - /code-security/secret-security/configuring-secret-scanning-for-your-repositories -product: '{% data reusables.gated-features.secret-scanning %}' versions: ghes: '*' ghae: '*' @@ -16,75 +16,57 @@ topics: - Secret scanning - Advanced Security - Repositories -shortTitle: Configure secret scans +shortTitle: 配置密钥扫描 --- {% data reusables.secret-scanning.beta %} {% data reusables.secret-scanning.enterprise-enable-secret-scanning %} -{% ifversion fpt or ghec %} -{% note %} +## 启用 {% data variables.product.prodname_secret_scanning_GHAS %} -**Note:** {% data variables.product.prodname_secret_scanning_caps %} is enabled by default on public repositories and cannot be turned off. You can configure {% data variables.product.prodname_secret_scanning %} for your private repositories only. - -{% endnote %} -{% endif %} - -## Enabling {% data variables.product.prodname_secret_scanning %} for {% ifversion fpt or ghec %}private {% endif %}repositories - -{% ifversion ghes or ghae %} -You can enable {% data variables.product.prodname_secret_scanning %} for any repository that is owned by an organization. -{% endif %} Once enabled, {% data reusables.secret-scanning.secret-scanning-process %} +您可以对组织拥有的任何仓库启用 {% data variables.product.prodname_secret_scanning_GHAS %}。 Once enabled, {% data reusables.secret-scanning.secret-scanning-process %} {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} -4. If {% data variables.product.prodname_advanced_security %} is not already enabled for the repository, to the right of "{% data variables.product.prodname_GH_advanced_security %}", click **Enable**. - {% ifversion fpt or ghec %}![Enable {% data variables.product.prodname_GH_advanced_security %} for your repository](/assets/images/help/repository/enable-ghas-dotcom.png) - {% elsif ghes > 3.0 or ghae %}![Enable {% data variables.product.prodname_GH_advanced_security %} for your repository](/assets/images/enterprise/3.1/help/repository/enable-ghas.png){% endif %} -5. Review the impact of enabling {% data variables.product.prodname_advanced_security %}, then click **Enable {% data variables.product.prodname_GH_advanced_security %} for this repository**. -6. When you enable {% data variables.product.prodname_advanced_security %}, {% data variables.product.prodname_secret_scanning %} may automatically be enabled for the repository due to the organization's settings. If "{% data variables.product.prodname_secret_scanning_caps %}" is shown with an **Enable** button, you still need to enable {% data variables.product.prodname_secret_scanning %} by clicking **Enable**. If you see a **Disable** button, {% data variables.product.prodname_secret_scanning %} is already enabled. - ![Enable {% data variables.product.prodname_secret_scanning %} for your repository](/assets/images/help/repository/enable-secret-scanning-dotcom.png) - {% elsif ghes = 3.0 %} -7. To the right of "{% data variables.product.prodname_secret_scanning_caps %}", click **Enable**. - ![Enable {% data variables.product.prodname_secret_scanning %} for your repository](/assets/images/help/repository/enable-secret-scanning-ghe.png) - {% endif %} +4. 如果 {% data variables.product.prodname_advanced_security %} 尚未对仓库启用,请在“{% data variables.product.prodname_GH_advanced_security %}”右侧单击 **Enable(启用)**。 + {% ifversion fpt or ghec %}![为仓库启用 {% data variables.product.prodname_GH_advanced_security %}](/assets/images/help/repository/enable-ghas-dotcom.png) + {% elsif ghes or ghae %}![Enable {% data variables.product.prodname_GH_advanced_security %} for your repository](/assets/images/enterprise/3.1/help/repository/enable-ghas.png){% endif %} +5. 查看启用 {% data variables.product.prodname_advanced_security %} 的影响,然后点击 **对仓库启用 {% data variables.product.prodname_GH_advanced_security %}**。 +6. 当您启用 {% data variables.product.prodname_advanced_security %} 时,{% data variables.product.prodname_secret_scanning %} 可能会因为组织的设置而自动启用。 如果 "{% data variables.product.prodname_secret_scanning_caps %}" 显示 **Enable(启用)**按钮,则您仍需通过单击 **Enable(启用)**来启用 {% data variables.product.prodname_secret_scanning %}。 如果您看到 **Disable(禁用)**按钮,则表明 {% data variables.product.prodname_secret_scanning %} 已启用。 ![为仓库启用 {% data variables.product.prodname_secret_scanning %}](/assets/images/help/repository/enable-secret-scanning-dotcom.png) + {% ifversion ghae %} -1. Before you can enable {% data variables.product.prodname_secret_scanning %}, you need to enable {% data variables.product.prodname_GH_advanced_security %} first. To the right of "{% data variables.product.prodname_GH_advanced_security %}", click **Enable**. - ![Enable {% data variables.product.prodname_GH_advanced_security %} for your repository](/assets/images/enterprise/github-ae/repository/enable-ghas-ghae.png) -2. Click **Enable {% data variables.product.prodname_GH_advanced_security %} for this repository** to confirm the action. - ![Confirm enabling {% data variables.product.prodname_GH_advanced_security %} for your repository](/assets/images/enterprise/github-ae/repository/enable-ghas-confirmation-ghae.png) -3. To the right of "{% data variables.product.prodname_secret_scanning_caps %}", click **Enable**. - ![Enable {% data variables.product.prodname_secret_scanning %} for your repository](/assets/images/enterprise/github-ae/repository/enable-secret-scanning-ghae.png) +1. 在可以启用 {% data variables.product.prodname_secret_scanning %} 之前,您需要先启用 {% data variables.product.prodname_GH_advanced_security %}。 在“{% data variables.product.prodname_GH_advanced_security %}”右边单击 **Enable(启用)**。 ![为仓库启用 {% data variables.product.prodname_GH_advanced_security %}](/assets/images/enterprise/github-ae/repository/enable-ghas-ghae.png) +2. 单击**为此仓库启用 {% data variables.product.prodname_GH_advanced_security %}** 以确认操作。 ![确认为仓库启用 {% data variables.product.prodname_GH_advanced_security %}](/assets/images/enterprise/github-ae/repository/enable-ghas-confirmation-ghae.png) +3. 在“{% data variables.product.prodname_secret_scanning_caps %}”右边单击 **Enable(启用)**。 ![为仓库启用 {% data variables.product.prodname_secret_scanning %}](/assets/images/enterprise/github-ae/repository/enable-secret-scanning-ghae.png) {% endif %} -## Excluding alerts from {% data variables.product.prodname_secret_scanning %} in {% ifversion fpt or ghec %}private {% endif %}repositories +## Excluding directories from {% data variables.product.prodname_secret_scanning_GHAS %} -You can use a *secret_scanning.yml* file to exclude directories from {% data variables.product.prodname_secret_scanning %}. For example, you can exclude directories that contain tests or randomly generated content. +您可以使用 *secret_scanning.yml* 文件从 {% data variables.product.prodname_secret_scanning %} 排除目录。 例如,可以排除包含测试或随机生成内容的目录。 {% data reusables.repositories.navigate-to-repo %} {% data reusables.files.add-file %} -3. In the file name field, type *.github/secret_scanning.yml*. -4. Under **Edit new file**, type `paths-ignore:` followed by the paths you want to exclude from {% data variables.product.prodname_secret_scanning %}. +3. 在文件名字段中,键入 *.github/secret_scanning.yml*。 +4. 在 **Edit new file(编辑新文件)**下,键入 `paths-ignore:`,后接您想要从 {% data variables.product.prodname_secret_scanning %} 排除的路径。 ``` yaml paths-ignore: - "foo/bar/*.js" ``` - - You can use special characters, such as `*` to filter paths. For more information about filter patterns, see "[Workflow syntax for GitHub Actions](/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet)." + + 您可以使用特殊字符(如 `*`)来过滤路径。 有关过滤模式的更多信息,请参阅“[GitHub Actions 的工作流程语法](/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet)”。 {% note %} - - **Notes:** - - If there are more than 1,000 entries in `paths-ignore`, {% data variables.product.prodname_secret_scanning %} will only exclude the first 1,000 directories from scans. - - If *secret_scanning.yml* is larger than 1 MB, {% data variables.product.prodname_secret_scanning %} will ignore the entire file. - + + **注意:** + - 如果 `paths-ignore` 中的条目超过 1,000 个,{% data variables.product.prodname_secret_scanning %} 只会从扫描中排除前 1,000 个目录。 + - 如果 *secret_scanning.yml* 大于 1 MB,{% data variables.product.prodname_secret_scanning %} 将忽略整个文件。 + {% endnote %} -You can also ignore individual alerts from {% data variables.product.prodname_secret_scanning %}. For more information, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/github/administering-a-repository/managing-alerts-from-secret-scanning#managing-secret-scanning-alerts)." +您也可以忽略来自 {% data variables.product.prodname_secret_scanning %} 的个别警报。 更多信息请参阅“[管理来自 {% data variables.product.prodname_secret_scanning %} 的警报](/github/administering-a-repository/managing-alerts-from-secret-scanning#managing-secret-scanning-alerts)”。 -## Further reading +## 延伸阅读 -- "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)" -{% ifversion fpt or ghes > 3.1 or ghae or ghec %}- "[Defining custom patterns for {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)"{% endif %} +- “[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)” +{% ifversion fpt or ghes > 3.1 or ghae or ghec %}- "[定义 {% data variables.product.prodname_secret_scanning %} 的自定义模式](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)"{% endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md b/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md index 8024c8b22a..27b018ac74 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md +++ b/translations/zh-CN/content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md @@ -1,7 +1,7 @@ --- -title: Defining custom patterns for secret scanning -shortTitle: Define custom patterns -intro: 'You can define custom patterns for {% data variables.product.prodname_secret_scanning %} in organizations and private repositories.' +title: 定义密钥扫描的自定义模式 +shortTitle: 定义自定义模式 +intro: 'You can extend {% data variables.product.prodname_secret_scanning_GHAS %} to detect secrets beyond the default patterns.' product: '{% data reusables.gated-features.secret-scanning %}' redirect_from: - /code-security/secret-security/defining-custom-patterns-for-secret-scanning @@ -18,49 +18,49 @@ topics: {% ifversion ghes < 3.3 or ghae %} {% note %} -**Note:** Custom patterns for {% data variables.product.prodname_secret_scanning %} is currently in beta and is subject to change. +**注意:**{% data variables.product.prodname_secret_scanning %} 的自定义模式目前处于测试阶段,可能会更改。 {% endnote %} {% endif %} -## About custom patterns for {% data variables.product.prodname_secret_scanning %} +## 关于 {% data variables.product.prodname_secret_scanning %} 的自定义模式 -{% data variables.product.company_short %} performs {% data variables.product.prodname_secret_scanning %} on {% ifversion fpt or ghec %}public and private{% endif %} repositories for secret patterns provided by {% data variables.product.company_short %} and {% data variables.product.company_short %} partners. {% data reusables.secret-scanning.partner-program-link %} For details of the supported secrets and service providers, see "[{% data variables.product.prodname_secret_scanning_caps %} partners](/code-security/secret-scanning/secret-scanning-partners)." +You can define custom patterns to identify secrets that are not detected by the default patterns supported by {% data variables.product.prodname_secret_scanning %}. 例如,您可能有一个属于您组织内部的密钥模式。 For details of the supported secrets and service providers, see "[{% data variables.product.prodname_secret_scanning_caps %} patterns](/code-security/secret-scanning/secret-scanning-patterns)." -However, there can be situations where you want to scan for other secret patterns in your {% ifversion fpt or ghec %}private{% endif %} repositories. For example, you might have a secret pattern that is internal to your organization. For these situations, you can define custom {% data variables.product.prodname_secret_scanning %} patterns in your enterprise, organization, or {% ifversion fpt or ghec %}private{% endif %} repository on {% data variables.product.product_name %}. You can define up to -{%- ifversion fpt or ghec or ghes > 3.3 %} 500 custom patterns for each organization or enterprise account, and up to 100 custom patterns per {% ifversion fpt or ghec %}private{% endif %} repository. -{%- elsif ghes = 3.3 %} 100 custom patterns for each organization or enterprise account, and 20 per repository. -{%- else %} 20 custom patterns for each organization or enterprise account, and per repository. +You can define custom patterns for your enterprise, organization, or repository. {% data variables.product.prodname_secret_scanning_caps %} supports up to +{%- ifversion fpt or ghec or ghes > 3.3 %} 500 custom patterns for each organization or enterprise account, and up to 100 custom patterns per repository. +{%- elsif ghes = 3.3 %} 每个组织或企业帐户有 100 个自定义模式,每个存储库有 20 个自定义模式。 +{%- else %} 每个组织或企业帐户有 20 个自定义模式,每个存储库有 个自定义模式。 {%- endif %} {% ifversion ghes < 3.3 or ghae %} {% note %} -**Note:** During the beta, there are some limitations when using custom patterns for {% data variables.product.prodname_secret_scanning %}: +**注意:** 在测试版中,对 {% data variables.product.prodname_secret_scanning %} 使用自定义模式时存在一些限制: -* There is no dry-run functionality. -* You cannot edit custom patterns after they're created. To change a pattern, you must delete it and recreate it. -* There is no API for creating, editing, or deleting custom patterns. However, results for custom patterns are returned in the [secret scanning alerts API](/rest/reference/secret-scanning). +* 没有干运行功能。 +* 创建自定义模式后,您无法对其进行编辑。 要更改模式,您必须将其删除并重新创建。 +* 没有用于创建、编辑或删除自定义模式的 API。 但是,自定义模式的结果在[密钥扫描警报 API](/rest/reference/secret-scanning) 中返回。 {% endnote %} {% endif %} -## Regular expression syntax for custom patterns +## 自定义模式的正则表达式语法 -Custom patterns for {% data variables.product.prodname_secret_scanning %} are specified as one or more regular expressions. +You can specify custom patterns for {% data variables.product.prodname_secret_scanning_GHAS %} as one or more regular expressions. -- **Secret format:** an expression that describes the format of the secret itself. -- **Before secret:** an expression that describes the characters that come before the secret. By default, this is set to `\A|[^0-9A-Za-z]` which means that the secret must be at the start of a line or be preceded by a non-alphanumeric character. -- **After secret:** an expression that describes the characters that come after the secret. By default, this is set to `\z|[^0-9A-Za-z]` which means that the secret must be followed by a new line or a non-alphanumeric character. -- **Additional match requirements:** one or more optional expressions that the secret itself must or must not match. +- **机密格式:**描述机密本身格式的表达式。 +- **机密之前:**描述机密之前的字符的表达式。 默认情况下,此值设置为 `\A|[^0-9A-Za-z]`,这意味着机密必须位于行首或前面有非字母数字字符。 +- **机密之后:**描述机密后面的字符的表达式。 默认情况下,此值设置为 `\z|[^0-9A-Za-z]`,这意味着机密后面必须跟有新行或非字母数字字符。 +- **其他匹配要求:**机密本身必须或不得匹配的一个或多个可选表达式。 -For simple tokens you will usually only need to specify a secret format. The other fields provide flexibility so that you can specify more complex secrets without creating complex regular expressions. For an example of a custom pattern, see "[Example of a custom pattern specified using additional requirements](#example-of-a-custom-pattern-specified-using-additional-requirements)" below. +对于简单令牌,通常只需指定机密格式。 其他字段提供了灵活性,以便您可以指定更复杂的机密,而无需创建复杂的正则表达式。 有关自定义模式的示例,请参阅下面的“[使用附加要求指定的自定义模式示例](#example-of-a-custom-pattern-specified-using-additional-requirements)”。 -{% data variables.product.prodname_secret_scanning_caps %} uses the [Hyperscan library](https://github.com/intel/hyperscan) and only supports Hyperscan regex constructs, which are a subset of PCRE syntax. Hyperscan option modifiers are not supported. For more information on Hyperscan pattern constructs, see "[Pattern support](http://intel.github.io/hyperscan/dev-reference/compilation.html#pattern-support)" in the Hyperscan documentation. +{% data variables.product.prodname_secret_scanning_caps %} 使用 [Hyperscan 库](https://github.com/intel/hyperscan),只支持 Hyperscan regex 结构(PCRE 语法的子集)。 不支持 Hyperscan 选项修饰符。 有关 Hyperscan 模式构造的更多信息,请参阅 Hyperscan 文档中的“[模式支持](http://intel.github.io/hyperscan/dev-reference/compilation.html#pattern-support)”。 -## Defining a custom pattern for a repository +## 定义仓库的自定义模式 -Before defining a custom pattern, you must ensure that {% data variables.product.prodname_secret_scanning %} is enabled on your repository. For more information, see "[Configuring {% data variables.product.prodname_secret_scanning %} for your repositories](/code-security/secret-security/configuring-secret-scanning-for-your-repositories)." +在定义自定义模式之前,您必须确保仓库上启用了 {% data variables.product.prodname_secret_scanning %}。 更多信息请参阅“[为仓库配置 {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/configuring-secret-scanning-for-your-repositories)”。 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} @@ -68,29 +68,28 @@ Before defining a custom pattern, you must ensure that {% data variables.product {% data reusables.repositories.navigate-to-ghas-settings %} {% data reusables.advanced-security.secret-scanning-new-custom-pattern %} {% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %}{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5499 %} -1. When you're ready to test your new custom pattern, to identify matches in the repository without creating alerts, click **Save and dry run**. -1. When the dry run finishes, you'll see a sample of results (up to 1000) from the repository. Review the results and identify any false positive results. - ![Screenshot showing results from dry run](/assets/images/help/repository/secret-scanning-publish-pattern.png) -1. Edit the new custom pattern to fix any problems with the results, then click **Save and dry run** to test your changes. +1. 当您准备好测试新的自定义模式时,要识别存储库中的匹配项而不创建警报,请单击 **Save and dry run(保存并空运行)**。 +1. 空运行完成后,您将看到存储库中的结果示例(最多 1000 个)。 查看结果并确定任何误报结果。 ![显示空运行结果的屏幕截图](/assets/images/help/repository/secret-scanning-publish-pattern.png) +1. 编辑新的自定义模式以修复结果的任何问题,然后单击 **Save and dry run(保存并空运行)**以测试更改。 {% indented_data_reference reusables.secret-scanning.beta-dry-runs spaces=3 %} {% endif %} {% data reusables.advanced-security.secret-scanning-create-custom-pattern %} -After your pattern is created, {% data reusables.secret-scanning.secret-scanning-process %} For more information on viewing {% data variables.product.prodname_secret_scanning %} alerts, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." +在模式创建后,{% data reusables.secret-scanning.secret-scanning-process %}有关查看 {% data variables.product.prodname_secret_scanning %} 警报的详细信息,请参阅“[管理来自 {% data variables.product.prodname_secret_scanning %} 的警报](/code-security/secret-security/managing-alerts-from-secret-scanning)”。 -### Example of a custom pattern specified using additional requirements +### 使用其他要求指定的自定义模式示例 -A company has an internal token with five characteristics. They use the different fields to specify how to identify tokens as follows: +公司具有具有五个特征的内部令牌。 它们使用不同的字段来指定如何标识令牌,如下所示: -| **Characteristic** | **Field and regular expression** | -|----------------|------------------------------| -| Length between 5 and 10 characters | Secret format: `[$#%@AA-Za-z0-9]{5,10}` | -| Does not end in a `.` | After secret: `[^\.]` | -| Contains numbers and uppercase letters | Additional requirements: secret must match `[A-Z]` and `[0-9]` | -| Does not include more than one lowercase letter in a row | Additional requirements: secret must not match `[a-z]{2,}` | -| Contains one of `$%@!` | Additional requirements: secret must match `[$%@!]` | +| **特征** | **字段和正则表达式** | +| ----------------- | ------------------------------- | +| 长度介于 5 到 10 个字符之间 | 机密格式:`[$#%@AA-Za-z0-9]{5,10}` | +| 不会以 `.`结束。 | 机密后面:`[^\.]` | +| 包含数字和大写字母 | 其他要求:机密必须与 `[A-Z]` 和 `[0-9]` 匹配 | +| 一行中不包含多个小写字母 | 其他要求:机密不得与 `[a-z]{2,}` 匹配 | +| 包含 `$%@!` 之一 | 其他要求:机密必须与 `[$%@!]` 匹配 | -These tokens would match the custom pattern described above: +这些令牌将与上述自定义模式匹配: ``` a9@AAfT! # Secret string match: a9@AAfT @@ -98,7 +97,7 @@ ee95GG@ZA942@aa # Secret string match: @ZA942@a a9@AA!ee9 # Secret string match: a9@AA ``` -These strings would not match the custom pattern described above: +这些字符串与上述自定义模式不匹配: ``` a9@AA.! @@ -107,13 +106,13 @@ aa9@AA!ee9 aAAAe9 ``` -## Defining a custom pattern for an organization +## 定义组织的自定义模式 -Before defining a custom pattern, you must ensure that you enable {% data variables.product.prodname_secret_scanning %} for the {% ifversion fpt or ghec %}private{% endif %} repositories that you want to scan in your organization. To enable {% data variables.product.prodname_secret_scanning %} on all {% ifversion fpt or ghec %}private{% endif %} repositories in your organization, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." +Before defining a custom pattern, you must ensure that you enable {% data variables.product.prodname_secret_scanning %} for the repositories that you want to scan in your organization. To enable {% data variables.product.prodname_secret_scanning %} on all repositories in your organization, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)." {% note %} -**Note:** As there is no dry-run functionality, we recommend that you test your custom patterns in a repository before defining them for your entire organization. That way, you can avoid creating excess false-positive {% data variables.product.prodname_secret_scanning %} alerts. +**注意:** 由于没有试运行功能,我们建议您先在存储库中测试自定义模式,然后再为整个组织定义它们。 这样,可以避免创建过多的误报 {% data variables.product.prodname_secret_scanning %} 警报。 {% endnote %} @@ -125,19 +124,19 @@ Before defining a custom pattern, you must ensure that you enable {% data variab {% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %} {% data reusables.advanced-security.secret-scanning-create-custom-pattern %} -After your pattern is created, {% data variables.product.prodname_secret_scanning %} scans for any secrets in {% ifversion fpt or ghec %}private{% endif %} repositories in your organization, including their entire Git history on all branches. Organization owners and repository administrators will be alerted to any secrets found, and can review the alert in the repository where the secret is found. For more information on viewing {% data variables.product.prodname_secret_scanning %} alerts, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." +After your pattern is created, {% data variables.product.prodname_secret_scanning %} scans for any secrets in repositories in your organization, including their entire Git history on all branches. Organization owners and repository administrators will be alerted to any secrets found and can review the alert in the repository where the secret is found. 有关查看 {% data variables.product.prodname_secret_scanning %} 警报的详细信息,请参阅“[管理来自 {% data variables.product.prodname_secret_scanning %} 的警报](/code-security/secret-security/managing-alerts-from-secret-scanning)”。 -## Defining a custom pattern for an enterprise account +## 为企业帐户定义自定义模式 {% ifversion fpt or ghec or ghes %} -Before defining a custom pattern, you must ensure that you enable secret scanning for your enterprise account. For more information, see "[Enabling {% data variables.product.prodname_GH_advanced_security %} for your enterprise]({% ifversion fpt or ghec %}/enterprise-server@latest/{% endif %}/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise)." +在定义自定义模式之前,必须确保为企业帐户启用机密扫描。 更多信息请参阅“[为企业启用 {% data variables.product.prodname_GH_advanced_security %}]({% ifversion fpt or ghec %}/enterprise-server@latest/{% endif %}/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise)”。 {% endif %} {% note %} -**Note:** As there is no dry-run functionality, we recommend that you test your custom patterns in a repository before defining them for your entire enterprise. That way, you can avoid creating excess false-positive {% data variables.product.prodname_secret_scanning %} alerts. +**注意:** 由于没有试运行功能,我们建议您先在存储库中测试自定义模式,然后再为整个企业定义它们。 这样,可以避免创建过多的误报 {% data variables.product.prodname_secret_scanning %} 警报。 {% endnote %} @@ -145,36 +144,36 @@ Before defining a custom pattern, you must ensure that you enable secret scannin {% data reusables.enterprise-accounts.policies-tab %} {% data reusables.enterprise-accounts.advanced-security-policies %} {% data reusables.enterprise-accounts.advanced-security-security-features %} -1. Under "Secret scanning custom patterns", click {% ifversion ghes = 3.2 %}**New custom pattern**{% else %}**New pattern**{% endif %}. +1. 在“Secret scanning custom patterns(机密扫描自定义模式)”下,单击 {% ifversion ghes = 3.2 %}**New custom pattern(新建自定义模式)**{% else %}**New pattern(新建模式)**{% endif %}。 {% data reusables.advanced-security.secret-scanning-add-custom-pattern-details %} {% data reusables.advanced-security.secret-scanning-create-custom-pattern %} -After your pattern is created, {% data variables.product.prodname_secret_scanning %} scans for any secrets in {% ifversion fpt or ghec %}private{% endif %} repositories within your enterprise's organizations with {% data variables.product.prodname_GH_advanced_security %} enabled, including their entire Git history on all branches. Organization owners and repository administrators will be alerted to any secrets found, and can review the alert in the repository where the secret is found. For more information on viewing {% data variables.product.prodname_secret_scanning %} alerts, see "[Managing alerts from {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/managing-alerts-from-secret-scanning)." +After your pattern is created, {% data variables.product.prodname_secret_scanning %} scans for any secrets in repositories within your enterprise's organizations with {% data variables.product.prodname_GH_advanced_security %} enabled, including their entire Git history on all branches. 组织所有者和仓库管理员将会收到发现的任何密钥警报通知,并且可以审查发现密钥的仓库中的警报。 有关查看 {% data variables.product.prodname_secret_scanning %} 警报的详细信息,请参阅“[管理来自 {% data variables.product.prodname_secret_scanning %} 的警报](/code-security/secret-security/managing-alerts-from-secret-scanning)”。 {% ifversion fpt or ghes > 3.2 or ghec or ghae %} -## Editing a custom pattern +## 编辑自定义模式 -When you save a change to a custom pattern, this closes all the {% data variables.product.prodname_secret_scanning %} alerts that were created using the previous version of the pattern. -1. Navigate to where the custom pattern was created. A custom pattern can be created in a repository, organization, or enterprise account. - * For a repository or organization, display the "Security & analysis" settings for the repository or organization where the custom pattern was created. For more information, see "[Defining a custom pattern for a repository](#defining-a-custom-pattern-for-a-repository)" or "[Defining a custom pattern for an organization](#defining-a-custom-pattern-for-an-organization)" above. - * For an enterprise, under "Policies" display the "Advanced Security" area, and then click **Security features**. For more information, see "[Defining a custom pattern for an enterprise account](#defining-a-custom-pattern-for-an-enterprise-account)" above. -2. Under "{% data variables.product.prodname_secret_scanning_caps %}", to the right of the custom pattern you want to edit, click {% octicon "pencil" aria-label="The edit icon" %}. -3. When you have reviewed and tested your changes, click **Save changes**. +将更改保存到自定义模式时,这将关闭使用该模式的先前版本创建的所有 {% data variables.product.prodname_secret_scanning %} 警报。 +1. 导航到创建自定义模式的位置。 可以在存储库、组织或企业帐户中创建自定义模式。 + * 对于存储库或组织,显示创建自定义模式的存储库或组织的“安全和分析”设置。 更多信息请参阅“[定义仓库的自定义模式](#defining-a-custom-pattern-for-a-repository)”或“[定义组织的自定义模式](#defining-a-custom-pattern-for-an-organization)”。 + * 对于企业,在“Policies(策略)”下显示“Advanced Security(高级安全性)”区域,然后单击 **Security features(安全功能)**。 更多信息请参阅上面的“[为企业帐户定义自定义模式](#defining-a-custom-pattern-for-an-enterprise-account)”。 +2. 在“{% data variables.product.prodname_secret_scanning_caps %}”下要编辑的自定义模式的右侧,单击 {% octicon "pencil" aria-label="The edit icon" %}。 +3. 查看并测试更改后,单击 **Save changes(保存更改)**。 {% endif %} -## Removing a custom pattern +## 删除自定义模式 -1. Navigate to where the custom pattern was created. A custom pattern can be created in a repository, organization, or enterprise account. +1. 导航到创建自定义模式的位置。 可以在存储库、组织或企业帐户中创建自定义模式。 - * For a repository or organization, display the "Security & analysis" settings for the repository or organization where the custom pattern was created. For more information, see "[Defining a custom pattern for a repository](#defining-a-custom-pattern-for-a-repository)" or "[Defining a custom pattern for an organization](#defining-a-custom-pattern-for-an-organization)" above. - * For an enterprise, under "Policies" display the "Advanced Security" area, and then click **Security features**. For more information, see "[Defining a custom pattern for an enterprise account](#defining-a-custom-pattern-for-an-enterprise-account)" above. + * 对于存储库或组织,显示创建自定义模式的存储库或组织的“安全和分析”设置。 更多信息请参阅“[定义仓库的自定义模式](#defining-a-custom-pattern-for-a-repository)”或“[定义组织的自定义模式](#defining-a-custom-pattern-for-an-organization)”。 + * 对于企业,在“Policies(策略)”下显示“Advanced Security(高级安全性)”区域,然后单击 **Security features(安全功能)**。 更多信息请参阅上面的“[为企业帐户定义自定义模式](#defining-a-custom-pattern-for-an-enterprise-account)”。 {%- ifversion fpt or ghes > 3.2 or ghae %} -1. To the right of the custom pattern you want to remove, click {% octicon "trash" aria-label="The trash icon" %}. -1. Review the confirmation, and select a method for dealing with any open alerts relating to the custom pattern. -1. Click **Yes, delete this pattern**. +1. 在要删除的自定义模式的右侧,单击 {% octicon "trash" aria-label="The trash icon" %}。 +1. 查看确认,并选择一种方法来处理与自定义模式相关的任何打开的警报。 +1. 单击 **Yes, delete this pattern(是,删除此模式)**。 - ![Confirming deletion of a custom {% data variables.product.prodname_secret_scanning %} pattern ](/assets/images/help/repository/secret-scanning-confirm-deletion-custom-pattern.png) + ![确认删除自定义 {% data variables.product.prodname_secret_scanning %} 模式 ](/assets/images/help/repository/secret-scanning-confirm-deletion-custom-pattern.png) {%- elsif ghes = 3.2 %} -1. To the right of the custom pattern you want to remove, click **Remove**. -1. Review the confirmation, and click **Remove custom pattern**. +1. 在要删除的自定义模式的右侧,单击 **Remove(删除)**。 +1. 查看确认并单击 **Remove custom pattern(删除自定义模式)**。 {%- endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/index.md b/translations/zh-CN/content/code-security/secret-scanning/index.md index 7574de85f1..844b2c6208 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/index.md +++ b/translations/zh-CN/content/code-security/secret-scanning/index.md @@ -19,6 +19,6 @@ children: - /configuring-secret-scanning-for-your-repositories - /defining-custom-patterns-for-secret-scanning - /managing-alerts-from-secret-scanning - - /secret-scanning-partners + - /secret-scanning-patterns --- diff --git a/translations/zh-CN/content/code-security/secret-scanning/managing-alerts-from-secret-scanning.md b/translations/zh-CN/content/code-security/secret-scanning/managing-alerts-from-secret-scanning.md index f1fa4f1762..3a86735e98 100644 --- a/translations/zh-CN/content/code-security/secret-scanning/managing-alerts-from-secret-scanning.md +++ b/translations/zh-CN/content/code-security/secret-scanning/managing-alerts-from-secret-scanning.md @@ -22,6 +22,14 @@ shortTitle: 管理秘密警报 ## 管理 {% data variables.product.prodname_secret_scanning %} 警报 +{% ifversion ghec %} +{% note %} + +**Note:** Alerts are created only for repositories with {% data variables.product.prodname_secret_scanning_GHAS %} enabled. Secrets found in public repositories using the free {% data variables.product.prodname_secret_scanning_partner%} service are reported directly to the partner, without creating an alert. + +{% endnote %} +{% endif %} + {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} 1. 在左侧边栏中,单击 **Secret scanning alerts(机密扫描警报)**。 @@ -56,6 +64,14 @@ shortTitle: 管理秘密警报 - 对于受到威胁的 {% data variables.product.prodname_dotcom %} 个人访问令牌,请删除该令牌,创建新令牌,然后更新使用旧令牌的任何服务。 更多信息请参阅“[创建用于命令行的个人访问令牌](/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)。” - 对于所有其他密码,请先确认提交到 {% data variables.product.product_name %} 的密码是有效的。 如果有效,请创建新密码,更新使用旧密码的任何服务,然后删除旧密码。 +{% ifversion ghec %} +{% note %} + +**Note:** If a secret is detected in a public repository on {% data variables.product.prodname_dotcom_the_website %} and the secret also matches a partner pattern, an alert is generated and the potential secret is reported to the service provider. For details of partner patterns, see "[Supported secrets for partner patterns](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-partner-patterns)." + +{% endnote %} +{% endif %} + {% ifversion fpt or ghes > 3.1 or ghae-issue-4910 or ghec %} ## 配置 {% data variables.product.prodname_secret_scanning %} 警报的通知 diff --git a/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-partners.md b/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-partners.md deleted file mode 100644 index 0b219bc8e3..0000000000 --- a/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-partners.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: Secret scanning partners -intro: 'Lists of supported secrets and the partners that {% data variables.product.company_short %} works with to prevent fraudulent use of secrets that were committed accidentally.' -product: '{% data reusables.gated-features.secret-scanning %}' -versions: - fpt: '*' - ghes: '*' - ghae: '*' - ghec: '*' -type: reference -topics: - - Secret scanning - - Advanced Security ---- - -{% data reusables.secret-scanning.beta %} -{% data reusables.secret-scanning.enterprise-enable-secret-scanning %} - -{% ifversion fpt or ghec %} -## List of supported secrets for public repositories - -{% data variables.product.product_name %} 当前会扫描公共仓库,查找以下服务提供商发布的密码。 - -{% data reusables.secret-scanning.partner-secret-list-public-repo %} -{% endif %} - -{% ifversion fpt %} -Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_GH_advanced_security %} can run {% data variables.product.prodname_secret_scanning %} on private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/secret-scanning/secret-scanning-partners). -{% endif %} - -{% ifversion ghec or ghae or ghes %} -## List of supported secrets {% ifversion ghec %}for private repositories{% endif %} - -{% ifversion ghes > 3.1 or ghae or ghec %} -{% note %} - -**Note:** You can also define custom {% data variables.product.prodname_secret_scanning %} patterns that only apply to your repository or organization. 更多信息请参阅“[定义 {% data variables.product.prodname_secret_scanning %} 的自定义模式](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)”。 - -{% endnote %} -{% endif %} - -{% data variables.product.prodname_dotcom %} 目前扫描{% ifversion ghec %}私有{% endif %}仓库,以检查由以下服务提供者颁发的密码。 - -{% data reusables.secret-scanning.partner-secret-list-private-repo %} -{% endif %} - -## 延伸阅读 - -- "[保护您的仓库](/code-security/getting-started/securing-your-repository)" -- "[保护帐户和数据安全](/github/authenticating-to-github/keeping-your-account-and-data-secure)" -{%- ifversion fpt or ghec %} -- "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/developers/overview/secret-scanning-partner-program)" -{%- else %} -- "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/free-pro-team@latest/developers/overview/secret-scanning-partner-program)" in the {% data variables.product.prodname_ghe_cloud %} documentation -{% endif %} diff --git a/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-patterns.md b/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-patterns.md new file mode 100644 index 0000000000..6dbaf24e09 --- /dev/null +++ b/translations/zh-CN/content/code-security/secret-scanning/secret-scanning-patterns.md @@ -0,0 +1,64 @@ +--- +title: Secret scanning patterns +intro: 'Lists of supported secrets and the partners that {% data variables.product.company_short %} works with to prevent fraudulent use of secrets that were committed accidentally.' +product: '{% data reusables.gated-features.secret-scanning-partner %}' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' +type: reference +topics: + - Secret scanning + - Advanced Security +redirect_from: + - /code-security/secret-scanning/secret-scanning-partners +--- + +{% data reusables.secret-scanning.beta %} +{% data reusables.secret-scanning.enterprise-enable-secret-scanning %} + +{% ifversion fpt or ghec %} +## About {% data variables.product.prodname_secret_scanning %} patterns + +{% data variables.product.product_name %} maintains two different sets of {% data variables.product.prodname_secret_scanning %} patterns: + +1. **Partner patterns.** Used to detect potential secrets in all public repositories. For details, see "[Supported secrets for partner patterns](#supported-secrets-for-partner-patterns)." +2. **Advanced security patterns.** Used to detect potential secrets in repositories with {% data variables.product.prodname_secret_scanning %} enabled. {% ifversion ghec %} For details, see "[Supported secrets for advanced security](#supported-secrets-for-advanced-security)."{% endif %} + +{% ifversion fpt %} +Organizations using {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_GH_advanced_security %} can enable {% data variables.product.prodname_secret_scanning_GHAS %} on their repositories. For details of these patterns, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security). +{% endif %} + +## Supported secrets for partner patterns + +{% data variables.product.product_name %} 当前会扫描公共仓库,查找以下服务提供商发布的密码。 有关 {% data variables.product.prodname_secret_scanning_partner %} 的更多信息,请参阅“[关于 {% data variables.product.prodname_secret_scanning_partner %}](/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-partner-patterns)”。 + +{% data reusables.secret-scanning.partner-secret-list-public-repo %} +{% endif %} + +{% ifversion ghec or ghae or ghes %} +## Supported secrets{% ifversion ghec %} for advanced security{% endif %} + +When {% data variables.product.prodname_secret_scanning_GHAS %} is enabled, {% data variables.product.prodname_dotcom %} scans for secrets issued by the following service providers. {% ifversion ghec %}For more information about {% data variables.product.prodname_secret_scanning_GHAS %}, see "[About {% data variables.product.prodname_secret_scanning_GHAS %}](/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-advanced-security)."{% endif %} + +{% ifversion ghes > 3.1 or ghae or ghec %} +{% note %} + +**Note:** You can also define custom {% data variables.product.prodname_secret_scanning %} patterns for your repository, organization, or enterprise. 更多信息请参阅“[定义 {% data variables.product.prodname_secret_scanning %} 的自定义模式](/code-security/secret-security/defining-custom-patterns-for-secret-scanning)”。 + +{% endnote %} +{% endif %} + +{% data reusables.secret-scanning.partner-secret-list-private-repo %} +{% endif %} + +## 延伸阅读 + +- "[保护您的仓库](/code-security/getting-started/securing-your-repository)" +- "[保护帐户和数据安全](/github/authenticating-to-github/keeping-your-account-and-data-secure)" +{%- ifversion fpt or ghec %} +- "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/developers/overview/secret-scanning-partner-program)" +{%- else %} +- "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/free-pro-team@latest/developers/overview/secret-scanning-partner-program)" in the {% data variables.product.prodname_ghe_cloud %} documentation +{% endif %} diff --git a/translations/zh-CN/content/code-security/security-overview/filtering-alerts-in-the-security-overview.md b/translations/zh-CN/content/code-security/security-overview/filtering-alerts-in-the-security-overview.md index 933ce0941e..febd414862 100644 --- a/translations/zh-CN/content/code-security/security-overview/filtering-alerts-in-the-security-overview.md +++ b/translations/zh-CN/content/code-security/security-overview/filtering-alerts-in-the-security-overview.md @@ -124,7 +124,7 @@ Available in the secret scanning alert views. | 限定符 | 描述 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `secret-type:SERVICE_PROVIDER` | Displays alerts for the specified secret and provider. For more information, see "[{% data variables.product.prodname_secret_scanning_caps %} partners](/code-security/secret-scanning/secret-scanning-partners)." | +| `secret-type:SERVICE_PROVIDER` | Displays alerts for the specified secret and provider. For more information, see "[{% data variables.product.prodname_secret_scanning_caps %} patterns](/code-security/secret-scanning/secret-scanning-patterns)." | | `secret-type:CUSTOM-PATTERN` | Displays alerts for secrets matching the specified custom pattern. | | {% ifversion not fpt %}For more information, see "[Defining custom patterns for secret scanning](/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning)."{% endif %} | | @@ -134,4 +134,4 @@ Available in the secret scanning alert views. | 限定符 | 描述 | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `provider:PROVIDER_NAME` | Displays alerts for all secrets issues by the specified provider. For more information, see "[{% data variables.product.prodname_secret_scanning_caps %} partners](/code-security/secret-scanning/secret-scanning-partners)." | +| `provider:PROVIDER_NAME` | Displays alerts for all secrets issues by the specified provider. For more information, see "[{% data variables.product.prodname_secret_scanning_caps %} patterns](/code-security/secret-scanning/secret-scanning-patterns)." | diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md index 9a41ccbd2a..52b0aa9c64 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies.md @@ -67,7 +67,7 @@ For information about access requirements for actions related to {% data variabl {% data variables.product.product_name %} starts generating the dependency graph immediately and generates alerts for any vulnerable dependencies as soon as they are identified. The graph is usually populated within minutes but this may take longer for repositories with many dependencies. For more information, see "[Managing data use settings for your private repository](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository)." {% endif %} -When {% data variables.product.product_name %} identifies a vulnerable dependency, we generate a {% data variables.product.prodname_dependabot %} alert and display it {% ifversion fpt or ghec or ghes > 3.0 %} on the Security tab for the repository and{% endif %} in the repository's dependency graph. The alert includes {% ifversion fpt or ghec or ghes > 3.0 %}a link to the affected file in the project, and {% endif %}information about a fixed version. {% data variables.product.product_name %} may also notify the maintainers of affected repositories about the new alert according to their notification preferences. For more information, see "[Configuring notifications for vulnerable dependencies](/code-security/supply-chain-security/configuring-notifications-for-vulnerable-dependencies)." +When {% data variables.product.product_name %} identifies a vulnerable dependency, we generate a {% data variables.product.prodname_dependabot %} alert and display it {% ifversion fpt or ghec or ghes %} on the Security tab for the repository and{% endif %} in the repository's dependency graph. The alert includes {% ifversion fpt or ghec or ghes %}a link to the affected file in the project, and {% endif %}information about a fixed version. {% data variables.product.product_name %} may also notify the maintainers of affected repositories about the new alert according to their notification preferences. For more information, see "[Configuring notifications for vulnerable dependencies](/code-security/supply-chain-security/configuring-notifications-for-vulnerable-dependencies)." {% ifversion fpt or ghec or ghes > 3.2 %} For repositories where {% data variables.product.prodname_dependabot_security_updates %} are enabled, the alert may also contain a link to a pull request to update the manifest or lock file to the minimum version that resolves the vulnerability. For more information, see "[About {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)." diff --git a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates.md b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates.md index 4da8b0f52d..40c479eb51 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/configuring-dependabot-security-updates.md @@ -68,8 +68,8 @@ You can also enable or disable {% data variables.product.prodname_dependabot_sec {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -1. Under "Configure security and analysis features", to the right of "{% data variables.product.prodname_dependabot %} security updates", click **Enable** or **Disable**. - {% ifversion fpt or ghec %}!["Configure security and analysis features" section with button to enable {% data variables.product.prodname_dependabot_security_updates %}](/assets/images/help/repository/enable-dependabot-security-updates-button.png){% else %}!["Configure security and analysis features" section with button to enable {% data variables.product.prodname_dependabot_security_updates %}](/assets/images/enterprise/3.3/repository/security-and-analysis-disable-or-enable-ghes.png){% endif %} +1. Under "Code security and analysis", to the right of "{% data variables.product.prodname_dependabot %} security updates", click **Enable** or **Disable**. + {% ifversion fpt or ghec %}!["Code security and analysis" section with button to enable {% data variables.product.prodname_dependabot_security_updates %}](/assets/images/help/repository/enable-dependabot-security-updates-button.png){% else %}!["Code security and analysis" section with button to enable {% data variables.product.prodname_dependabot_security_updates %}](/assets/images/enterprise/3.3/repository/security-and-analysis-disable-or-enable-ghes.png){% endif %} ## Further reading diff --git a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md index 94b9b781ce..268a46a98b 100644 --- a/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md +++ b/translations/zh-CN/content/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository.md @@ -96,7 +96,7 @@ shortTitle: 探索依赖项 {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. 在“Configure security and analysis features(配置安全和分析功能)”下,单击“Used by counter(使用者计数)”部分中的下拉菜单并选择一个包。 ![选择"使用者"包](/assets/images/help/repository/choose-used-by-package.png) +4. Under "Code security and analysis", click the drop-down menu in the "Used by counter" section and choose a package. ![选择"使用者"包](/assets/images/help/repository/choose-used-by-package.png) {% endif %} diff --git a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization.md b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization.md index 4525cbc769..c98da1fdfd 100644 --- a/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization.md +++ b/translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization.md @@ -27,21 +27,21 @@ topics: 您可以为组织或存储库中的代码空间设置使用限制。 此限制适用于 {% data variables.product.prodname_codespaces %} 的计算和存储使用情况: -- **计算分钟数:**计算使用率是按所有 {% data variables.product.prodname_codespaces %} 实例在活动期间使用的实际分钟数计算的。 这些总计每天报告给计费服务,并按月计费。 You can set a spending limit for {% data variables.product.prodname_codespaces %} usage in your organization. For more information, see "[Managing spending limits for Codespaces](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)." +- **计算分钟数:**计算使用率是按所有 {% data variables.product.prodname_codespaces %} 实例在活动期间使用的实际分钟数计算的。 这些总计每天报告给计费服务,并按月计费。 您可以为组织中 {% data variables.product.prodname_codespaces %} 使用设置支出限制。 更多信息请参阅“[管理代码空间的支出限额](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)”。 -- **Storage usage:** For {% data variables.product.prodname_codespaces %} billing purposes, this includes all storage used by all codespaces in your account. This includes all used by the codespaces, such as cloned repositories, configuration files, and extensions, among others. 这些总计每天报告给计费服务,并按月计费。 到月底,{% data variables.product.prodname_dotcom %} 会将您的存储量舍入到最接近的 MB。 To check how many compute minutes and storage GB have been used by {% data variables.product.prodname_codespaces %}, see "[Viewing your Codespaces usage"](/billing/managing-billing-for-github-codespaces/viewing-your-codespaces-usage)." +- **存储使用情况:** 出于 {% data variables.product.prodname_codespaces %} 计费目的,这包括您帐户中所有代码空间使用的所有存储空间。 这包括代码空间使用的所有内容,例如克隆的存储库、配置文件和扩展等。 这些总计每天报告给计费服务,并按月计费。 到月底,{% data variables.product.prodname_dotcom %} 会将您的存储量舍入到最接近的 MB。 要检查 {% data variables.product.prodname_codespaces %} 已使用多少计算分钟数和存储 GB,请参阅“[查看代码空间使用情况](/billing/managing-billing-for-github-codespaces/viewing-your-codespaces-usage)”。 -## Disabling or limiting {% data variables.product.prodname_codespaces %} +## 禁用或限制 {% data variables.product.prodname_codespaces %} -You can disable the use of {% data variables.product.prodname_codespaces %} in your organization or repository. For more information, see "[Managing repository access for your organization's codespaces](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)." +您可以在组织或存储库中禁用 {% data variables.product.prodname_codespaces %}。 更多信息请参阅“[管理组织的代码空间的存储库访问](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)”。 -You can also limit the individual users who can use {% data variables.product.prodname_codespaces %}. For more information, see "[Managing user permissions for your organization](/codespaces/managing-codespaces-for-your-organization/managing-user-permissions-for-your-organization)." +您还可以限制可以使用 {% data variables.product.prodname_codespaces %} 的单个用户。 更多信息请参阅“[管理组织的用户权限](/codespaces/managing-codespaces-for-your-organization/managing-user-permissions-for-your-organization)”。 -You can limit the choice of machine types that are available for repositories owned by your organization. This allows you to prevent people using overly resourced machines for their codespaces. For more information, see "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)." +您可以限制可用于组织拥有的存储库的计算机类型选择。 这使您可以防止人们使用资源过多的计算机作为其代码空间。 For more information, see "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)." -## Deleting unused codespaces +## 删除未使用的代码空间 -Your users can delete their codespaces in https://github.com/codespaces and from within Visual Studio Code. To reduce the size of a codespace, users can manually delete files using the terminal or from within Visual Studio Code. +您的用户可以在 https://github.com/codespaces 和 Visual Studio Code 中删除其代码空间。 要减小代码空间的大小,用户可以使用终端或从 Visual Studio Code 中手动删除文件。 {% note %} diff --git a/translations/zh-CN/content/codespaces/prebuilding-your-codespaces/index.md b/translations/zh-CN/content/codespaces/prebuilding-your-codespaces/index.md index 5f3bdca59a..e726b2f76f 100644 --- a/translations/zh-CN/content/codespaces/prebuilding-your-codespaces/index.md +++ b/translations/zh-CN/content/codespaces/prebuilding-your-codespaces/index.md @@ -16,4 +16,4 @@ children: - /testing-dev-container-changes --- -{% data reusables.codespaces.prebuilds-beta-note %} \ No newline at end of file +{% data reusables.codespaces.prebuilds-beta-note %} diff --git a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md index 0708152ffb..7f350772be 100644 --- a/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md +++ b/translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-python-project-for-codespaces.md @@ -1,6 +1,6 @@ --- -title: Setting up your Python project for Codespaces -shortTitle: Setting up your Python project +title: 为代码空间设置 Python 项目 +shortTitle: 设置 Python 项目 intro: '通过创建自定义开发容器,开始在 {% data variables.product.prodname_codespaces %} 中使用 Python 项目。' product: '{% data reusables.gated-features.codespaces %}' versions: diff --git a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-creation-and-deletion-of-codespaces.md b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-creation-and-deletion-of-codespaces.md index 2f41b3a54e..ab9962c323 100644 --- a/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-creation-and-deletion-of-codespaces.md +++ b/translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-creation-and-deletion-of-codespaces.md @@ -1,6 +1,6 @@ --- -title: Troubleshooting creation and deletion of Codespaces -intro: 'This article provides troubleshooting steps for common issues you may experience when creating or deleting a codespace, including storage and configuration issues.' +title: 代码空间的创建和删除疑难解答 +intro: 本文提供了在创建或删除代码空间时可能遇到的常见问题(包括存储和配置问题)的疑难解答步骤。 product: '{% data reusables.gated-features.codespaces %}' versions: fpt: '*' @@ -8,42 +8,42 @@ versions: type: reference topics: - Codespaces -shortTitle: Creation and deletion +shortTitle: 创建和删除 --- -## Creating codespaces +## 创建代码空间 -### No access to create a codespace -{% data variables.product.prodname_codespaces %} are not available for all repositories. If the "Open with Codespaces" button is missing, {% data variables.product.prodname_codespaces %} may not be available for that repository. 更多信息请参阅“[创建代码空间](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)”。 +### 没有创建代码空间的权限 +{% data variables.product.prodname_codespaces %} 并非对所有存储库都可用。 如果缺少“Open with Codespaces(使用 Codespaces 打开)”按钮,则 {% data variables.product.prodname_codespaces %} 可能不适用于该存储库。 更多信息请参阅“[创建代码空间](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)”。 -If you believe your organization has [enabled {% data variables.product.prodname_codespaces %}](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization#about-enabling-codespaces-for-your-organization), make sure that an organization owner or billing manager has set the spending limit for {% data variables.product.prodname_codespaces %}. 更多信息请参阅“[管理 {% data variables.product.prodname_codespaces %} 的支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)”。 +如果您认为您的组织已启用 [ {% data variables.product.prodname_codespaces %}](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization#about-enabling-codespaces-for-your-organization),请确保组织所有者或帐单管理员已设置 {% data variables.product.prodname_codespaces %} 的支出限制。 更多信息请参阅“[管理 {% data variables.product.prodname_codespaces %} 的支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)”。 -### Codespace does not open when created +### 代码空间在创建时未打开 -If you create a codespace and it does not open: +如果创建了代码空间,但未打开: -1. Try reloading the page in case there was a caching or reporting problem. -2. Go to your {% data variables.product.prodname_codespaces %} page: https://github.com/codespaces and check whether the new codespace is listed there. The process may have successfully created the codespace but failed to report back to your browser. If the new codespace is listed, you can open it directly from that page. -3. Retry creating the codespace for the repository to rule out a transient communication failure. +1. 如果出现缓存或报告问题,请尝试重新加载页面。 +2. 转到 {% data variables.product.prodname_codespaces %} 页面:https://github.com/codespaces,检查新代码空间是否在此处列出。 该过程可能已成功创建代码空间,但未向浏览器报告。 如果列出了新的代码空间,则可以直接从该页打开它。 +3. 重试为存储库创建代码空间,以排除暂时性通信故障。 -If you still cannot create a codespace for a repository where {% data variables.product.prodname_codespaces %} are available, {% data reusables.codespaces.contact-support %} +如果仍然无法为其中 {% data variables.product.prodname_codespaces %} 可用的存储库创建代码空间,请 {% data reusables.codespaces.contact-support %} -## Deleting codespaces +## 删除代码空间 -The owner of a codespace has full control over it and only they can delete their codespaces. You cannot delete a codespace created by another user. +代码空间的所有者对其拥有完全控制权限,只有他们才能删除其代码空间。 您不能删除由其他用户创建的代码间。 -## Container storage +## 容器存储 -创建代码空间时,存储量是有限的,随着时间的推移,可能需要释放空间。 Try running any of the following commands in the {% data variables.product.prodname_codespaces %} terminal to free up storage space. +创建代码空间时,存储量是有限的,随着时间的推移,可能需要释放空间。 尝试在 {% data variables.product.prodname_codespaces %} 终端中运行以下任一命令以释放存储空间。 -- Remove packages that are no longer used by using `sudo apt autoremove`. +- 使用 `sudo apt autoremove` 删除不再使用的包。 - 使用 `sudo apt clean` 清理 apt 缓存. -- See the top 10 largest files in the codespace with`sudo find / -printf '%s %p\n'| sort -nr | head -10`. -- Delete unneeded files, such as build artifacts and logs. +- 使用 `sudo find / -printf '%s %p\n'| sort -nr | head -10` 查看代码空间中前 10 个最大的文件。 +- 删除不需要的文件,如生成工件和日志。 -Some more destructive options: +一些更具破坏性的选项: -- Remove unused Docker images, networks, and containers by using `docker system prune` (append `-a` if you want to remove all images, and `--volumes` if you want to remove all volumes). +- 使用 `docker system prune`(如果要删除所有映像,请追加 `-a`;如果要删除所有卷,请追加 `--volumes`)删除不使用的 Docker 映像、网络和容器。 - 从工作树中删除不跟踪的文件:`git clear-i`. ## Configuration @@ -54,4 +54,4 @@ Some more destructive options: 由于容器错误,这个代码空间正在恢复模式中运行。 ``` -Review the creation logs, update the configuration as needed, and run **Codespaces: Rebuild Container** in the {% data variables.product.prodname_vscode_command_palette %} to retry. For more information, see " [Codespaces logs](/codespaces/troubleshooting/codespaces-logs)" and "[Configuring {% data variables.product.prodname_codespaces %} for your project](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)." +查看创建日志,根据需要更新配置,并在 {% data variables.product.prodname_vscode_command_palette %} 中运行 **Codespaces: Rebuild Container** 以重试。 更多信息请参阅“[代码空间日志](/codespaces/troubleshooting/codespaces-logs)”和“[为项目配置 {% data variables.product.prodname_codespaces %}](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)”。 diff --git a/translations/zh-CN/content/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.md b/translations/zh-CN/content/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.md index 03d7533b48..9382956bd9 100644 --- a/translations/zh-CN/content/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.md +++ b/translations/zh-CN/content/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.md @@ -31,14 +31,14 @@ shortTitle: 社区健康文件 您可以在组织{% ifversion fpt or ghes or ghec %}或用户帐户{% endif %}中为以下社区健康文件创建默认内容: -| 社区健康文件 | 描述 | -| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion fpt or ghec %} +| 社区健康文件 | 描述 | +| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion fpt or ghec %} | *CODE_OF_CONDUCT.md* | CODE_OF_CONDUCT 文件定义如何参与社区的标准。 更多信息请参阅“[为项目添加行为准则](/articles/adding-a-code-of-conduct-to-your-project/)”。{% endif %} | *CONTRIBUTING.md* | CONTRIBUTING 文件说明人们应如何参与您的项目。 更多信息请参阅“[设置仓库参与者指南](/articles/setting-guidelines-for-repository-contributors/)”。{% ifversion fpt or ghec %} | *FUNDING.yml* | FUNDING 文件在仓库中显示赞助者按钮,以提高开源项目资助选项的可见性。 更多信息请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”。{% endif %} -| 议题和拉取请求模板{% ifversion fpt or ghes or ghec %} 和 *config.yml*{% endif %} | 议题和拉取请求模板可自定义和标准化您希望贡献者在您的仓库中打开议题和拉取请求时加入的信息。 更多信息请参阅“[关于议题和拉取请求模板](/articles/about-issue-and-pull-request-templates/)”。{% ifversion fpt or ghes > 3.0 or ghec %} +| 议题和拉取请求模板{% ifversion fpt or ghes or ghec %} 和 *config.yml*{% endif %} | 议题和拉取请求模板可自定义和标准化您希望贡献者在您的仓库中打开议题和拉取请求时加入的信息。 更多信息请参阅“[关于议题和拉取请求模板](/articles/about-issue-and-pull-request-templates/)”。{% ifversion fpt or ghes or ghec %} | *SECURITY.md* | SECURITY 文件说明如何报告项目中的安全漏洞。 更多信息请参阅“[添加安全政策到仓库](/code-security/getting-started/adding-a-security-policy-to-your-repository)”。{% endif %} -| *SUPPORT.md* | SUPPORT 文件告知获取项目相关帮助的方式。 更多信息请参阅“[为项目添加支持资源](/articles/adding-support-resources-to-your-project/)”。 | +| *SUPPORT.md* | SUPPORT 文件告知获取项目相关帮助的方式。 更多信息请参阅“[为项目添加支持资源](/articles/adding-support-resources-to-your-project/)”。 | 您不能创建默认许可文件。 必须将许可文件添加到各个仓库中,以便在克隆、打包或下载项目时包含该文件。 diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-from-a-manifest.md b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-from-a-manifest.md index 712b70e15f..55d059a6e2 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-from-a-manifest.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-from-a-manifest.md @@ -61,9 +61,8 @@ GitHub 应用程序清单使用类似于 [OAuth 流程](/apps/building-oauth-app | `name` | `字符串` | GitHub 应用程序的名称。 | | `url` | `字符串` | **必填。**GitHub 应用程序的主页。 | | `hook_attributes` | `对象` | GitHub 应用程序 web 挂钩的配置 | - | `redirect_url` | `字符串` | 在用户从清单创建 GitHub 应用程序后重定向到的完整 URL。{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - | `callback_urls` | `字符串数组` | 在用户授权安装后重定向到的完整 URL。 您可以提供最多 10 个回叫 URL。{% else %} - | `callback_url` | `字符串` | 在用户授权安装后重定向到的完整 URL。{% endif %} + | `redirect_url` | `字符串` | The full URL to redirect to after a user initiates the creation of a GitHub App from a manifest. | + | `callback_urls` | `字符串数组` | 在用户授权安装后重定向到的完整 URL。 您可以提供最多 10 个回叫 URL。 | | `说明` | `字符串` | GitHub 应用程序的说明。 | | `public` | `布尔值` | 当 GitHub 应用程序可供公众使用时,设置为 `true` ;当它仅供应用程序的所有者访问时,设置为 `false`。 | | `default_events` | `数组` | GitHub 应用程序订阅的[事件](/webhooks/event-payloads)列表。 | @@ -101,9 +100,9 @@ GitHub 应用程序清单使用类似于 [OAuth 流程](/apps/building-oauth-app "url": "https://example.com/github/events", }, "redirect_url": "https://example.com/redirect", - {% ifversion fpt or ghae or ghes > 3.0 or ghec %}"callback_urls": [ + "callback_urls": [ "https://example.com/callback" - ],{% else %}"callback_url": "https://example.com/callback",{% endif %} + ], "public": true, "default_permissions": { "issues": "write", @@ -136,9 +135,9 @@ GitHub 应用程序清单使用类似于 [OAuth 流程](/apps/building-oauth-app "url": "https://example.com/github/events", }, "redirect_url": "https://example.com/redirect", - {% ifversion fpt or ghae or ghes > 3.0 or ghec %}"callback_urls": [ + "callback_urls": [ "https://example.com/callback" - ],{% else %}"callback_url": "https://example.com/callback",{% endif %} + ], "public": true, "default_permissions": { "issues": "write", diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md index 1de7c9a894..9ac7dd220f 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md @@ -29,20 +29,10 @@ shortTitle: 应用程序创建查询参数 以下 URL 使用预配置的说明和回调 URL 创建名为 `octocat-github-app` 的新公共应用程序。 此 URL 还选择了 `checks` 的读取和写入权限,订阅了 `check_run` 和 `check_suite` web 挂钩事件,并选择了在安装过程中请求用户授权 (OAuth) 的选项: -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - ```text {% data variables.product.oauth_host_code %}/settings/apps/new?name=octocat-github-app&description=An%20Octocat%20App&callback_urls[]=https://example.com&request_oauth_on_install=true&public=true&checks=write&events[]=check_run&events[]=check_suite ``` -{% else %} - -```text -{% data variables.product.oauth_host_code %}/settings/apps/new?name=octocat-github-app&description=An%20Octocat%20App&callback_url=https://example.com&request_oauth_on_install=true&public=true&checks=write&events[]=check_run&events[]=check_suite -``` - -{% endif %} - 下面几节列出了可用查询参数、权限和事件的完整列表。 ## {% data variables.product.prodname_github_app %} 配置参数 @@ -51,9 +41,8 @@ shortTitle: 应用程序创建查询参数 | -------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | `字符串` | {% data variables.product.prodname_github_app %} 的名称。 给应用程序一个清晰简洁的名称。 应用程序不能与现有 GitHub 用户同名,除非它是您自己的用户或组织的名称。 当您的集成执行操作时,应用程序名称的缓存版本将显示在用户界面上。 | | `说明` | `字符串` | {% data variables.product.prodname_github_app %} 的说明。 | - | `url` | `字符串` | {% data variables.product.prodname_github_app %} 网站主页的完整 URL。{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - | `callback_urls` | `字符串数组` | 在用户授权安装后重定向到的完整 URL。 您可以提供最多 10 个回叫 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用这些 URL。 例如 `callback_urls[]=https://example.com&callback_urls[]=https://example-2.com`。{% else %} - | `callback_url` | `字符串` | 在用户授权安装后重定向到的完整 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用此 URL。{% endif %} + | `url` | `字符串` | 您的 {% data variables.product.prodname_github_app %} 网站主页的完整 URL。 | + | `callback_urls` | `字符串数组` | 在用户授权安装后重定向到的完整 URL。 您可以提供最多 10 个回叫 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用这些 URL。 例如 `callback_urls[]=https://example.com&callback_urls[]=https://example-2.com`。 | | `request_oauth_on_install` | `布尔值` | 如果应用程序授权用户使用 OAuth 流程,您可以将此选项设置为 `true`,以允许用户在安装应用程序时授权它,从而省去一个步骤。 如果您选择此选项,则 `setup_url` 将不可用,用户在安装应用程序后将被重定向到您的 `callback_url`。 | | `setup_url` | `字符串` | 在用户安装 {% data variables.product.prodname_github_app %} 后重定向到的完整 URL(如果应用程序在安装之后需要额外设置)。 | | `setup_on_update` | `布尔值` | 设置为 `true` 可在更新安装后(例如在添加或删除仓库之后)将用户重定向到设置 URL。 | @@ -94,7 +83,7 @@ shortTitle: 应用程序创建查询参数 | `plan` | 授予使用“[获取用户](/rest/reference/users#get-a-user)”端点获取有关用户 GitHub 计划的信息的权限。 可以是以下项之一:`none` 或 `read`。 | | [`pull_requests`](/rest/reference/permissions-required-for-github-apps/#permission-on-pull-requests) | 授予对各种拉取请求端点的访问权限。 可以是以下项之一:`none`、`read` 或 `write`。 | | [`repository_hooks`](/rest/reference/permissions-required-for-github-apps/#permission-on-repository-hooks) | 授予对[仓库 web 挂钩 API](/rest/reference/repos#hooks) 的访问权限。 可以是以下项之一:`none`、`read` 或 `write`。 | -| [`repository_projects`](/rest/reference/permissions-required-for-github-apps/#permission-on-repository-projects) | 授予对[项目 API](/rest/reference/projects) 的访问权限。 可以是以下项之一:`none`、`read`、`write` 或 `admin`。{% ifversion fpt or ghes > 3.0 or ghec %} +| [`repository_projects`](/rest/reference/permissions-required-for-github-apps/#permission-on-repository-projects) | 授予对[项目 API](/rest/reference/projects) 的访问权限。 可以是以下项之一:`none`、`read`、`write` 或 `admin`。{% ifversion fpt or ghes or ghec %} | [`secret_scanning_alerts`](/rest/reference/permissions-required-for-github-apps/#permission-on-secret-scanning-alerts) | 授予对[密钥扫描 API](/rest/reference/secret-scanning) 的访问权限。 可以是以下项之一:`none`、`read` 或 `write`。{% endif %}{% ifversion fpt or ghes or ghec %} | [`security_events`](/rest/reference/permissions-required-for-github-apps/#permission-on-security-events) | 授予对[代码扫描 API](/rest/reference/code-scanning/) 的访问权限。 可以是以下项之一:`none`、`read` 或 `write`。{% endif %} | [`single_file`](/rest/reference/permissions-required-for-github-apps/#permission-on-single-file) | 授予对[内容 API](/rest/reference/repos#contents) 的访问权限。 可以是以下项之一:`none`、`read` 或 `write`。 | diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app.md b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app.md index 31190d36d9..8639909d3a 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/creating-a-github-app.md @@ -35,7 +35,7 @@ topics: 1. (可选)在“Description(说明)”中,输入用户将看到的应用程序说明。 ![GitHub 应用程序说明字段](/assets/images/github-apps/github_apps_description.png) 1. 在“Homepage URL(主页 URL)”中,输入应用程序网站的完整 URL。 ![GitHub 应用程序主页 URL 字段](/assets/images/github-apps/github_apps_homepage_url.png) -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} 1. 在“Callback URL(回调 URL)”中,键入用户授权安装后要重定向到的完整 URL。 如果应用程序需要识别和授权用户到服务器的请求,则使用此 URL。 您可以使用 **Add callback URL(添加回调 URL)**来提供额外的回调 URL,最多不超过 10 个。 diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md b/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md index f6c04733f7..c7c02563db 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps.md @@ -26,12 +26,8 @@ shortTitle: 识别和授权用户 要授权用户使用在浏览器中运行的标准应用程序,请使用 [web 应用程序流程](#web-application-flow)。 -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - 要授权用户使用不直接访问浏览器的无头应用程序(例如 CLI 工具或 Git 凭据管理器),请使用[设备流程](#device-flow)。 设备流程使用 OAuth 2.0 [设备授权授予](https://tools.ietf.org/html/rfc8628)。 -{% endif %} - ## Web 应用程序流程 使用 web 应用程序流程时,识别您站点上用户的过程如下: @@ -51,13 +47,13 @@ shortTitle: 识别和授权用户 #### 参数 -| 名称 | 类型 | 描述 | -| -------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `client_id` | `字符串` | **必填。**GitHub 应用程序的客户端 ID。 选择应用程序时,您可以在 [GitHub 应用程序设置](https://github.com/settings/apps)中找到它。 **注意:** 应用程序 ID 和客户端 ID 不相同,无法互换。 | -| `redirect_uri` | `字符串` | 用户获得授权后被发送到的应用程序中的 URL。 它必须完全匹配设置 GitHub 应用程序时 {% ifversion fpt or ghes > 3.0 or ghec %} 作为 **Callback URL(回调 URL)**提供的 URL 之一 {% else %} 在 **User authorization callback URL(用户授权回调 URL)**字段中提供的 URL{% endif %},并且不能包含任何其他参数。 | -| `state` | `字符串` | 它应该包含一个随机字符串以防止伪造攻击,并且可以包含任何其他任意数据。 | -| `login` | `字符串` | 提供用于登录和授权应用程序的特定账户。 | -| `allow_signup` | `字符串` | 在 OAuth 流程中,是否向经过验证的用户提供注册 {% data variables.product.prodname_dotcom %} 的选项。 默认值为 `true`。 如有政策禁止注册,请使用 `false`。 | +| 名称 | 类型 | 描述 | +| -------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `client_id` | `字符串` | **必填。**GitHub 应用程序的客户端 ID。 选择应用程序时,您可以在 [GitHub 应用程序设置](https://github.com/settings/apps)中找到它。 **注意:** 应用程序 ID 和客户端 ID 不相同,无法互换。 | +| `redirect_uri` | `字符串` | 用户获得授权后被发送到的应用程序中的 URL。 This must be an exact match to {% ifversion fpt or ghes or ghec %} one of the URLs you provided as a **Callback URL** {% else %} the URL you provided in the **User authorization callback URL** field{% endif %} when setting up your GitHub App and can't contain any additional parameters. | +| `state` | `字符串` | 它应该包含一个随机字符串以防止伪造攻击,并且可以包含任何其他任意数据。 | +| `login` | `字符串` | 提供用于登录和授权应用程序的特定账户。 | +| `allow_signup` | `字符串` | 在 OAuth 流程中,是否向经过验证的用户提供注册 {% data variables.product.prodname_dotcom %} 的选项。 默认值为 `true`。 如有政策禁止注册,请使用 `false`。 | {% note %} @@ -77,7 +73,7 @@ shortTitle: 识别和授权用户 将此 `code` 交换为访问令牌。 启用令牌有效期时,访问令牌在 8 小时后过期,刷新令牌在 6 个月后过期。 每次刷新令牌时都会得到一个新的刷新令牌。 更多信息请参阅“[刷新用户到服务器访问令牌](/developers/apps/refreshing-user-to-server-access-tokens)”。 -过期用户令牌目前是一个可选的功能,可能会更改。 要选择使用用户到服务器令牌过期功能,请参阅“[激活应用程序的可选功能](/developers/apps/activating-optional-features-for-apps)”。 +过期用户令牌目前是一个可选的功能,可能会更改。 To opt-in to the user-to-server token expiration feature, see "[Activating optional features for apps](/developers/apps/activating-optional-features-for-apps)." 向以下端点提出请求以接收访问令牌: @@ -85,13 +81,13 @@ shortTitle: 识别和授权用户 #### 参数 -| 名称 | 类型 | 描述 | -| --------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `client_id` | `字符串` | **必填。**GitHub 应用程序的客户端 ID。 | -| `client_secret` | `字符串` | **必填。**GitHub 应用程序的客户端密钥。 | -| `代码` | `字符串` | **必填。**您收到的响应第 1 步的代码。 | -| `redirect_uri` | `字符串` | 用户获得授权后被发送到的应用程序中的 URL。 它必须完全匹配设置 GitHub 应用程序时 {% ifversion fpt or ghes > 3.0 or ghec %} 作为 **Callback URL(回调 URL)**提供的 URL 之一 {% else %} 在 **User authorization callback URL(用户授权回调 URL)**字段中提供的 URL{% endif %},并且不能包含任何其他参数。 | -| `state` | `字符串` | 您在第 1 步提供的不可猜测的随机字符串。 | +| 名称 | 类型 | 描述 | +| --------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `client_id` | `字符串` | **必填。**GitHub 应用程序的客户端 ID。 | +| `client_secret` | `字符串` | **必填。**GitHub 应用程序的客户端密钥。 | +| `代码` | `字符串` | **必填。**您收到的响应第 1 步的代码。 | +| `redirect_uri` | `字符串` | 用户获得授权后被发送到的应用程序中的 URL。 This must be an exact match to {% ifversion fpt or ghes or ghec %} one of the URLs you provided as a **Callback URL** {% else %} the URL you provided in the **User authorization callback URL** field{% endif %} when setting up your GitHub App and can't contain any additional parameters. | +| `state` | `字符串` | 您在第 1 步提供的不可猜测的随机字符串。 | #### 响应 @@ -121,8 +117,6 @@ shortTitle: 识别和授权用户 curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre %}/user ``` -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - ## 设备流程 {% note %} @@ -135,11 +129,8 @@ curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre 有关使用设备流程授权用户的更多信息,请参阅“[授权 OAuth 应用程序](/developers/apps/authorizing-oauth-apps#device-flow)”。 -{% endif %} - ## 检查用户可以访问哪些安装资源 - 获得用户的 OAuth 令牌后,您可以检查该用户可以访问哪些安装。 Authorization: token OAUTH-TOKEN diff --git a/translations/zh-CN/content/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens.md b/translations/zh-CN/content/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens.md index ccbb20e96a..07fedaf198 100644 --- a/translations/zh-CN/content/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens.md +++ b/translations/zh-CN/content/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens.md @@ -16,7 +16,6 @@ shortTitle: 刷新用户到服务器的访问权限 {% data reusables.pre-release-program.expiring-user-access-tokens %} - ## 关于过期用户访问令牌 要实施定期令牌轮换并减少受威胁令牌的影响,您可以配置 {% data variables.product.prodname_github_app %} 以使用过期用户访问令牌。 有关发出用户到服务器请求的更多信息,请参阅“[识别和授权 GitHub 应用程序用户](/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)”。 @@ -60,8 +59,7 @@ shortTitle: 刷新用户到服务器的访问权限 {% data reusables.user-settings.developer_settings %} {% data reusables.user-settings.github_apps %} 4. 单击所选 {% data variables.product.prodname_github_app %} 旁边的 **Edit(编辑)**。 ![编辑 GitHub 应用程序的设置](/assets/images/github-apps/edit-test-app.png) -5. 在左侧栏中,单击 **{% ifversion ghes < 3.1 %} 测试 {% else %} 可选 {% endif %} 功能**。 - {% ifversion ghes < 3.1 %} ![Beta features tab](/assets/images/github-apps/beta-features-option.png) {% else %} ![Optional features tab](/assets/images/github-apps/optional-features-option.png) {% endif %} +5. In the left sidebar, click **Optional Features**. ![Optional features tab](/assets/images/github-apps/optional-features-option.png) 6. 在“User-to-server token expiration(用户到服务器令牌过期)”旁边,单击 **Opt-in(选择加入)**或 **Opt-out(选择退出)**。 应用此设置可能需要几秒钟的时间。 ## 为新的 GitHub 应用程序选择退出过期令牌 diff --git a/translations/zh-CN/content/developers/apps/building-oauth-apps/authorizing-oauth-apps.md b/translations/zh-CN/content/developers/apps/building-oauth-apps/authorizing-oauth-apps.md index 7de98b3fa6..2dea38c797 100644 --- a/translations/zh-CN/content/developers/apps/building-oauth-apps/authorizing-oauth-apps.md +++ b/translations/zh-CN/content/developers/apps/building-oauth-apps/authorizing-oauth-apps.md @@ -24,8 +24,8 @@ topics: 要授权您的 OAuth 应用程序,请考虑哪个授权流程最适合您的应用程序。 -- [Web 应用程序流程](#web-application-flow):用于授权在浏览器中运行标准 OAuth 应用程序的用户。 (不支持 [隐含的授予类型](https://tools.ietf.org/html/rfc6749#section-4.2)。){% ifversion fpt or ghae or ghes > 3.0 or ghec %} -- [设备流程](#device-flow):用于无头应用程序,例如 CLI 工具。{% endif %} +- [Web 应用程序流程](#web-application-flow):用于授权在浏览器中运行标准 OAuth 应用程序的用户。 (不支持[隐式授予类型](https://tools.ietf.org/html/rfc6749#section-4.2)。) +- [设备流程](#device-flow):用于无头应用程序,例如 CLI 工具。 ## Web 应用程序流程 @@ -116,8 +116,6 @@ Accept: application/xml curl -H "Authorization: token OAUTH-TOKEN" {% data variables.product.api_url_pre %}/user ``` -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} - ## 设备流程 {% note %} @@ -261,8 +259,6 @@ Accept: application/xml 更多信息请参阅“[OAuth 2.0 设备授权授予](https://tools.ietf.org/html/rfc8628#section-3.5)”。 -{% endif %} - ## 非 Web 应用程序流程 非 web 身份验证适用于测试等有限的情况。 如果您需要,可以使用[基本验证](/rest/overview/other-authentication-methods#basic-authentication),通过[个人访问令牌设置页面](/articles/creating-an-access-token-for-command-line-use)创建个人访问令牌。 此方法支持用户随时撤销访问权限。 @@ -329,7 +325,7 @@ http://127.0.0.1:1234/path * "[对授权请求错误进行故障排除](/apps/managing-oauth-apps/troubleshooting-authorization-request-errors)" * "[对 OAuth 应用程序访问令牌请求错误进行故障排除](/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors)" -{% ifversion fpt or ghae or ghes > 3.0 or ghec %}* "[Device flow errors](#error-codes-for-the-device-flow)"{% endif %}{% ifversion fpt or ghae-issue-4374 or ghes > 3.2 or ghec %} +* "[Device flow errors](#error-codes-for-the-device-flow)"{% ifversion fpt or ghae-issue-4374 or ghes > 3.2 or ghec %} * "[令牌到期和撤销](/github/authenticating-to-github/keeping-your-account-and-data-secure/token-expiration-and-revocation)"{% endif %} ## 延伸阅读 diff --git a/translations/zh-CN/content/developers/apps/building-oauth-apps/creating-an-oauth-app.md b/translations/zh-CN/content/developers/apps/building-oauth-apps/creating-an-oauth-app.md index da246053e7..7690a9b48a 100644 --- a/translations/zh-CN/content/developers/apps/building-oauth-apps/creating-an-oauth-app.md +++ b/translations/zh-CN/content/developers/apps/building-oauth-apps/creating-an-oauth-app.md @@ -43,7 +43,7 @@ topics: 7. 在“Homepage URL(主页 URL)”中,输入应用程序网站的完整 URL。 ![应用程序主页 URL 字段](/assets/images/oauth-apps/oauth_apps_homepage_url.png) 8. (可选)在“Application description(应用程序说明)”中,输入用户将看到的应用程序说明。 ![应用程序说明字段](/assets/images/oauth-apps/oauth_apps_application_description.png) 9. 在“Authorization callback URL(授权回调 URL)”中,输入应用程序的回调 URL。 ![应用程序的授权回调 URL 字段](/assets/images/oauth-apps/oauth_apps_authorization_callback_url.png) -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} {% note %} **注:**与 {% data variables.product.prodname_github_apps %} 不同,OAuth 应用程序不能有多个回调 URL。 diff --git a/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md b/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md index e8e0058708..80e3281863 100644 --- a/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md +++ b/translations/zh-CN/content/developers/apps/building-oauth-apps/scopes-for-oauth-apps.md @@ -39,44 +39,43 @@ X-Accepted-OAuth-Scopes: user ## 可用作用域 -| 名称 | 描述 | -| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion not ghae %} +| 名称 | 描述 | +| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |{% ifversion not ghae %} | **`(无作用域)`** | 授予对公共信息的只读访问权限(包括用户个人资料信息、公共仓库信息和 gist){% endif %}{% ifversion ghes or ghae %} | **`site_admin`** | 授予站点管理员对 [{% data variables.product.prodname_ghe_server %} 管理 API 端点](/rest/reference/enterprise-admin)的访问权限。{% endif %} -| **`repo`** | 授予对仓库(包括私有仓库)的完全访问权限。 这包括对仓库和组织的代码、提交状态、仓库和组织项目、邀请、协作者、添加团队成员身份、部署状态以及仓库 web 挂钩的读取/写入权限。 还授予管理用户项目的权限。 | -|  `repo:status` | 授予对{% ifversion fpt %}公共和私有{% elsif ghec or ghes %}公共、私有和内部{% elsif ghae %}私有和内部{% endif %}仓库中的提交状态的读/写访问权限。 仅在授予其他用户或服务对私有仓库提交状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。 | +| **`repo`** | 授予对仓库(包括私有仓库)的完全访问权限。 这包括对仓库和组织的代码、提交状态、仓库和组织项目、邀请、协作者、添加团队成员身份、部署状态以及仓库 web 挂钩的读取/写入权限。 还授予管理用户项目的权限。 | +|  `repo:status` | 授予对{% ifversion fpt %}公共和私有{% elsif ghec or ghes %}公共、私有和内部{% elsif ghae %}私有和内部{% endif %}仓库中的提交状态的读/写访问权限。 仅在授予其他用户或服务对私有仓库提交状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。 | |  `repo_deployment` | 授予对{% ifversion not ghae %}公共{% else %}内部{% endif %}和私有仓库的[部署状态](/rest/reference/repos#deployments)的访问权限。 仅在授予其他用户或服务对部署状态的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% ifversion not ghae %} |  `public_repo` | 将访问权限限制为公共仓库。 这包括对公共仓库和组织的代码、提交状态、仓库项目、协作者以及部署状态的读取/写入权限。 标星公共仓库也需要此权限。{% endif %} -|  `repo:invite` | 授予接受/拒绝仓库协作邀请的权限。 仅在授予其他用户或服务对邀请的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% ifversion fpt or ghes > 3.0 or ghec %} -|  `security_events` | 授予:
对 [{% data variables.product.prodname_code_scanning %} API](/rest/reference/code-scanning) 中安全事件的读取和写入权限
对 [{% data variables.product.prodname_secret_scanning %} API](/rest/reference/secret-scanning) 中安全事件的读取和写入权限
仅在授予其他用户或服务对安全事件的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% endif %}{% ifversion ghes < 3.1 %} -|  `security_events` | 授予对 [{% data variables.product.prodname_code_scanning %} API](/rest/reference/code-scanning) 中安全事件的读取和写入权限。 仅在授予其他用户或服务对安全事件的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% endif %} -| **`admin:repo_hook`** | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中仓库挂钩的读取、写入、ping 和删除访问权限。 `repo` {% ifversion fpt or ghec or ghes %}和 `public_repo` 范围授予{% else %}范围授予{% endif %}对仓库(包括仓库挂钩)的完全访问权限。 使用 `admin:repo_hook` 作用域将访问权限限制为仅仓库挂钩。 | -|  `write:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取、写入和 ping 访问权限。 | -|  `read:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取和 ping 访问权限。 | -| **`admin:org`** | 全面管理组织及其团队、项目和成员。 | -|  `write:org` | 对组织成员身份、组织项目和团队成员身份的读取和写入权限。 | -|  `read:org` | 对组织成员身份、组织项目和团队成员身份的只读权限。 | -| **`admin:public_key`** | 全面管理公钥。 | -|  `write:public_key` | 创建、列出和查看公钥的详细信息。 | -|  `read:public_key` | 列出和查看公钥的详细信息。 | -| **`admin:org_hook`** | 授予对组织挂钩的读取、写入、ping 和删除权限。 **注:**OAuth 令牌只能对由 OAuth 应用程序创建的组织挂钩执行这些操作。 个人访问令牌只能对用户创建的组织挂钩执行这些操作。 | -| **`gist`** | 授予对 gist 的写入权限。 | -| **`通知`** | 授予:
* 对用户通知的读取权限
* 对线程的标记读取权限
* 对仓库的关注和取消关注权限,以及
* 对线程订阅的读取、写入和删除权限。 | -| **`用户`** | 仅授予对个人资料的读取/写入权限。 请注意,此作用域包括 `user:email` 和 `user:follow`。 | -|  `read:user` | 授予读取用户个人资料数据的权限。 | -|  `user:email` | 授予对用户电子邮件地址的读取权限。 | -|  `user:follow` | 授予关注或取消关注其他用户的权限。 | -| **`delete_repo`** | 授予删除可管理仓库的权限。 | -| **`write:discussion`** | 授予对团队讨论的读取和写入权限。 | +|  `repo:invite` | 授予接受/拒绝仓库协作邀请的权限。 仅在授予其他用户或服务对邀请的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% ifversion fpt or ghes or ghec %} +|  `security_events` | 授予:
对 [{% data variables.product.prodname_code_scanning %} API](/rest/reference/code-scanning) 中安全事件的读取和写入权限
对 [{% data variables.product.prodname_secret_scanning %} API](/rest/reference/secret-scanning) 中安全事件的读取和写入权限
仅在授予其他用户或服务对安全事件的访问权限而*不*授予对代码的访问权限时,才需要此作用域。{% endif %} +| **`admin:repo_hook`** | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中仓库挂钩的读取、写入、ping 和删除访问权限。 `repo` {% ifversion fpt or ghec or ghes %}和 `public_repo` 范围授予{% else %}范围授予{% endif %}对仓库(包括仓库挂钩)的完全访问权限。 使用 `admin:repo_hook` 作用域将访问权限限制为仅仓库挂钩。 | +|  `write:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取、写入和 ping 访问权限。 | +|  `read:repo_hook` | 授予对{% ifversion fpt %}公共或私有{% elsif ghec or ghes %}公共、私有或内部{% elsif ghae %}私有或内部{% endif %}仓库中挂钩的读取和 ping 访问权限。 | +| **`admin:org`** | 全面管理组织及其团队、项目和成员。 | +|  `write:org` | 对组织成员身份、组织项目和团队成员身份的读取和写入权限。 | +|  `read:org` | 对组织成员身份、组织项目和团队成员身份的只读权限。 | +| **`admin:public_key`** | 全面管理公钥。 | +|  `write:public_key` | 创建、列出和查看公钥的详细信息。 | +|  `read:public_key` | 列出和查看公钥的详细信息。 | +| **`admin:org_hook`** | 授予对组织挂钩的读取、写入、ping 和删除权限。 **注:**OAuth 令牌只能对由 OAuth 应用程序创建的组织挂钩执行这些操作。 个人访问令牌只能对用户创建的组织挂钩执行这些操作。 | +| **`gist`** | 授予对 gist 的写入权限。 | +| **`通知`** | 授予:
* 对用户通知的读取权限
* 对线程的标记读取权限
* 对仓库的关注和取消关注权限,以及
* 对线程订阅的读取、写入和删除权限。 | +| **`用户`** | 仅授予对个人资料的读取/写入权限。 请注意,此作用域包括 `user:email` 和 `user:follow`。 | +|  `read:user` | 授予读取用户个人资料数据的权限。 | +|  `user:email` | 授予对用户电子邮件地址的读取权限。 | +|  `user:follow` | 授予关注或取消关注其他用户的权限。 | +| **`delete_repo`** | 授予删除可管理仓库的权限。 | +| **`write:discussion`** | 授予对团队讨论的读取和写入权限。 | |  `read:discussion` | 授予对团队讨论的读取权限。{% ifversion fpt or ghae or ghec %} -| **`write:packages`** | 授予在 {% data variables.product.prodname_registry %} 中上传或发布包的权限。 更多信息请参阅“[发布包](/github/managing-packages-with-github-packages/publishing-a-package)”。 | -| **`read:packages`** | 授予从 {% data variables.product.prodname_registry %} 下载或安装包的权限。 更多信息请参阅“[安装包](/github/managing-packages-with-github-packages/installing-a-package)”。 | -| **`delete:packages`** | 授予从 {% data variables.product.prodname_registry %} 删除包的权限。 更多信息请参阅“{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[删除包](/packages/learn-github-packages/deleting-a-package){% endif %}”。{% endif %} -| **`admin:gpg_key`** | 全面管理 GPG 密钥。 | -|  `write:gpg_key` | 创建、列出和查看 GPG 密钥的详细信息。 | +| **`write:packages`** | 授予在 {% data variables.product.prodname_registry %} 中上传或发布包的权限。 更多信息请参阅“[发布包](/github/managing-packages-with-github-packages/publishing-a-package)”。 | +| **`read:packages`** | 授予从 {% data variables.product.prodname_registry %} 下载或安装包的权限。 更多信息请参阅“[安装包](/github/managing-packages-with-github-packages/installing-a-package)”。 | +| **`delete:packages`** | 授予从 {% data variables.product.prodname_registry %} 删除包的权限。 For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)."{% endif %} +| **`admin:gpg_key`** | 全面管理 GPG 密钥。 | +|  `write:gpg_key` | 创建、列出和查看 GPG 密钥的详细信息。 | |  `read:gpg_key` | 列出和查看 GPG 密钥的详细信息。{% ifversion fpt or ghec %} | **`代码空间`** | 授予创建和管理代码空间的能力。 Codespaces 可以暴露可能有不同范围集的 GITHUB_TOKEN。 更多信息请参阅“[Codespaces 中的安全性](/codespaces/codespaces-reference/security-in-codespaces#authentication)”。{% endif %} -| **`工作流程`** | 授予添加和更新 {% data variables.product.prodname_actions %} 工作流程文件的权限。 如果在同一仓库中的另一个分支上存在相同的文件(具有相同的路径和内容),则工作流程文件可以在没有此作用域的情况下提交。 工作流程文件可以暴露可能有不同范围集的 `GITHUB_TOKEN`。 更多信息请参阅“[工作流程中的身份验证](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)。 | +| **`工作流程`** | 授予添加和更新 {% data variables.product.prodname_actions %} 工作流程文件的权限。 如果在同一仓库中的另一个分支上存在相同的文件(具有相同的路径和内容),则工作流程文件可以在没有此作用域的情况下提交。 工作流程文件可以暴露可能有不同范围集的 `GITHUB_TOKEN`。 更多信息请参阅“[工作流程中的身份验证](/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)。 | {% note %} diff --git a/translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md b/translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md index 41045d3bb6..a9c9099403 100644 --- a/translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md +++ b/translations/zh-CN/content/developers/apps/getting-started-with-apps/activating-optional-features-for-apps.md @@ -1,6 +1,6 @@ --- -title: Activating optional features for apps -intro: 'You can test new optional features for your {% data variables.product.prodname_github_apps %} and {% data variables.product.prodname_oauth_apps %}.' +title: 激活应用程序的可选功能 +intro: '您可以测试 {% data variables.product.prodname_github_apps %} 和 {% data variables.product.prodname_oauth_apps %} 的新可选功能。' redirect_from: - /developers/apps/activating-beta-features-for-apps - /developers/apps/activating-optional-features-for-apps @@ -11,22 +11,23 @@ versions: ghec: '*' topics: - GitHub Apps -shortTitle: Activate optional features +shortTitle: 激活可选功能 --- + {% warning %} -**Warning:** {% ifversion ghes < 3.1 %} Beta {% else %} Optional {% endif %} features are subject to change. +**Warning:** Optional features are subject to change. {% endwarning %} -## Activating {% ifversion ghes < 3.1 %} beta {% else %} optional {% endif %} features for {% data variables.product.prodname_github_apps %} +## Activating optional features for {% data variables.product.prodname_github_apps %} {% data reusables.user-settings.access_settings %} {% data reusables.user-settings.developer_settings %} -3. Select the {% data variables.product.prodname_github_app %} you want to enable {% ifversion ghes < 3.1 %} a beta {% else %} an optional {% endif %} feature for. +3. Select the {% data variables.product.prodname_github_app %} you want to enable an optional feature for. {% data reusables.apps.optional_feature_activation %} -## Activating {% ifversion ghes < 3.1 %} beta {% else %} optional {% endif %} features for {% data variables.product.prodname_oauth_apps %} +## Activating optional features for {% data variables.product.prodname_oauth_apps %} {% data reusables.user-settings.access_settings %} {% data reusables.user-settings.developer_settings %} diff --git a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md index 1a65e3ab14..068987fef5 100644 --- a/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md +++ b/translations/zh-CN/content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md @@ -219,7 +219,7 @@ Git 引用已成功同步到缓存副本。 更多信息请参阅“[关于仓 {% data reusables.webhooks.repo_desc %} {% data reusables.webhooks.org_desc %} {% data reusables.webhooks.app_desc %} -`sender` | `object` | 如果 `action` 是 `reopened_by_user` 或 `closed_by_user`,则 `sender` 对象将是触发事件的用户。 `sender` 对象对所有其他操作是 {% ifversion fpt or ghec %}`github` {% elsif ghes > 3.0 or ghae %}`github-enterprise` {% else %}空 {% endif %}。 +`sender` | `object` | 如果 `action` 是 `reopened_by_user` 或 `closed_by_user`,则 `sender` 对象将是触发事件的用户。 `sender` 对象对所有其他操作是 {% ifversion fpt or ghec %}`github` {% elsif ghes or ghae %}`github-enterprise` {% else %}空 {% endif %}。 ### Web 挂钩有效负载示例 @@ -1216,7 +1216,7 @@ Web 挂钩事件是基于您注册的域的特异性而触发的。 例如,如 {% endif %} -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} ## secret_scanning_alert @@ -1448,7 +1448,7 @@ Web 挂钩事件是基于您注册的域的特异性而触发的。 例如,如 {{ webhookPayloadsForCurrentVersion.workflow_dispatch }} {% endif %} -{% ifversion fpt or ghes > 3.2 or ghec %} +{% ifversion fpt or ghes > 3.2 or ghec or ghae-issue-4462 %} ## workflow_job diff --git a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/run-student-code-in-an-ide.md b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/run-student-code-in-an-ide.md index 05859c76a9..c11f004f17 100644 --- a/translations/zh-CN/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/run-student-code-in-an-ide.md +++ b/translations/zh-CN/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/run-student-code-in-an-ide.md @@ -1,22 +1,22 @@ --- -title: Run student code in an IDE -intro: You can run the code from a student assignment within the integrated development environment (IDE) that you configured for the assignment. +title: 在 IDE 中运行学生代码 +intro: 您可以在为作业配置的集成开发环境 (IDE) 中运行学生作业中的代码。 versions: fpt: '*' redirect_from: - /education/manage-coursework-with-github-classroom/running-student-code - /education/manage-coursework-with-github-classroom/run-student-code-in-an-online-ide - /education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/run-student-code-in-an-online-ide -shortTitle: Run code in IDE +shortTitle: 在 IDE 中运行代码 --- -## About student code and IDEs +## 关于学生代码和 IDE -If you configure an integrated development environment (IDE) for an assignment, you can run the code within the IDE. 您不需要复制作业仓库到您的计算机。 +如果为作业配置集成开发环境 (IDE),您可以在 IDE 中运行代码。 您不需要复制作业仓库到您的计算机。 -For more information about IDEs, see "[Integrate {% data variables.product.prodname_classroom %} with an IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)." +有关 IDE 的更多信息,请参阅“[集成 {% data variables.product.prodname_classroom %} 与 IDE](/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/integrate-github-classroom-with-an-ide)”。 -## Running student code in the IDE +## 在 IDE 中运行学生代码 {% data reusables.classroom.sign-into-github-classroom %} {% data reusables.classroom.click-classroom-in-list %} diff --git a/translations/zh-CN/content/get-started/customizing-your-github-workflow/exploring-integrations/about-github-marketplace.md b/translations/zh-CN/content/get-started/customizing-your-github-workflow/exploring-integrations/about-github-marketplace.md index fef163b17b..27fb7318eb 100644 --- a/translations/zh-CN/content/get-started/customizing-your-github-workflow/exploring-integrations/about-github-marketplace.md +++ b/translations/zh-CN/content/get-started/customizing-your-github-workflow/exploring-integrations/about-github-marketplace.md @@ -4,7 +4,7 @@ intro: '{% data variables.product.prodname_marketplace %} contains tools that ad redirect_from: - /articles/about-github-marketplace - /github/customizing-your-github-workflow/about-github-marketplace - - /github/customizing-your-github-workflow/exploring-integrations/about-github-marketplace + - /github/customizing-your-github-workflow/exploring-integrations/about-github-marketplace versions: fpt: '*' ghec: '*' diff --git a/translations/zh-CN/content/get-started/learning-about-github/about-github-advanced-security.md b/translations/zh-CN/content/get-started/learning-about-github/about-github-advanced-security.md index 3b9c4546db..8e3054e7bd 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/about-github-advanced-security.md +++ b/translations/zh-CN/content/get-started/learning-about-github/about-github-advanced-security.md @@ -18,7 +18,7 @@ shortTitle: GitHub Advanced Security {% data variables.product.prodname_dotcom %} has many features that help you improve and maintain the quality of your code. Some of these are included in all plans{% ifversion not ghae %}, such as dependency graph and {% data variables.product.prodname_dependabot_alerts %}{% endif %}. Other security features require {% data variables.product.prodname_GH_advanced_security %}{% ifversion fpt or ghec %} to run on repositories apart from public repositories on {% data variables.product.prodname_dotcom_the_website %}{% endif %}. -{% ifversion ghes > 3.0 or ghec %}For information about buying a license for {% data variables.product.prodname_GH_advanced_security %}, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."{% elsif ghae %}There is no charge for {% data variables.product.prodname_GH_advanced_security %} on {% data variables.product.prodname_ghe_managed %} during the beta release.{% elsif fpt %}To purchase a {% data variables.product.prodname_GH_advanced_security %} license, you must be using {% data variables.product.prodname_enterprise %}. For information about upgrading to {% data variables.product.prodname_enterprise %} with {% data variables.product.prodname_GH_advanced_security %}, see "[GitHub's products](/get-started/learning-about-github/githubs-products)" and "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."{% endif %} +{% ifversion ghes or ghec %}For information about buying a license for {% data variables.product.prodname_GH_advanced_security %}, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."{% elsif ghae %}There is no charge for {% data variables.product.prodname_GH_advanced_security %} on {% data variables.product.prodname_ghe_managed %} during the beta release.{% elsif fpt %}To purchase a {% data variables.product.prodname_GH_advanced_security %} license, you must be using {% data variables.product.prodname_enterprise %}. For information about upgrading to {% data variables.product.prodname_enterprise %} with {% data variables.product.prodname_GH_advanced_security %}, see "[GitHub's products](/get-started/learning-about-github/githubs-products)" and "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."{% endif %} ## About {% data variables.product.prodname_advanced_security %} features @@ -89,7 +89,7 @@ You can enable and disable these features at the organization or repository leve {%- endif %} For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)" and "[Managing security and analysis settings for your repository](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)." -{% ifversion ghec or ghes > 3.0 %} +{% ifversion ghec or ghes %} If you have an enterprise account, license use for the entire enterprise is shown on your enterprise license page. For more information, see "[Viewing your {% data variables.product.prodname_GH_advanced_security %} usage](/billing/managing-licensing-for-github-advanced-security/viewing-your-github-advanced-security-usage)." {% endif %} @@ -105,7 +105,7 @@ For more information on starter workflows, see "[Setting up {% data variables.pr {% endif %} -{% ifversion ghec or ghes > 3.0 or ghae %} +{% ifversion ghec or ghes or ghae %} ## Further reading - "[Enforcing policies for {% data variables.product.prodname_advanced_security %} in your enterprise account](/admin/policies/enforcing-policies-for-advanced-security-in-your-enterprise)" diff --git a/translations/zh-CN/content/get-started/learning-about-github/about-versions-of-github-docs.md b/translations/zh-CN/content/get-started/learning-about-github/about-versions-of-github-docs.md index dae15bbb0d..092052d040 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/about-versions-of-github-docs.md +++ b/translations/zh-CN/content/get-started/learning-about-github/about-versions-of-github-docs.md @@ -1,6 +1,6 @@ --- title: About versions of GitHub Docs -intro: "You can read documentation that reflects the {% data variables.product.company_short %} product you're currently using." +intro: 'You can read documentation that reflects the {% data variables.product.company_short %} product you''re currently using.' versions: '*' shortTitle: Docs versions --- diff --git a/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md b/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md index 5b35c84e6a..6be3c73075 100644 --- a/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md +++ b/translations/zh-CN/content/get-started/learning-about-github/types-of-github-accounts.md @@ -86,4 +86,4 @@ Your enterprise account is a collection of all the organizations {% ifversion gh {% ifversion fpt or ghec %} - "[Signing up for a new {% data variables.product.prodname_dotcom %} account](/articles/signing-up-for-a-new-github-account)"{% endif %} - "[Creating a new organization account](/articles/creating-a-new-organization-account)" -- [Organizing people for successful collaboration](https://vimeo.com/333786093) video in {% data variables.product.company_short %} Resources \ No newline at end of file +- [Organizing people for successful collaboration](https://vimeo.com/333786093) video in {% data variables.product.company_short %} Resources diff --git a/translations/zh-CN/content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md b/translations/zh-CN/content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md index 81430fd179..8229beefb9 100644 --- a/translations/zh-CN/content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md +++ b/translations/zh-CN/content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md @@ -25,7 +25,7 @@ When you enable data use for your private repository, you'll be able to access t {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} +4. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-private.png){% elsif ghec %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-private.png){% endif %} diff --git a/translations/zh-CN/content/github/site-policy/github-codespaces-privacy-statement.md b/translations/zh-CN/content/github/site-policy/github-codespaces-privacy-statement.md index 580ec9f90b..2de78c3d38 100644 --- a/translations/zh-CN/content/github/site-policy/github-codespaces-privacy-statement.md +++ b/translations/zh-CN/content/github/site-policy/github-codespaces-privacy-statement.md @@ -1,5 +1,5 @@ --- -title: GitHub Codespaces Privacy Statement +title: GitHub Codespaces 隐私声明 redirect_from: - /github/site-policy/github-codespaces-privacy-policy versions: @@ -9,14 +9,14 @@ topics: - Legal --- -Effective Date: August 10, 2021 +生效日期:2021 年 8 月 10 日 -Use of GitHub Codespaces is subject to the [GitHub Privacy Statement](/github/site-policy/github-privacy-statement). +GitHub Codespaces 的使用受 [GitHub 隐私声明](/github/site-policy/github-privacy-statement)的约束。 -Activity on github.dev is subject to [GitHub's Beta Previews terms](/github/site-policy/github-terms-of-service#j-beta-previews) +github.dev 上的活动受 [GitHub 测试预览版条款](/github/site-policy/github-terms-of-service#j-beta-previews)的约束 -## Using Visual Studio Code +## 使用 Visual Studio Code -GitHub Codespaces and github.dev allow for use of Visual Studio Code in the web browser. When using Visual Studio Code in the web browser, some telemetry collection is enabled by default and is [explained in detail on the Visual Studio Code website](https://code.visualstudio.com/docs/getstarted/telemetry). Users can opt out of telemetry by going to File > Preferences > Settings under the top left menu. +GitHub Codespaces 和 github.dev 允许在 Web 浏览器中使用 Visual Studio Code。 在 Web 浏览器中使用 Visual Studio Code 时,默认情况下会启用某些遥测集合,[Visual Studio Code 网站上对此进行了详细解释](https://code.visualstudio.com/docs/getstarted/telemetry)。 用户可以通过转到左上角菜单下的 File > Preferences > Settings(文件首选项设置)来选择退出遥测。 -If a user chooses to opt out of telemetry capture in Visual Studio Code while inside of a codespace as outlined, this will sync the disable telemetry preference across all future web sessions in GitHub Codespaces and github.dev. +如果用户选择在代码空间内选择退出 Visual Studio Code 中的遥测捕获(如前所述),这将在 GitHub Codespaces 和 github.dev 中的所有未来 Web 会话中同步禁用遥测首选项。 diff --git a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization.md b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization.md index f3d678c3aa..23d6005f14 100644 --- a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization.md +++ b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization.md @@ -34,7 +34,7 @@ shortTitle: 管理安全和分析 {% ifversion ghec %}如果您的组织属于具有 {% data variables.product.prodname_GH_advanced_security %} 许可的企业,则该页面还包含启用和禁用 {% data variables.product.prodname_advanced_security %} 功能的选项。 使用 {% data variables.product.prodname_GH_advanced_security %} 的任何仓库都列在页面底部。{% endif %} -{% ifversion ghes > 3.0 %}如果您具有 {% data variables.product.prodname_GH_advanced_security %} 许可,则该页面还包含启用和禁用 {% data variables.product.prodname_advanced_security %} 功能的选项。 使用 {% data variables.product.prodname_GH_advanced_security %} 的任何仓库都列在页面底部。{% endif %} +{% ifversion ghes %}如果您具有 {% data variables.product.prodname_GH_advanced_security %} 许可,则该页面还包含启用和禁用 {% data variables.product.prodname_advanced_security %} 功能的选项。 使用 {% data variables.product.prodname_GH_advanced_security %} 的任何仓库都列在页面底部。{% endif %} {% ifversion ghae %}该页面还将包含启用和禁用 {% data variables.product.prodname_advanced_security %} 功能的选项。 使用 {% data variables.product.prodname_GH_advanced_security %} 的任何仓库都列在页面底部。{% endif %} @@ -48,7 +48,7 @@ shortTitle: 管理安全和分析 - **{% data variables.product.prodname_dependabot_security_updates %}** - 您的更改影响所有仓库。 {%- ifversion ghec %} - **{% data variables.product.prodname_GH_advanced_security %}** - 您的更改仅影响私有仓库,因为 {% data variables.product.prodname_GH_advanced_security %} 和相关功能对公共仓库始终启用。 -- **{% data variables.product.prodname_secret_scanning_caps %}** - 您的更改仅影响还启用了 {% data variables.product.prodname_GH_advanced_security %} 的私有仓库。 {% data variables.product.prodname_secret_scanning_caps %} 对公共仓库始终启用。 +- **{% data variables.product.prodname_secret_scanning_caps %}** - Your changes affect repositories where {% data variables.product.prodname_GH_advanced_security %} is also enabled. This option controls whether or not {% data variables.product.prodname_secret_scanning_GHAS %} is enabled. {% data variables.product.prodname_secret_scanning_partner_caps %} always runs on all public repositories. {% endif %} {% endif %} @@ -56,7 +56,7 @@ shortTitle: 管理安全和分析 {% data reusables.advanced-security.note-org-enable-uses-seats %} 1. 转到组织的安全和分析设置。 更多信息请参阅“[显示安全和分析设置](#displaying-the-security-and-analysis-settings)”。 -2. 在“Configure security and analysis features(配置安全性和分析功能)”下,单击功能右侧的 **Disable all(全部禁用)**或 **Enable all(全部启用)**。 {% ifversion ghes > 3.0 or ghec %}如果您的 {% data variables.product.prodname_GH_advanced_security %} 许可中没有可用的席位,对“{% data variables.product.prodname_GH_advanced_security %}”的控制将会禁用。{% endif %} +2. Under "Code security and analysis", to the right of the feature, click **Disable all** or **Enable all**. {% ifversion ghes > 3.0 or ghec %}如果您的 {% data variables.product.prodname_GH_advanced_security %} 许可中没有可用的席位,对“{% data variables.product.prodname_GH_advanced_security %}”的控制将会禁用。{% endif %} {% ifversion fpt %} !["Configure security and analysis(配置安全性和分析)"功能的"Enable all(全部启用)"或"Disable all(全部禁用)"按钮](/assets/images/help/organizations/security-and-analysis-disable-or-enable-all-fpt.png) {% endif %} @@ -69,31 +69,25 @@ shortTitle: 管理安全和分析 {% ifversion ghes = 3.1 or ghes = 3.2 %} !["Configure security and analysis(配置安全性和分析)"功能的"Enable all(全部启用)"或"Disable all(全部禁用)"按钮](/assets/images/enterprise/3.1/help/organizations/security-and-analysis-disable-or-enable-all-ghas.png) {% endif %} - {% ifversion ghes = 3.0 %} - !["Configure security and analysis(配置安全性和分析)"功能的"Enable all(全部启用)"或"Disable all(全部禁用)"按钮](/assets/images/enterprise/3.0/organizations/security-and-analysis-disable-or-enable-all-ghas.png) - {% endif %} + {% ifversion ghae %} !["Configure security and analysis(配置安全性和分析)"功能的"Enable all(全部启用)"或"Disable all(全部禁用)"按钮](/assets/images/enterprise/github-ae/organizations/security-and-analysis-disable-or-enable-all-ghae.png) {% endif %} - {% ifversion fpt or ghes = 3.0 or ghec %} + {% ifversion fpt or ghec %} 3. (可选)为组织中的新仓库默认启用该功能。 {% ifversion fpt or ghec %} ![新仓库的"Enable by default(默认启用)"选项](/assets/images/help/organizations/security-and-analysis-enable-by-default-in-modal.png) {% endif %} - {% ifversion ghes = 3.0 %} - ![新仓库的"Enable by default(默认启用)"选项](/assets/images/enterprise/3.0/organizations/security-and-analysis-secret-scanning-enable-by-default.png) + {% endif %} - {% endif %} - {% ifversion fpt or ghes = 3.0 or ghec %} + {% ifversion fpt or ghec %} 4. 单击 **Disable FEATURE(禁用功能)**或 **Enable FEATURE(启用功能)**以禁用或启用组织中所有仓库的功能。 {% ifversion fpt or ghec %} ![用于禁用或启用功能的按钮](/assets/images/help/organizations/security-and-analysis-enable-dependency-graph.png) {% endif %} - {% ifversion ghes = 3.0 %} - ![用于禁用或启用功能的按钮](/assets/images/enterprise/3.0/organizations/security-and-analysis-enable-secret-scanning.png) + {% endif %} - {% endif %} - {% ifversion ghae or ghes > 3.0 %} + {% ifversion ghae or ghes %} 3. 单击 **Enable/Disable all(全部启用/禁用)**或 **Enable/Disable for eligible repositories(对合格的仓库启用/禁用)**以确认更改。 ![用于为组织中所有符合条件的仓库启用功能的按钮](/assets/images/enterprise/github-ae/organizations/security-and-analysis-enable-secret-scanning-existing-repos-ghae.png) {% endif %} @@ -102,24 +96,21 @@ shortTitle: 管理安全和分析 ## 添加新仓库时自动启用或禁用功能 1. 转到组织的安全和分析设置。 更多信息请参阅“[显示安全和分析设置](#displaying-the-security-and-analysis-settings)”。 -2. 在功能右边的“Configure security and analysis features(配置安全性和分析功能)”下,默认为组织中的新仓库{% ifversion fpt or ghec %} 或所有私有仓库{% endif %} 启用或禁用该功能。 - {% ifversion fpt %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/help/organizations/security-and-analysis-enable-or-disable-feature-checkbox-fpt.png) - {% endif %} - {% ifversion ghec %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/help/organizations/security-and-analysis-enable-or-disable-feature-checkbox-ghec.png) +2. Under "Code security and analysis", to the right of the feature, enable or disable the feature by default for new repositories{% ifversion fpt or ghec %}, or all new private repositories,{% endif %} in your organization. + {% ifversion fpt or ghec %} + ![Screenshot of a checkbox for enabling a feature for new repositories](/assets/images/help/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png) {% endif %} {% ifversion ghes > 3.2 %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/enterprise/3.3/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png) + ![Screenshot of a checkbox for enabling a feature for new repositories](/assets/images/enterprise/3.3/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png) {% endif %} {% ifversion ghes = 3.1 or ghes = 3.2 %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/enterprise/3.1/help/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png) + ![Screenshot of a checkbox for enabling a feature for new repositories](/assets/images/enterprise/3.1/help/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png) {% endif %} {% ifversion ghes = 3.0 %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/enterprise/3.0/organizations/security-and-analysis-enable-or-disable-secret-scanning-checkbox.png) + ![Screenshot of a checkbox for enabling a feature for new repositories](/assets/images/enterprise/3.0/organizations/security-and-analysis-enable-or-disable-secret-scanning-checkbox.png) {% endif %} {% ifversion ghae %} - ![用于对新仓库启用或禁用功能的复选框](/assets/images/enterprise/github-ae/organizations/security-and-analysis-enable-or-disable-secret-scanning-checkbox-ghae.png) + ![Screenshot of a checkbox for enabling a feature for new repositories](/assets/images/enterprise/github-ae/organizations/security-and-analysis-enable-or-disable-secret-scanning-checkbox-ghae.png) {% endif %} {% ifversion ghec or ghes > 3.2 %} @@ -143,7 +134,7 @@ shortTitle: 管理安全和分析 1. (可选)要从列表中删除仓库,在仓库右侧单击 {% octicon "x" aria-label="The X icon" %}。 !["X" 按钮来删除仓库。](/assets/images/help/organizations/dependabot-private-repository-list.png) {% endif %} -{% ifversion ghes > 3.0 or ghec %} +{% ifversion ghes or ghec %} ## 从组织中的个别仓库中移除对 {% data variables.product.prodname_GH_advanced_security %} 的访问权限 diff --git a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md index 0130ed90b1..b2db7c4e23 100644 --- a/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md +++ b/translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization.md @@ -57,12 +57,12 @@ The audit log lists events triggered by activities that affect your organization | [`ip_allow_list_entry`](#ip_allow_list_entry) | Contains activities related to the creation, deletion, and editing of an IP allow list entry for an organization. | | [`议题`](#issue-category-actions) | 包含与删除议题相关的活动。 |{% ifversion fpt or ghec %} | [`marketplace_agreement_signature`](#marketplace_agreement_signature-category-actions) | 包含与签署 {% data variables.product.prodname_marketplace %} 开发者协议相关的所有活动。 | -| [`marketplace_listing`](#marketplace_listing-category-actions) | 包含与在 {% data variables.product.prodname_marketplace %} 中上架应用程序相关的所有活动。{% endif %}{% ifversion fpt or ghes > 3.0 or ghec %} +| [`marketplace_listing`](#marketplace_listing-category-actions) | 包含与在 {% data variables.product.prodname_marketplace %} 中上架应用程序相关的所有活动。{% endif %}{% ifversion fpt or ghes or ghec %} | [`members_can_create_pages`](#members_can_create_pages-category-actions) | 包含与管理组织仓库的 {% data variables.product.prodname_pages %} 站点发布相关的所有活动。 更多信息请参阅“[管理组织的 {% data variables.product.prodname_pages %} 站点发布](/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization)”。 |{% endif %} | [`org`](#org-category-actions) | 包含与组织成员身份相关的活动。{% ifversion ghec %} | [`org_credential_authorization`](#org_credential_authorization-category-actions) | 包含与授权凭据以用于 SAML 单点登录相关的所有活动。{% endif %}{% ifversion fpt or ghes or ghae or ghec %} | [`organization_label`](#organization_label-category-actions) | 包含与组织中仓库的默认标签相关的所有活动。{% endif %} -| [`oauth_application`](#oauth_application-category-actions) | 包含与 OAuth 应用程序相关的所有活动。{% ifversion fpt or ghes > 3.0 or ghec %} +| [`oauth_application`](#oauth_application-category-actions) | 包含与 OAuth 应用程序相关的所有活动。{% ifversion fpt or ghes or ghec %} | [`包`](#packages-category-actions) | 包含与 {% data variables.product.prodname_registry %} 相关的所有活动。{% endif %}{% ifversion fpt or ghec %} | [`payment_method`](#payment_method-category-actions) | 包含与组织如何支付 GitHub 相关的所有活动。{% endif %} | [`profile_picture`](#profile_picture-category-actions) | 包含与组织的头像相关的所有活动。 | @@ -107,7 +107,6 @@ The audit log lists events triggered by activities that affect your organization * `created:<=2014-07-08` 查找在 2014 年 7 月 8 日或之前发生的所有事件。 * `created:2014-07-01..2014-07-31` 会找到在 2014 年 7 月发生的所有事件。 - {% note %} **Note**: The audit log contains data for the current month and every day of the previous six months. @@ -405,7 +404,7 @@ By default, only events from the past three months are returned. To include olde {% endif %} -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} ### `members_can_create_pages` 类操作 @@ -422,9 +421,9 @@ By default, only events from the past three months are returned. To include olde | 操作 | 描述 | | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `add_member` | Triggered when a user joins an organization.{% ifversion fpt or ghes > 3.0 or ghae or ghec %} +| `add_member` | Triggered when a user joins an organization. | | `advanced_security_policy_selected_member_disabled` | 当企业所有者阻止为组织拥有的仓库启用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 {% data reusables.advanced-security.more-information-about-enforcement-policy %} -| `advanced_security_policy_selected_member_enabled` | 当企业所有者允许为组织拥有的仓库启用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 {% data reusables.advanced-security.more-information-about-enforcement-policy %}{% endif %}{% ifversion fpt or ghec %} +| `advanced_security_policy_selected_member_enabled` | 当企业所有者允许为组织拥有的仓库启用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 {% data reusables.advanced-security.more-information-about-enforcement-policy %}{% ifversion fpt or ghec %} | `audit_log_export` | 组织管理员[创建组织审核日志导出](#exporting-the-audit-log)时触发。 如果导出包含查询,则日志将列出所使用的查询以及与该查询匹配的审核日志条目数量。 | | `block_user` | 当组织所有者[阻止用户访问组织的仓库](/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-organization)时触发。 | | `cancel_invitation` | 当组织邀请被撤销时触发的。 |{% endif %}{% ifversion fpt or ghes or ghec %} @@ -503,7 +502,7 @@ By default, only events from the past three months are returned. To include olde | `revoke_tokens` | 当 {% data variables.product.prodname_oauth_app %} 的用户令牌被撤销时触发。 | | `转让` | 当现有 {% data variables.product.prodname_oauth_app %} 被转让到新组织时触发。 | -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} ### `packages` 类操作 | 操作 | 描述 | @@ -607,9 +606,9 @@ By default, only events from the past three months are returned. To include olde | `access` | 当用户[更改组织中仓库的可见性](/github/administering-a-repository/setting-repository-visibility)时触发。 | | `actions_enabled` | 为仓库启用 {% data variables.product.prodname_actions %} 时触发。 可以使用用户界面查看。 当您使用 REST API 访问审计日志时,不包括此事件。 更多信息请参阅“[使用 REST API](#using-the-rest-api)”。 | | `add_member` | 当用户接受[邀请以获取仓库协作权限](/articles/inviting-collaborators-to-a-personal-repository)时触发。 | -| `add_topic` | 当仓库管理员向仓库[添加主题](/articles/classifying-your-repository-with-topics)时触发。{% ifversion fpt or ghes > 3.0 or ghae or ghec %} +| `add_topic` | 当仓库管理员向仓库[添加主题](/articles/classifying-your-repository-with-topics)时触发。 | | `advanced_security_disabled` | 当仓库管理员为仓库禁用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 更多信息请参阅“[管理仓库的安全和分析设置](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)”。 | -| `advanced_security_enabled` | 当仓库管理员为仓库启用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 更多信息请参阅“[管理仓库的安全和分析设置](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)”。{% endif %} +| `advanced_security_enabled` | 当仓库管理员为仓库启用 {% data variables.product.prodname_GH_advanced_security %} 功能时触发。 更多信息请参阅“[管理仓库的安全和分析设置](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository)”。 | | `archived` | 当仓库管理员[存档仓库](/articles/about-archiving-repositories)时触发。{% ifversion ghes %} | `config.disable_anonymous_git_access` | 当公共仓库中[禁用匿名 Git 读取权限](/enterprise/{{ currentVersion }}/user/articles/enabling-anonymous-git-read-access-for-a-repository)时触发。 | | `config.enable_anonymous_git_access` | 当公共仓库中[启用匿名 Git 读取权限](/enterprise/{{ currentVersion }}/user/articles/enabling-anonymous-git-read-access-for-a-repository)时触发。 | diff --git a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization.md b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization.md index f6e41f026c..683628112a 100644 --- a/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization.md +++ b/translations/zh-CN/content/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization.md @@ -59,99 +59,95 @@ In addition to managing organization-level settings, organization owners have ad **Note:** The roles required to use security features are listed in "[Access requirements for security features](#access-requirements-for-security-features)" below. {% endnote %} - {% endif %} -| 仓库操作 | 读取 | 分类 | 写入 | 维护 | 管理员 | -|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:-----:|:-----:|:--------------------------------------------------------:| -| Manage [individual](/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository), [team](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository), and [outside collaborator](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization) access to the repository | | | | | **X** | -| 从人员或团队的已分配仓库拉取 | **X** | **X** | **X** | **X** | **X** | -| 复刻人员或团队的已分配仓库 | **X** | **X** | **X** | **X** | **X** | -| 编辑和删除自己的评论 | **X** | **X** | **X** | **X** | **X** | -| 打开议题 | **X** | **X** | **X** | **X** | **X** | -| 关闭自己打开的议题 | **X** | **X** | **X** | **X** | **X** | -| 重新打开自己关闭的议题 | **X** | **X** | **X** | **X** | **X** | -| 受理议题 | **X** | **X** | **X** | **X** | **X** | -| 从团队已分配仓库的复刻发送拉取请求 | **X** | **X** | **X** | **X** | **X** | -| 提交拉取请求审查 | **X** | **X** | **X** | **X** | **X** | -| 查看已发布的版本 | **X** | **X** | **X** | **X** | **X** |{% ifversion fpt or ghec %} -| 查看 [GitHub Actions 工作流程运行](/actions/automating-your-workflow-with-github-actions/managing-a-workflow-run) | **X** | **X** | **X** | **X** | **X** +| 仓库操作 | 读取 | 分类 | 写入 | 维护 | 管理员 | +|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:-----:|:-----:|:---------------------------------------------:| +| Manage [individual](/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository), [team](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository), and [outside collaborator](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization) access to the repository | | | | | **X** | +| 从人员或团队的已分配仓库拉取 | **X** | **X** | **X** | **X** | **X** | +| 复刻人员或团队的已分配仓库 | **X** | **X** | **X** | **X** | **X** | +| 编辑和删除自己的评论 | **X** | **X** | **X** | **X** | **X** | +| 打开议题 | **X** | **X** | **X** | **X** | **X** | +| 关闭自己打开的议题 | **X** | **X** | **X** | **X** | **X** | +| 重新打开自己关闭的议题 | **X** | **X** | **X** | **X** | **X** | +| 受理议题 | **X** | **X** | **X** | **X** | **X** | +| 从团队已分配仓库的复刻发送拉取请求 | **X** | **X** | **X** | **X** | **X** | +| 提交拉取请求审查 | **X** | **X** | **X** | **X** | **X** | +| 查看已发布的版本 | **X** | **X** | **X** | **X** | **X** |{% ifversion fpt or ghec %} +| 查看 [GitHub Actions 工作流程运行](/actions/automating-your-workflow-with-github-actions/managing-a-workflow-run) | **X** | **X** | **X** | **X** | **X** {% endif %} -| 编辑公共仓库中的 Wiki | **X** | **X** | **X** | **X** | **X** | -| 编辑私有仓库中的 Wiki | | | **X** | **X** | **X** |{% ifversion fpt or ghec %} -| [举报滥用或垃圾内容](/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam) | **X** | **X** | **X** | **X** | **X** +| 编辑公共仓库中的 Wiki | **X** | **X** | **X** | **X** | **X** | +| 编辑私有仓库中的 Wiki | | | **X** | **X** | **X** |{% ifversion fpt or ghec %} +| [举报滥用或垃圾内容](/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam) | **X** | **X** | **X** | **X** | **X** {% endif %} -| 应用/忽略标签 | | **X** | **X** | **X** | **X** | -| 创建、编辑、删除标签 | | | **X** | **X** | **X** | -| 关闭、重新打开和分配所有议题与拉取请求 | | **X** | **X** | **X** | **X** |{% ifversion fpt or ghae or ghes > 3.0 or ghec %} -| [在拉取请求上启用和禁用自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository) | | | **X** | **X** | **X** +| 应用/忽略标签 | | **X** | **X** | **X** | **X** | +| 创建、编辑、删除标签 | | | **X** | **X** | **X** | +| 关闭、重新打开和分配所有议题与拉取请求 | | **X** | **X** | **X** | **X** | +| [在拉取请求上启用和禁用自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository) | | | **X** | **X** | **X** | +| 应用里程碑 | | **X** | **X** | **X** | **X** | +| 标记[重复的议题和拉取请求](/articles/about-duplicate-issues-and-pull-requests) | | **X** | **X** | **X** | **X** | +| 申请[拉取请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) | | **X** | **X** | **X** | **X** | +| 合并[拉取请求](/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges) | | | **X** | **X** | **X** | +| 推送到(写入)人员或团队的已分配仓库 | | | **X** | **X** | **X** | +| 编辑和删除任何人对提交、拉取请求和议题的评论 | | | **X** | **X** | **X** | +| [隐藏任何人的评论](/communities/moderating-comments-and-conversations/managing-disruptive-comments) | | | **X** | **X** | **X** | +| [锁定对话](/communities/moderating-comments-and-conversations/locking-conversations) | | | **X** | **X** | **X** | +| 转让议题(更多信息请参阅“[将议题转让给其他仓库](/articles/transferring-an-issue-to-another-repository)”) | | | **X** | **X** | **X** | +| [作为仓库的指定代码所有者](/articles/about-code-owners) | | | **X** | **X** | **X** | +| [将拉取请求草稿标记为可供审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** | +| [将拉取请求转换为草稿](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** | +| 提交影响拉取请求可合并性的审查 | | | **X** | **X** | **X** | +| 对拉取请求[应用建议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) | | | **X** | **X** | **X** | +| 创建[状态检查](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) | | | **X** | **X** | **X** |{% ifversion fpt or ghec %} +| 创建、编辑、运行、重新运行和取消 [GitHub Actions 工作流程](/actions/automating-your-workflow-with-github-actions/) | | | **X** | **X** | **X** {% endif %} -| 应用里程碑 | | **X** | **X** | **X** | **X** | -| 标记[重复的议题和拉取请求](/articles/about-duplicate-issues-and-pull-requests) | | **X** | **X** | **X** | **X** | -| 申请[拉取请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) | | **X** | **X** | **X** | **X** | -| 合并[拉取请求](/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges) | | | **X** | **X** | **X** | -| 推送到(写入)人员或团队的已分配仓库 | | | **X** | **X** | **X** | -| 编辑和删除任何人对提交、拉取请求和议题的评论 | | | **X** | **X** | **X** | -| [隐藏任何人的评论](/communities/moderating-comments-and-conversations/managing-disruptive-comments) | | | **X** | **X** | **X** | -| [锁定对话](/communities/moderating-comments-and-conversations/locking-conversations) | | | **X** | **X** | **X** | -| 转让议题(更多信息请参阅“[将议题转让给其他仓库](/articles/transferring-an-issue-to-another-repository)”) | | | **X** | **X** | **X** | -| [作为仓库的指定代码所有者](/articles/about-code-owners) | | | **X** | **X** | **X** | -| [将拉取请求草稿标记为可供审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** | -| [将拉取请求转换为草稿](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** | -| 提交影响拉取请求可合并性的审查 | | | **X** | **X** | **X** | -| 对拉取请求[应用建议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) | | | **X** | **X** | **X** | -| 创建[状态检查](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) | | | **X** | **X** | **X** |{% ifversion fpt or ghec %} -| 创建、编辑、运行、重新运行和取消 [GitHub Actions 工作流程](/actions/automating-your-workflow-with-github-actions/) | | | **X** | **X** | **X** +| 创建和编辑发行版 | | | **X** | **X** | **X** | +| 查看发行版草稿 | | | **X** | **X** | **X** | +| 编辑仓库的说明 | | | | **X** | **X** |{% ifversion fpt or ghae or ghec %} +| [查看和安装包](/packages/publishing-and-managing-packages) | **X** | **X** | **X** | **X** | **X** | +| [发布包](/packages/publishing-and-managing-packages/publishing-a-package) | | | **X** | **X** | **X** | +| [删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package) | | | | | **X** |{% endif %} +| 管理[主题](/articles/classifying-your-repository-with-topics) | | | | **X** | **X** | +| 启用 wiki 和限制 wiki 编辑器 | | | | **X** | **X** | +| 启用项目板 | | | | **X** | **X** | +| 配置[拉取请求合并](/articles/configuring-pull-request-merges) | | | | **X** | **X** | +| 配置[ {% data variables.product.prodname_pages %} 的发布源](/articles/configuring-a-publishing-source-for-github-pages) | | | | **X** | **X** | +| [推送到受保护分支](/articles/about-protected-branches) | | | | **X** | **X** | +| [创建和编辑仓库社交卡](/articles/customizing-your-repositorys-social-media-preview) | | | | **X** | **X** |{% ifversion fpt or ghec %} +| 限制[仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository) | | | | **X** | **X** {% endif %} -| 创建和编辑发行版 | | | **X** | **X** | **X** | -| 查看发行版草稿 | | | **X** | **X** | **X** | -| 编辑仓库的说明 | | | | **X** | **X** |{% ifversion fpt or ghae or ghec %} -| [查看和安装包](/packages/publishing-and-managing-packages) | **X** | **X** | **X** | **X** | **X** | -| [发布包](/packages/publishing-and-managing-packages/publishing-a-package) | | | **X** | **X** | **X** | -| | | | | | | -| {% ifversion fpt or ghes > 3.0 or ghec or ghae %}[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[删除包](/packages/learn-github-packages/deleting-a-package){% endif %} | | | | | **X** | {% endif %} -| 管理[主题](/articles/classifying-your-repository-with-topics) | | | | **X** | **X** | -| 启用 wiki 和限制 wiki 编辑器 | | | | **X** | **X** | -| 启用项目板 | | | | **X** | **X** | -| 配置[拉取请求合并](/articles/configuring-pull-request-merges) | | | | **X** | **X** | -| 配置[ {% data variables.product.prodname_pages %} 的发布源](/articles/configuring-a-publishing-source-for-github-pages) | | | | **X** | **X** | -| [推送到受保护分支](/articles/about-protected-branches) | | | | **X** | **X** | -| [创建和编辑仓库社交卡](/articles/customizing-your-repositorys-social-media-preview) | | | | **X** | **X** |{% ifversion fpt or ghec %} -| 限制[仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository) | | | | **X** | **X** +| 删除议题(请参阅“[删除议题](/articles/deleting-an-issue)”) | | | | | **X** | +| 合并受保护分支上的拉取请求(即使没有批准审查) | | | | | **X** | +| [定义仓库的代码所有者](/articles/about-code-owners) | | | | | **X** | +| 将仓库添加到团队(详细信息请参阅“[管理团队对组织仓库的访问](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository#giving-a-team-access-to-a-repository)”) | | | | | **X** | +| [管理外部协作者对仓库的权限](/articles/adding-outside-collaborators-to-repositories-in-your-organization) | | | | | **X** | +| [更改仓库的可见性](/articles/restricting-repository-visibility-changes-in-your-organization) | | | | | **X** | +| 将仓库设为模板(请参阅“[创建模板仓库](/articles/creating-a-template-repository)”) | | | | | **X** | +| 更改仓库设置 | | | | | **X** | +| 管理团队和协作者对仓库的权限 | | | | | **X** | +| 编辑仓库的默认分支 | | | | | **X** | +| 重命名仓库的默认分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | | | **X** | +| 重命名仓库默认分支以外的分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | **X** | **X** | **X** | +| 管理 web 挂钩和部署密钥 | | | | | **X** |{% ifversion fpt or ghec %} +| [管理私有仓库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository) | | | | | **X** {% endif %} -| 删除议题(请参阅“[删除议题](/articles/deleting-an-issue)”) | | | | | **X** | -| 合并受保护分支上的拉取请求(即使没有批准审查) | | | | | **X** | -| [定义仓库的代码所有者](/articles/about-code-owners) | | | | | **X** | -| 将仓库添加到团队(详细信息请参阅“[管理团队对组织仓库的访问](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository#giving-a-team-access-to-a-repository)”) | | | | | **X** | -| [管理外部协作者对仓库的权限](/articles/adding-outside-collaborators-to-repositories-in-your-organization) | | | | | **X** | -| [更改仓库的可见性](/articles/restricting-repository-visibility-changes-in-your-organization) | | | | | **X** | -| 将仓库设为模板(请参阅“[创建模板仓库](/articles/creating-a-template-repository)”) | | | | | **X** | -| 更改仓库设置 | | | | | **X** | -| 管理团队和协作者对仓库的权限 | | | | | **X** | -| 编辑仓库的默认分支 | | | | | **X** |{% ifversion fpt or ghes > 3.0 or ghae or ghec %} -| 重命名仓库的默认分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | | | **X** | -| 重命名仓库默认分支以外的分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | **X** | **X** | **X** +| [管理仓库的复刻策略](/github/administering-a-repository/managing-the-forking-policy-for-your-repository) | | | | | **X** | +| [将仓库转让给组织](/articles/restricting-repository-creation-in-your-organization) | | | | | **X** | +| [删除仓库或将仓库转让到组织外部](/articles/setting-permissions-for-deleting-or-transferring-repositories) | | | | | **X** | +| [存档仓库](/articles/about-archiving-repositories) | | | | | **X** |{% ifversion fpt or ghec %} +| 显示赞助按钮(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”)。 | | | | | **X** {% endif %} -| 管理 web 挂钩和部署密钥 | | | | | **X** |{% ifversion fpt or ghec %} -| [管理私有仓库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository) | | | | | **X** -{% endif %} -| [管理仓库的复刻策略](/github/administering-a-repository/managing-the-forking-policy-for-your-repository) | | | | | **X** | -| [将仓库转让给组织](/articles/restricting-repository-creation-in-your-organization) | | | | | **X** | -| [删除仓库或将仓库转让到组织外部](/articles/setting-permissions-for-deleting-or-transferring-repositories) | | | | | **X** | -| [存档仓库](/articles/about-archiving-repositories) | | | | | **X** |{% ifversion fpt or ghec %} -| 显示赞助按钮(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”)。 | | | | | **X** -{% endif %} -| Create autolink references to external resources, like Jira or Zendesk (see "[Configuring autolinks to reference external resources](/articles/configuring-autolinks-to-reference-external-resources)") | | | | | **X** |{% ifversion fpt or ghec %} -| 在仓库中[启用 {% data variables.product.prodname_discussions %}](/github/administering-a-repository/enabling-or-disabling-github-discussions-for-a-repository) | | | | **X** | **X** | -| 为 {% data variables.product.prodname_discussions %} [创建和编辑类别](/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository) | | | | **X** | **X** | -| [将讨论移动到其他类别](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | -| [将讨论转移到](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository)新仓库 | | | **X** | **X** | **X** | -| [管理置顶的讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | -| [批量将议题转换为讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | -| [锁定和解锁讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** | -| [单独将议题转换为讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** | -| [创建新的讨论并对现有讨论发表评论](/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) | **X** | **X** | **X** | **X** | **X** | -| [删除讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository#deleting-a-discussion) | | **X** | | **X** | **X** |{% endif %}{% ifversion fpt or ghec %} -| 创建 [codespaces](/codespaces/about-codespaces) | | | **X** | **X** | **X** +| Create autolink references to external resources, like Jira or Zendesk (see "[Configuring autolinks to reference external resources](/articles/configuring-autolinks-to-reference-external-resources)") | | | | | **X** |{% ifversion fpt or ghec %} +| 在仓库中[启用 {% data variables.product.prodname_discussions %}](/github/administering-a-repository/enabling-or-disabling-github-discussions-for-a-repository) | | | | **X** | **X** | +| 为 {% data variables.product.prodname_discussions %} [创建和编辑类别](/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository) | | | | **X** | **X** | +| [将讨论移动到其他类别](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | +| [将讨论转移到](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository)新仓库 | | | **X** | **X** | **X** | +| [管理置顶的讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | +| [批量将议题转换为讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** | +| [锁定和解锁讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** | +| [单独将议题转换为讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** | +| [创建新的讨论并对现有讨论发表评论](/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) | **X** | **X** | **X** | **X** | **X** | +| [删除讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository#deleting-a-discussion) | | **X** | | **X** | **X** |{% endif %}{% ifversion fpt or ghec %} +| 创建 [codespaces](/codespaces/about-codespaces) | | | **X** | **X** | **X** {% endif %} ### Access requirements for security features @@ -159,8 +155,7 @@ In addition to managing organization-level settings, organization owners have ad In this section, you can find the access required for security features, such as {% data variables.product.prodname_advanced_security %} features. | 仓库操作 | 读取 | 分类 | 写入 | 维护 | 管理员 | -|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:------------------------------------------------------:|:------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:| -| {% ifversion fpt or ghes or ghae-issue-4864 or ghec %} | | | | | | +|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:------------------------------------------------------:|:------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|{% ifversion fpt or ghes or ghae-issue-4864 or ghec %} | 接收仓库中[易受攻击的依赖项的 {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies) | | | | | **X** | | [忽略 {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/viewing-and-updating-vulnerable-dependencies-in-your-repository) | | | | | **X** |{% endif %}{% ifversion ghes or ghae-issue-4864 or ghec %} | @@ -173,18 +168,14 @@ In this section, you can find the access required for security features, such as | [查看依赖项审查](/code-security/supply-chain-security/about-dependency-review) | **X** | **X** | **X** | **X** | **X** {% endif %} | [查看拉取请求上的 {% data variables.product.prodname_code_scanning %} 警报](/github/finding-security-vulnerabilities-and-errors-in-your-code/triaging-code-scanning-alerts-in-pull-requests) | **X** | **X** | **X** | **X** | **X** | -| [列出、忽略和删除 {% data variables.product.prodname_code_scanning %} 警报](/github/finding-security-vulnerabilities-and-errors-in-your-code/managing-code-scanning-alerts-for-your-repository) | | | **X** | **X** | **X** |{% ifversion fpt or ghes > 3.0 or ghae or ghec %} -| [查看仓库中的 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | **X**{% ifversion not ghae %}[1]{% endif %} | **X**{% ifversion not ghae %}[1]{% endif %} | **X** |{% endif %}{% ifversion ghes > 3.0 or ghae or ghec %} +| [列出、忽略和删除 {% data variables.product.prodname_code_scanning %} 警报](/github/finding-security-vulnerabilities-and-errors-in-your-code/managing-code-scanning-alerts-for-your-repository) | | | **X** | **X** | **X** | +| [查看仓库中的 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | **X**{% ifversion not ghae %}[1]{% endif %} | **X**{% ifversion not ghae %}[1]{% endif %} | **X** |{% ifversion ghes or ghae or ghec %} | -| [解决、撤销或重新打开 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | **X**{% ifversion not ghae %}[1]{% endif %} | **X**{% ifversion not ghae %}[1]{% endif %} | **X** |{% endif %}{% ifversion ghes = 3.0 %} -| [查看仓库中的 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | | | **X** | -| [解决、撤销或重新打开 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | | | **X** |{% endif %}{% ifversion ghes or ghae-issue-4864 or ghec %} +| [解决、撤销或重新打开 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-alerts-from-secret-scanning) | | | **X**{% ifversion not ghae %}[1]{% endif %} | **X**{% ifversion not ghae %}[1]{% endif %} | **X** |{% endif %}{% ifversion ghes or ghae-issue-4864 or ghec %} | [指定其他人员或团队接收仓库中的 {% data variables.product.prodname_secret_scanning %} 警报](/github/administering-a-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts) | | | | | **X** {% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} [1] 仓库作者和维护者只能看到他们自己提交的警报信息。 -{% endif %} ## 延伸阅读 diff --git a/translations/zh-CN/content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md b/translations/zh-CN/content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md index 226cd076dc..aebc747e0c 100644 --- a/translations/zh-CN/content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md @@ -51,7 +51,7 @@ shortTitle: 禁用或限制操作 {% data reusables.profile.org_settings %} {% data reusables.organizations.settings-sidebar-actions %} 1. 在 **Policies(策略)**下,选择 **Allow select actions(允许选择操作)**并将所需操作添加到列表中。 - {%- ifversion ghes > 3.0 %} + {%- ifversion ghes %} ![添加操作到允许列表](/assets/images/help/organizations/actions-policy-allow-list.png) {%- else %} ![添加操作到允许列表](/assets/images/enterprise/github-ae/organizations/actions-policy-allow-list.png) diff --git a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization.md b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization.md index c1dce79669..c9f8acbc66 100644 --- a/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization.md +++ b/translations/zh-CN/content/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization.md @@ -68,4 +68,4 @@ The invited person will receive an invitation email asking them to become a bill ## Further reading -- "[Inviting people to manage your enterprise](/enterprise-cloud@latest/admin/user-management/managing-users-in-your-enterprise/inviting-people-to-manage-your-enterprise)"{% ifversion fpt %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %} \ No newline at end of file +- "[Inviting people to manage your enterprise](/enterprise-cloud@latest/admin/user-management/managing-users-in-your-enterprise/inviting-people-to-manage-your-enterprise)"{% ifversion fpt %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %} diff --git a/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md b/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md index 449ca03e9c..10df6add9e 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md +++ b/translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md @@ -47,16 +47,16 @@ shortTitle: 关于权限 例如: - 要从仓库下载和安装包,您的令牌必须具有 `read:packages` 作用域,并且您的用户帐户必须具有读取权限。 -- {% ifversion fpt or ghes > 3.0 or ghec %}要在 {% data variables.product.product_name %}上删除软件包,您的令牌至少必须有 `delete:packages` 和 `read:packages` 作用域。 Repo-scoped 软件包也需要 `repo` 作用域。{% elsif ghes < 3.1 %}要在 {% data variables.product.product_name %} 上删除私有软件的指定版本,您的令牌必须具有 `delete:packages` 和 `repo` 作用域。 公共包不能删除。{% elsif ghae %}要在 {% data variables.product.product_name %} 上删除包的指定版本,您必须具有 `delete:packages` 和 `repo` 作用域。{% endif %} 更多信息请参阅“{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[删除包](/packages/learn-github-packages/deleting-a-package){% endif %}”。 +- {% ifversion fpt or ghes or ghec %}要在 {% data variables.product.product_name %}上删除软件包,您的令牌至少必须有 `delete:packages` 和 `read:packages` 作用域。 The `repo` scope is also required for repo-scoped packages.{% elsif ghae %}To delete a specified version of a package on {% data variables.product.product_name %}, your token must have the `delete:packages` and `repo` scope.{% endif %} For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)." -| 作用域 | 描述 | 所需权限 | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------ | -| `read:packages` | 从 {% data variables.product.prodname_registry %} 下载和安装包 | 读取 | -| `write:packages` | 将包上传和发布到 {% data variables.product.prodname_registry %} | 写入 | -| `delete:packages` | | | -| {% ifversion fpt or ghes > 3.0 or ghec %} 从 {% data variables.product.prodname_registry %} 删除包 {% elsif ghes < 3.1 %} 从 {% data variables.product.prodname_registry %} 删除私有包的指定版本{% elsif ghae %} 从 {% data variables.product.prodname_registry %} 删除包的指定版本 {% endif %} | | | -| 管理员 | | | -| `repo` | 上传和删除包(连同 `write:packages` 或 `delete:packages`) | 写入或管理员 | +| 作用域 | 描述 | 所需权限 | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------ | +| `read:packages` | 从 {% data variables.product.prodname_registry %} 下载和安装包 | 读取 | +| `write:packages` | 将包上传和发布到 {% data variables.product.prodname_registry %} | 写入 | +| `delete:packages` | | | +| {% ifversion fpt or ghes or ghec %} Delete packages from {% data variables.product.prodname_registry %} {% elsif ghae %} Delete specified versions of packages from {% data variables.product.prodname_registry %} {% endif %} | | | +| 管理员 | | | +| `repo` | 上传和删除包(连同 `write:packages` 或 `delete:packages`) | 写入或管理员 | 创建 {% data variables.product.prodname_actions %} 工作流程时,您可以使用 `GITHUB_TOKEN` 发布和安装 {% data variables.product.prodname_registry %} 中的包,无需存储和管理个人访问令牌。 diff --git a/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md b/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md index 35037f14f4..e19b536d2d 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md +++ b/translations/zh-CN/content/packages/learn-github-packages/deleting-and-restoring-a-package.md @@ -9,7 +9,7 @@ redirect_from: - /packages/guides/deleting-a-container-image versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghec: '*' ghae: '*' shortTitle: 删除和恢复包 diff --git a/translations/zh-CN/content/packages/learn-github-packages/introduction-to-github-packages.md b/translations/zh-CN/content/packages/learn-github-packages/introduction-to-github-packages.md index 8293c07bfb..1292276a7b 100644 --- a/translations/zh-CN/content/packages/learn-github-packages/introduction-to-github-packages.md +++ b/translations/zh-CN/content/packages/learn-github-packages/introduction-to-github-packages.md @@ -100,19 +100,15 @@ For more information about Docker and the {% data variables.product.prodname_con You can delete a package in the {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} user interface or using the REST API. For more information, see the "[{% data variables.product.prodname_registry %} API](/rest/reference/packages)." {% endif %} -{% ifversion ghes > 3.0 %} +{% ifversion ghes %} You can delete a private or public package in the {% data variables.product.product_name %} user interface. Or for repo-scoped packages, you can delete a version of a private package using GraphQL. {% endif %} -{% ifversion ghes < 3.1 %} -You can delete a version of a private package in the {% data variables.product.product_name %} user interface or using the GraphQL API. -{% endif %} - {% ifversion ghae %} You can delete a version of a package in the {% data variables.product.product_name %} user interface or using the GraphQL API. {% endif %} -When you use the GraphQL API to query and delete private packages, you must use the same token you use to authenticate to {% data variables.product.prodname_registry %}. For more information, see "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" and "[Forming calls with GraphQL]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql)." +When you use the GraphQL API to query and delete private packages, you must use the same token you use to authenticate to {% data variables.product.prodname_registry %}. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" and "[Forming calls with GraphQL]({% ifversion ghec %}/free-pro-team@latest{% endif %}/graphql/guides/forming-calls-with-graphql)." You can configure webhooks to subscribe to package-related events, such as when a package is published or updated. For more information, see the "[`package` webhook event](/webhooks/event-payloads/#package)." diff --git a/translations/zh-CN/content/packages/quickstart.md b/translations/zh-CN/content/packages/quickstart.md index 7896aa0be5..1e2a583f0c 100644 --- a/translations/zh-CN/content/packages/quickstart.md +++ b/translations/zh-CN/content/packages/quickstart.md @@ -18,7 +18,7 @@ In this guide, you'll create a {% data variables.product.prodname_actions %} wor ## Publishing your package -1. Create a new repository on {% data variables.product.prodname_dotcom %}, adding the `.gitignore` for Node. {% ifversion ghes < 3.1 %} Create a private repository if you’d like to delete this package later, public packages cannot be deleted.{% endif %} For more information, see "[Creating a new repository](/github/creating-cloning-and-archiving-repositories/creating-a-new-repository)." +1. Create a new repository on {% data variables.product.prodname_dotcom %}, adding the `.gitignore` for Node. For more information, see "[Creating a new repository](/github/creating-cloning-and-archiving-repositories/creating-a-new-repository)." 2. Clone the repository to your local machine. ```shell $ git clone https://{% ifversion ghae %}YOUR-HOSTNAME{% else %}github.com{% endif %}/YOUR-USERNAME/YOUR-REPOSITORY.git @@ -120,7 +120,6 @@ You can view all of the packages you have published. {% data reusables.package_registry.packages-from-code-tab %} {% data reusables.package_registry.navigate-to-packages %} - ## Installing a published package Now that you've published the package, you'll want to use it as a dependency across your projects. For more information, see "[Working with the npm registry](/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-a-package)." diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md index 74d94bffcf..724f57e18d 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md @@ -191,4 +191,4 @@ To install an Apache Maven package from {% data variables.product.prodname_regis ## Further reading - "[Working with the Gradle registry](/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry)" -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-docker-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-docker-registry.md index 4abbabae70..b7650ff4b4 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-docker-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-docker-registry.md @@ -263,6 +263,6 @@ $ docker pull HOSTNAME/OWNER/REPOSITORY/IMAGE_NAME:TAG_NAME ## Further reading -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" {% endif %} diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md index 3db0070fdb..7ff16231a5 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md @@ -216,4 +216,4 @@ To use a published package from {% data variables.product.prodname_registry %}, ## Further reading - "[Working with the Apache Maven registry](/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)" -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md index 1163c54a5f..b7d14dcd6a 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md @@ -27,7 +27,7 @@ If you publish over 1,000 npm package versions to {% data variables.product.prod In the future, to improve performance of the service, you won't be able to publish more than 1,000 versions of a package on {% data variables.product.prodname_dotcom %}. Any versions published before hitting this limit will still be readable. -If you reach this limit, consider deleting package versions or contact Support for help. When this limit is enforced, our documentation will be updated with a way to work around this limit. For more information, see "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" or "[Contacting Support](/packages/learn-github-packages/about-github-packages#contacting-support)." +If you reach this limit, consider deleting package versions or contact Support for help. When this limit is enforced, our documentation will be updated with a way to work around this limit. For more information, see "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" or "[Contacting Support](/packages/learn-github-packages/about-github-packages#contacting-support)." ## Authenticating to {% data variables.product.prodname_registry %} @@ -215,4 +215,4 @@ If your instance has subdomain isolation disabled: ## Further reading -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry.md index ac87e01173..0fb8b99987 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry.md @@ -111,7 +111,6 @@ If you don't already have a PAT to use for your account on {% ifversion ghae %}{ {% data reusables.package_registry.viewing-packages %} - ### Publishing a package using a *nuget.config* file When publishing, you need to use the same value for `OWNER` in your *csproj* file that you use in your *nuget.config* authentication file. Specify or increment the version number in your *.csproj* file, then use the `dotnet pack` command to create a *.nuspec* file for that version. For more information on creating your package, see "[Create and publish a package](https://docs.microsoft.com/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli)" in the Microsoft documentation. @@ -235,4 +234,4 @@ If you're using a nuspec file, ensure that it has a `repository` element with th ## Further reading -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" diff --git a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry.md b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry.md index d801f5049b..c17c6eaa13 100644 --- a/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry.md +++ b/translations/zh-CN/content/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry.md @@ -153,4 +153,4 @@ You can use gems from {% data variables.product.prodname_registry %} much like y ## Further reading -- "{% ifversion fpt or ghes > 3.0 or ghec or ghae %}[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package){% elsif ghes < 3.1 %}[Deleting a package](/packages/learn-github-packages/deleting-a-package){% endif %}" +- "[Deleting and restoring a package](/packages/learn-github-packages/deleting-and-restoring-a-package)" diff --git a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages.md b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages.md index e5dcbfed27..5c6a34fe9b 100644 --- a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages.md +++ b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages.md @@ -28,7 +28,7 @@ shortTitle: 在 GitHub Pages 中自定义域 您可以为您的网站设置 apex 和 `www` 子域配置。 有关 apex 域的更多信息,请参阅“[对您的 {% data variables.product.prodname_pages %} 网站使用 apex 域](#using-an-apex-domain-for-your-github-pages-site)”。 -建议始终使用 `www` 子域名,即使您也同时使用 apex 域。 When you create a new site with an apex domain, we automatically attempt to secure the `www` subdomain for use when serving your site's content, but you need to make the DNS changes to use the `www` subdomain. 如果您配置 `www` 子域,我们会自动尝试保护相关的 apex 域。 更多信息请参阅“[管理 {% data variables.product.prodname_pages %} 网站的自定义域](/articles/managing-a-custom-domain-for-your-github-pages-site)。 +建议始终使用 `www` 子域名,即使您也同时使用 apex 域。 当您使用顶级域创建新网站时,我们会自动尝试保护 `www` ,以便在提供站点内容时使用,但您需要进行 DNS 更改才能使用 `www` 子域。 如果您配置 `www` 子域,我们会自动尝试保护相关的 apex 域。 更多信息请参阅“[管理 {% data variables.product.prodname_pages %} 网站的自定义域](/articles/managing-a-custom-domain-for-your-github-pages-site)。 在配置用户或组织网站的自定义域后,自定义域名将替换未配置自定义域的帐户所拥有的任何项目网站 URL 的 `.github.io` 或 `.github.io` 部分。 例如,如果您的用户网站的自定义域名为 `www.octocat.com`,并且您拥有一个未自定义域名的项目网站,该网站从名为 `octo-project` 的仓库发布,则该仓库的 {% data variables.product.prodname_pages %} 网站将在 `www.octocat.com/octo-project` 上提供。 diff --git a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.md b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.md index 39658a71f1..90beb71d30 100644 --- a/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.md +++ b/translations/zh-CN/content/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.md @@ -114,7 +114,7 @@ shortTitle: 管理自定义域 使用 apex 域时,我们建议配置您的 {% data variables.product.prodname_pages %} 站点,以便在 apex 域和该域的 `www` 子域变体中托管内容。 -To set up a `www` subdomain alongside the apex domain, you must first configure an apex domain by creating an `ALIAS`, `ANAME`, or `A` record with your DNS provider. 更多信息请参阅“[配置 apex 域](#configuring-an-apex-domain)”。 +要在顶点域旁边设置 `www` 子域,必须先通过向 DNS 提供商创建 `ALIAS`、`ANAME` 或 `A` 记录来配置顶点域。 更多信息请参阅“[配置 apex 域](#configuring-an-apex-domain)”。 配置 apex 域后,您必须通过 DNS 提供商配置 CNAME 记录。 diff --git a/translations/zh-CN/content/pages/getting-started-with-github-pages/about-github-pages.md b/translations/zh-CN/content/pages/getting-started-with-github-pages/about-github-pages.md index 80fb7f8cb7..6f05a8fd66 100644 --- a/translations/zh-CN/content/pages/getting-started-with-github-pages/about-github-pages.md +++ b/translations/zh-CN/content/pages/getting-started-with-github-pages/about-github-pages.md @@ -34,7 +34,7 @@ You can host your site on {% data variables.product.prodname_dotcom %}'s `github To get started, see "[Creating a {% data variables.product.prodname_pages %} site](/articles/creating-a-github-pages-site)." -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} Organization owners can disable the publication of {% data variables.product.prodname_pages %} sites from the organization's repositories. For more information, see "[Managing the publication of {% data variables.product.prodname_pages %} sites for your organization](/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization)." {% endif %} @@ -81,7 +81,6 @@ If you want to keep the source files for your site in a different location, you If you choose the `/docs` folder of any branch as your publishing source, {% data variables.product.prodname_pages %} will read everything to publish your site{% ifversion fpt or ghec %}, including the _CNAME_ file,{% endif %} from the `/docs` folder.{% ifversion fpt or ghec %} For example, when you edit your custom domain through the {% data variables.product.prodname_pages %} settings, the custom domain will write to `/docs/CNAME`. For more information about _CNAME_ files, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/articles/managing-a-custom-domain-for-your-github-pages-site)."{% endif %} - ## Static site generators {% data variables.product.prodname_pages %} publishes any static files that you push to your repository. You can create your own static files or use a static site generator to build your site for you. You can also customize your own build process locally or on another server. We recommend Jekyll, a static site generator with built-in support for {% data variables.product.prodname_pages %} and a simplified build process. For more information, see "[About {% data variables.product.prodname_pages %} and Jekyll](/articles/about-github-pages-and-jekyll)." diff --git a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md index 7d0f9e3a27..b446f53540 100644 --- a/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md +++ b/translations/zh-CN/content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request.md @@ -4,7 +4,7 @@ intro: 您可以通过启用拉取请求自动合并(使拉取请求在满足 product: '{% data reusables.gated-features.auto-merge %}' versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' topics: @@ -45,7 +45,7 @@ You can provide feedback about auto-merge through a [{% data variables.product.p {% endnote %} {% endif %} - {% ifversion ghes > 3.0 or ghae or ghec %} + {% ifversion ghes or ghae or ghec %} 1. If you chose the merge or squash and merge methods, type a commit message and description. ![Fields to enter commit message and description](/assets/images/help/pull_requests/pull-request-information-fields-enterprise.png) {% endif %} 1. 单击 **Confirm auto-merge(确认自动合并)**。 diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository.md index 1a32f1ca93..e33130a27b 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository.md @@ -4,7 +4,7 @@ intro: 您可以允许或禁止仓库中拉取请求的自动合并。 product: '{% data reusables.gated-features.auto-merge %}' versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' permissions: People with maintainer permissions can manage auto-merge for pull requests in a repository. diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md index 01677b38d8..264d30dae4 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch.md @@ -29,12 +29,8 @@ shortTitle: 更改默认分支 {% endnote %} {% endif %} -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - 您也可以重命名默认分支。 更多信息请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”。 -{% endif %} - {% data reusables.branches.set-default-branch %} ## 基本要求 diff --git a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md index c0424f0812..b4db4343ab 100644 --- a/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md +++ b/translations/zh-CN/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md @@ -4,7 +4,7 @@ intro: 您可以更改仓库中分支的名称。 permissions: 'People with write permissions to a repository can rename a branch in the repository unless it is the [default branch](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch){% ifversion fpt or ghec or ghes > 3.3 %} or a [protected branch](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches){% endif %}. People with admin permissions can rename the default branch{% ifversion fpt or ghec or ghes > 3.3 %} and protected branches{% endif %}.' versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghae: '*' ghec: '*' topics: diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics.md index 89fd70d6b9..2c4c993ad0 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics.md @@ -28,7 +28,7 @@ shortTitle: 按主题分类 仓库管理员可以添加他们喜欢的任何主题到仓库。 适用于对仓库分类的主题包括仓库的预期目的、主题领域、社区或语言。{% ifversion fpt or ghec %} 此外,{% data variables.product.product_name %} 也会分析公共仓库内容,生成建议的主题,仓库管理员可以接受或拒绝。 私有仓库内容不可分析,也不会收到主题建议。{% endif %} -{% ifversion fpt %}Public and private{% elsif ghec or ghes %}Public, private, and internal{% elsif ghae %}Private and internal{% endif %} repositories can have topics, although you will only see private repositories that you have access to in topic search results. +{% ifversion fpt %}公共和私有{% elsif ghec or ghes %}公共、私有和内部{% elsif ghae %}私有和内部{% endif %} 存储库可以包含主题,但您只会在主题搜索结果中看到您有权访问的私有存储库。 您可以搜索与公共仓库关联的仓库。 更多信息请参阅“[搜索仓库](/search-github/searching-on-github/searching-for-repositories#search-by-topic)”。 您也可以搜索 {% data variables.product.product_name %} 中的主题列表。 更多信息请参阅“[搜索主题](/search-github/searching-on-github/searching-topics)”。 diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.md index d9dfad26e2..9614bb47e0 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.md @@ -60,7 +60,7 @@ shortTitle: 管理 GitHub Actions 设置 {% data reusables.repositories.settings-sidebar-actions %} 1. 在 **Actions permissions(操作权限)**下,选择 **Allow select actions(允许选择操作)**并将所需操作添加到列表中。 - {%- ifversion ghes > 3.0 %} + {%- ifversion ghes %} ![添加操作到允许列表](/assets/images/help/repository/actions-policy-allow-list.png) {%- else %} ![添加操作到允许列表](/assets/images/enterprise/github-ae/repository/actions-policy-allow-list.png) @@ -124,7 +124,7 @@ shortTitle: 管理 GitHub Actions 设置 企业成员可以使用内部存储库来处理项目,而无需公开共享信息。 更多信息请参阅“[关于仓库](/repositories/creating-and-managing-repositories/about-repositories#about-internal-repositories)”。 -您可以配置是否可以从存储库外部访问内部存储库中的 {% if internal-actions%}操作和 {% endif %}工作流程。{% if internal-actions %} 更多信息请参阅“[与企业共享操作和工作流程](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise)”。{% endif %} +You can use the steps below to configure whether {% if internal-actions%}actions and {% endif %}workflows in an internal repository can be accessed from outside the repository.{% if internal-actions %} For more information, see "[Sharing actions and workflows with your enterprise](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise)." Alternatively, you can use the REST API to set, or get details of, the level of access. For more information, see "[Get the level of access for workflows outside of the repository](/rest/reference/actions#get-the-level-of-access-for-workflows-outside-of-the-repository#get-the-level-of-access-for-workflows-outside-of-the-repository)" and "[Set the level of access for workflows outside of the repository](/rest/reference/actions#get-the-level-of-access-for-workflows-outside-of-the-repository#set-the-level-of-access-for-workflows-outside-of-the-repository)."{% endif %} 1. 在 {% data variables.product.prodname_dotcom %} 上,导航到内部仓库的主页面。 1. 在仓库名称下,单击 {% octicon "gear" aria-label="The gear icon" %}**Settings(设置)**。 diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md index 1619c037aa..0992deade4 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository.md @@ -32,7 +32,7 @@ You can manage a subset of security and analysis features for public repositorie {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} +4. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**.{% ifversion fpt %} !["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-public.png){% elsif ghec %} !["Enable" or "Disable" button for "Configure security and analysis" features in a public repository](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-public.png){% endif %} {% endif %} @@ -48,8 +48,8 @@ You can manage the security and analysis features for your {% ifversion fpt or g {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-security-and-analysis %} -{% ifversion fpt or ghes > 3.0 or ghec %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. {% ifversion not fpt %}The control for "{% data variables.product.prodname_GH_advanced_security %}" is disabled if your enterprise has no available licenses for {% data variables.product.prodname_advanced_security %}.{% endif %}{% ifversion fpt %} +{% ifversion fpt or ghes or ghec %} +4. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**. {% ifversion not fpt %}The control for "{% data variables.product.prodname_GH_advanced_security %}" is disabled if your enterprise has no available licenses for {% data variables.product.prodname_advanced_security %}.{% endif %}{% ifversion fpt %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-fpt-private.png){% elsif ghec %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghec-private.png){% elsif ghes > 3.2 %} !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/enterprise/3.3/repository/security-and-analysis-disable-or-enable-ghes.png){% else %} @@ -64,11 +64,11 @@ You can manage the security and analysis features for your {% ifversion fpt or g {% endif %} {% ifversion ghes = 3.0 %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. +4. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**. !["Enable" or "Disable" button for "Configure security and analysis" features](/assets/images/help/repository/security-and-analysis-disable-or-enable-ghe.png) {% endif %} {% ifversion ghae %} -4. Under "Configure security and analysis features", to the right of the feature, click **Disable** or **Enable**. Before you can enable "{% data variables.product.prodname_secret_scanning %}" for your repository, you may need to enable {% data variables.product.prodname_GH_advanced_security %}. +4. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**. Before you can enable "{% data variables.product.prodname_secret_scanning %}" for your repository, you may need to enable {% data variables.product.prodname_GH_advanced_security %}. ![Enable or disable {% data variables.product.prodname_GH_advanced_security %} or {% data variables.product.prodname_secret_scanning %} for your repository](/assets/images/enterprise/github-ae/repository/enable-ghas-secret-scanning-ghae.png) {% endif %} diff --git a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/index.md b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/index.md index 62955075fb..70975e4959 100644 --- a/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/index.md +++ b/translations/zh-CN/content/repositories/managing-your-repositorys-settings-and-features/index.md @@ -1,6 +1,6 @@ --- -title: Managing your repository’s settings and features -intro: 'You can customize your repository, enable or disable optional features for your repository, and manage your repository’s settings.' +title: 管理存储库的设置和功能 +intro: 您可以自定义存储库、启用或禁用存储库的可选功能以及管理存储库的设置。 redirect_from: - /categories/administering-a-repository - /articles/managing-repository-settings diff --git a/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md b/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md index 39da3c9065..4f0e7e8654 100644 --- a/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md +++ b/translations/zh-CN/content/repositories/releasing-projects-on-github/about-releases.md @@ -37,11 +37,11 @@ topics: 对仓库具有读取访问权限的任何人都可以查看和比较发行版,但只有对仓库具有写入权限的人员才能管理发行版。 更多信息请参阅“[管理仓库中的发行版](/github/administering-a-repository/managing-releases-in-a-repository)”。 {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4974 %} -You can manually create release notes while managing a release. Alternatively, you can automatically generate release notes from a default template, or customize your own release notes template. For more information, see "[Automatically generated release notes](/repositories/releasing-projects-on-github/automatically-generated-release-notes)." +您可以在管理版本时手动创建发行说明。 或者,您可以从默认模板自动生成发行说明,或自定义您自己的发行说明模板。 更多信息请参阅“[自动生成的发行说明](/repositories/releasing-projects-on-github/automatically-generated-release-notes)”。 {% endif %} {% ifversion fpt or ghec %} -People with admin permissions to a repository can choose whether {% data variables.large_files.product_name_long %} ({% data variables.large_files.product_name_short %}) objects are included in the ZIP files and tarballs that {% data variables.product.product_name %} creates for each release. For more information, see "[Managing {% data variables.large_files.product_name_short %} objects in archives of your repository](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository)." +对仓库具有管理员权限的人可以选择是否将 {% data variables.large_files.product_name_long %} ({% data variables.large_files.product_name_short %}) 对象包含在 {% data variables.product.product_name %} 为每个发行版创建的 ZIP 文件和 tarball 中。 更多信息请参阅“[管理仓库存档中的 {% data variables.large_files.product_name_short %} 对象](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository)”。 如果发行版修复了安全漏洞,您应该在仓库中发布安全通告。 {% data variables.product.prodname_dotcom %} 审查每个发布的安全通告,并且可能使用它向受影响的仓库发送 {% data variables.product.prodname_dependabot_alerts %}。 更多信息请参阅“[关于 GitHub 安全通告](/github/managing-security-vulnerabilities/about-github-security-advisories)”。 diff --git a/translations/zh-CN/content/repositories/releasing-projects-on-github/linking-to-releases.md b/translations/zh-CN/content/repositories/releasing-projects-on-github/linking-to-releases.md index 3ea858c356..c7dbfd3074 100644 --- a/translations/zh-CN/content/repositories/releasing-projects-on-github/linking-to-releases.md +++ b/translations/zh-CN/content/repositories/releasing-projects-on-github/linking-to-releases.md @@ -16,11 +16,11 @@ topics: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.releases %} -3. To copy a unique URL to your clipboard, find the release you want to link to, right click the title, and copy the URL. +3. 要将唯一 URL 复制到剪贴板,请找到要链接到的版本,右键单击标题,然后复制 URL。 {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-4974 %} - ![Release title](/assets/images/help/releases/release-title.png) + ![版本标题](/assets/images/help/releases/release-title.png) {% else %} - ![Release title](/assets/images/help/releases/release-title-old.png) + ![版本标题](/assets/images/help/releases/release-title-old.png) {% endif %} 1. 或者,右键单击 **Latest Release(最新发行版)**并复制 URL 以共享它。 此 URL 的后缀始终是 `/releases/latest`。 {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-4974 %} @@ -28,4 +28,4 @@ topics: {% else %} ![最新发行版标记](/assets/images/help/releases/release_latest_release_tag.png) {% endif %} -To link directly to a download of your latest release asset that was manually uploaded, link to `/owner/name/releases/latest/download/asset-name.zip`. +要直接链接到手动上传的最新版本资产的下载,请链接到 `/owner/name/releases/latest/download/asset-name.zip`。 diff --git a/translations/zh-CN/content/repositories/releasing-projects-on-github/managing-releases-in-a-repository.md b/translations/zh-CN/content/repositories/releasing-projects-on-github/managing-releases-in-a-repository.md index fcc023ca88..62e8730f11 100644 --- a/translations/zh-CN/content/repositories/releasing-projects-on-github/managing-releases-in-a-repository.md +++ b/translations/zh-CN/content/repositories/releasing-projects-on-github/managing-releases-in-a-repository.md @@ -21,8 +21,6 @@ topics: shortTitle: 管理版本 --- -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} - ## 关于发行版管理 您可以使用发行说明、@提及贡献者和指向二进制文件的链接来创建新版本,也可以编辑或删除现有版本。 @@ -32,7 +30,6 @@ shortTitle: 管理版本 您可以选择是否将 {% data variables.large_files.product_name_long %} ({% data variables.large_files.product_name_short %}) 对象包含在 {% data variables.product.product_name %} 为每个发行版创建的 ZIP 文件和 tarball 中。 更多信息请参阅“[管理仓库存档中的 {% data variables.large_files.product_name_short %} 对象](/github/administering-a-repository/managing-git-lfs-objects-in-archives-of-your-repository)”。 {% endif %} -{% endif %} ## 创建发行版 diff --git a/translations/zh-CN/content/repositories/working-with-files/managing-files/deleting-files-in-a-repository.md b/translations/zh-CN/content/repositories/working-with-files/managing-files/deleting-files-in-a-repository.md index 1f83068935..736e8afecd 100644 --- a/translations/zh-CN/content/repositories/working-with-files/managing-files/deleting-files-in-a-repository.md +++ b/translations/zh-CN/content/repositories/working-with-files/managing-files/deleting-files-in-a-repository.md @@ -1,6 +1,6 @@ --- title: Deleting files in a repository -intro: 'You can delete an individual file{% ifversion fpt or ghes > 3.0 or ghec %} or an entire directory{% endif %} in your repository on {% data variables.product.product_name %}.' +intro: 'You can delete an individual file{% ifversion fpt or ghes or ghec %} or an entire directory{% endif %} in your repository on {% data variables.product.product_name %}.' redirect_from: - /articles/deleting-files - /github/managing-files-in-a-repository/deleting-files @@ -12,18 +12,18 @@ versions: ghes: '*' ghae: '*' ghec: '*' -permissions: 'People with write permissions can delete files{% ifversion fpt or ghes > 3.0 or ghec %} or directories{% endif %} in a repository.' +permissions: 'People with write permissions can delete files{% ifversion fpt or ghes or ghec %} or directories{% endif %} in a repository.' topics: - Repositories shortTitle: Delete files --- -## About file{% ifversion fpt or ghes > 3.0 or ghec %} and directory{% endif %} deletion +## About file{% ifversion fpt or ghes or ghec %} and directory{% endif %} deletion -You can delete an individual file in your repository{% ifversion fpt or ghes > 3.0 or ghec %} or an entire directory, including all the files in the directory{% endif %}. +You can delete an individual file in your repository{% ifversion fpt or ghes or ghec %} or an entire directory, including all the files in the directory{% endif %}. -If you try to delete a file{% ifversion fpt or ghes > 3.0 or ghec %} or directory{% endif %} in a repository that you don’t have write permissions to, we'll fork the project to your user account and help you send a pull request to the original repository after you commit your change. For more information, see "[About pull requests](/github/collaborating-with-issues-and-pull-requests/about-pull-requests)." +If you try to delete a file{% ifversion fpt or ghes or ghec %} or directory{% endif %} in a repository that you don’t have write permissions to, we'll fork the project to your user account and help you send a pull request to the original repository after you commit your change. For more information, see "[About pull requests](/github/collaborating-with-issues-and-pull-requests/about-pull-requests)." -If the file{% ifversion fpt or ghes > 3.0 or ghec %} or directory{% endif %} you deleted contains sensitive data, the data will still be available in the repository's Git history. To completely remove the file from {% data variables.product.product_name %}, you must remove the file from your repository's history. For more information, see "[Removing sensitive data from a repository](/github/authenticating-to-github/removing-sensitive-data-from-a-repository)." +If the file{% ifversion fpt or ghes or ghec %} or directory{% endif %} you deleted contains sensitive data, the data will still be available in the repository's Git history. To completely remove the file from {% data variables.product.product_name %}, you must remove the file from your repository's history. For more information, see "[Removing sensitive data from a repository](/github/authenticating-to-github/removing-sensitive-data-from-a-repository)." ## Deleting a file @@ -34,7 +34,7 @@ If the file{% ifversion fpt or ghes > 3.0 or ghec %} or directory{% endif %} you {% data reusables.files.choose_commit_branch %} {% data reusables.files.propose_file_change %} -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} ## Deleting a directory 1. Browse to the directory in your repository that you want to delete. diff --git a/translations/zh-CN/content/rest/overview/endpoints-available-for-github-apps.md b/translations/zh-CN/content/rest/overview/endpoints-available-for-github-apps.md index 9433e5e6fb..16d6575967 100644 --- a/translations/zh-CN/content/rest/overview/endpoints-available-for-github-apps.md +++ b/translations/zh-CN/content/rest/overview/endpoints-available-for-github-apps.md @@ -14,19 +14,4 @@ topics: shortTitle: GitHub 应用程序启用的端点 --- -您必须使用安装访问令牌通过 {% data variables.product.prodname_github_app %} 访问端点。 更多信息请参阅“[向 {% data variables.product.prodname_github_apps %} 验证](/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation)”。 - -{% for thing in rest.operationsEnabledForGitHubApps[currentVersion] %} -{% assign category = thing[0] %} -{% assign operations = thing[1] %} -{% if operations.size > 0 %} -

- {{ category }} -

- -{% endif %} -{% endfor %} +**The content of this page is rendered as a NextJS page component.** diff --git a/translations/zh-CN/content/rest/overview/permissions-required-for-github-apps.md b/translations/zh-CN/content/rest/overview/permissions-required-for-github-apps.md index e302252407..41c6cd957a 100644 --- a/translations/zh-CN/content/rest/overview/permissions-required-for-github-apps.md +++ b/translations/zh-CN/content/rest/overview/permissions-required-for-github-apps.md @@ -223,7 +223,7 @@ _分支_ - [`POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users`](/rest/reference/branches#add-user-access-restrictions) (:write) - [`PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users`](/rest/reference/branches#set-user-access-restrictions) (:write) - [`DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users`](/rest/reference/branches#remove-user-access-restrictions) (:write) -{% ifversion fpt or ghes > 3.0 or ghae -%} +{% ifversion fpt or ghes or ghae -%} - [`POST /repos/:owner/:repo/branches/:branch/rename`](/rest/reference/branches#rename-a-branch) (:write) {% endif %} @@ -374,7 +374,7 @@ _分支_ - [`POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps`](/rest/reference/branches#add-app-access-restrictions) (:write) - [`PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps`](/rest/reference/branches#set-app-access-restrictions) (:write) - [`DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps`](/rest/reference/branches#remove-user-access-restrictions) (:write) -{% ifversion fpt or ghes > 3.0 or ghae -%} +{% ifversion fpt or ghes or ghae -%} - [`POST /repos/:owner/:repo/branches/:branch/rename`](/rest/reference/branches#rename-a-branch) (:write) {% endif %} diff --git a/translations/zh-CN/content/rest/reference/enterprise-admin.md b/translations/zh-CN/content/rest/reference/enterprise-admin.md index c1f2d237c5..c68a10d42d 100644 --- a/translations/zh-CN/content/rest/reference/enterprise-admin.md +++ b/translations/zh-CN/content/rest/reference/enterprise-admin.md @@ -18,4 +18,4 @@ shortTitle: Enterprise administration \ No newline at end of file +--> diff --git a/translations/zh-CN/content/rest/reference/metrics.md b/translations/zh-CN/content/rest/reference/metrics.md index 4d174aec37..1f00b23b60 100644 --- a/translations/zh-CN/content/rest/reference/metrics.md +++ b/translations/zh-CN/content/rest/reference/metrics.md @@ -16,4 +16,4 @@ miniTocMaxHeadingLevel: 3 \ No newline at end of file +--> diff --git a/translations/zh-CN/content/rest/reference/secret-scanning.md b/translations/zh-CN/content/rest/reference/secret-scanning.md index 689a1352e5..192caccc45 100644 --- a/translations/zh-CN/content/rest/reference/secret-scanning.md +++ b/translations/zh-CN/content/rest/reference/secret-scanning.md @@ -1,9 +1,9 @@ --- title: 秘密扫描 -intro: 要检索和更新来自私有仓库的秘密警报,您可以使用秘密扫描 API。 +intro: Use the secret scanning API to retrieve and update secret alerts from a repository. versions: fpt: '*' - ghes: '>=3.1' + ghes: '*' ghec: '*' ghae: '*' miniTocMaxHeadingLevel: 3 diff --git a/translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md b/translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md index c35a423f68..b763ccec1c 100644 --- a/translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md +++ b/translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md @@ -113,4 +113,4 @@ Commercial customers can submit a support request in the {% data variables.conta ## Further reading -- "[About GitHub Support](/support/learning-about-github-support/about-github-support)" \ No newline at end of file +- "[About GitHub Support](/support/learning-about-github-support/about-github-support)" diff --git a/translations/zh-CN/content/support/learning-about-github-support/about-github-support.md b/translations/zh-CN/content/support/learning-about-github-support/about-github-support.md index 8a4124aa2f..ca56371f79 100644 --- a/translations/zh-CN/content/support/learning-about-github-support/about-github-support.md +++ b/translations/zh-CN/content/support/learning-about-github-support/about-github-support.md @@ -1,6 +1,6 @@ --- title: About GitHub Support -intro: 'You can contact GitHub Support for help troubleshooting issues you encounter while using GitHub.' +intro: You can contact GitHub Support for help troubleshooting issues you encounter while using GitHub. shortTitle: About GitHub Support versions: fpt: '*' diff --git a/translations/zh-CN/content/support/learning-about-github-support/about-ticket-priority.md b/translations/zh-CN/content/support/learning-about-github-support/about-ticket-priority.md index 084c545470..15faa1908b 100644 --- a/translations/zh-CN/content/support/learning-about-github-support/about-ticket-priority.md +++ b/translations/zh-CN/content/support/learning-about-github-support/about-ticket-priority.md @@ -1,6 +1,6 @@ --- title: About ticket priority -intro: 'You can communicate the severity of your issue and how it is affecting you and your team by setting the priority of your support ticket.' +intro: You can communicate the severity of your issue and how it is affecting you and your team by setting the priority of your support ticket. shortTitle: Ticket priority versions: ghec: '*' @@ -76,4 +76,4 @@ The target eight-hour response time: ## Further reading -- "[Creating a support ticket](/support/contacting-github-support/creating-a-support-ticket)" \ No newline at end of file +- "[Creating a support ticket](/support/contacting-github-support/creating-a-support-ticket)" diff --git a/translations/zh-CN/data/graphql/ghes-3.0/graphql_previews.enterprise.yml b/translations/zh-CN/data/graphql/ghes-3.0/graphql_previews.enterprise.yml deleted file mode 100644 index f34be4a794..0000000000 --- a/translations/zh-CN/data/graphql/ghes-3.0/graphql_previews.enterprise.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -- - title: 使用包版本删除 - description: >- - 此预览支持允许删除私有包版本 DeletePackageVersion 突变。 - toggled_by: ':package-deletes-preview' - announcement: null - updates: null - toggled_on: - - Mutation.deletePackageVersion - owning_teams: - - '@github/pe-package-registry' -- - title: 部署 - description: >- - 此预览支持部署突变和新部署功能。 - toggled_by: ':flash-preview' - announcement: null - updates: null - toggled_on: - - DeploymentStatus.environment - - Mutation.createDeploymentStatus - - CreateDeploymentStatusInput - - CreateDeploymentStatusPayload - - Mutation.createDeployment - - CreateDeploymentInput - - CreateDeploymentPayload - owning_teams: - - '@github/ecosystem-api' -- - title: >- - MergeInfoPreview - 有关拉取请求合并状态的更多详细信息。 - description: >- - 此预览支持访问提供有关拉取请求合并状态的更多详细信息的字段。 - toggled_by: ':merge-info-preview' - announcement: null - updates: null - toggled_on: - - PullRequest.canBeRebased - - PullRequest.mergeStateStatus - owning_teams: - - '@github/pe-pull-requests' -- - title: UpdateRefsPreview - 在单个操作中更新多个 ref。 - description: 此预览支持在单个操作中更新多个 ref。 - toggled_by: ':update-refs-preview' - announcement: null - updates: null - toggled_on: - - Mutation.updateRefs - - GitRefname - - RefUpdate - - UpdateRefsInput - - UpdateRefsPayload - owning_teams: - - '@github/reponauts' -- - title: 项目事件详细信息 - description: >- - 此预览将项目、项目卡和项目列详细信息添加到与项目相关的议题事件。 - toggled_by: ':starfox-preview' - announcement: null - updates: null - toggled_on: - - AddedToProjectEvent.project - - AddedToProjectEvent.projectCard - - AddedToProjectEvent.projectColumnName - - ConvertedNoteToIssueEvent.project - - ConvertedNoteToIssueEvent.projectCard - - ConvertedNoteToIssueEvent.projectColumnName - - MovedColumnsInProjectEvent.project - - MovedColumnsInProjectEvent.projectCard - - MovedColumnsInProjectEvent.projectColumnName - - MovedColumnsInProjectEvent.previousProjectColumnName - - RemovedFromProjectEvent.project - - RemovedFromProjectEvent.projectColumnName - owning_teams: - - '@github/github-projects' -- - title: 创建内容附件 - description: 此预览支持创建内容附件。 - toggled_by: ':corsair-preview' - announcement: null - updates: null - toggled_on: - - Mutation.createContentAttachment - owning_teams: - - '@github/feature-lifecycle' -- - title: 固定议题预览 - description: 此预览增加了对固定议题的支持。 - toggled_by: ':elektra-preview' - announcement: null - updates: null - toggled_on: - - Repository.pinnedIssues - - PinnedIssue - - PinnedIssueEdge - - PinnedIssueConnection - - Mutation.pinIssue - - Mutation.unpinIssue - owning_teams: - - '@github/pe-pull-requests' -- - title: 标签预览 - description: >- - 此预览支持添加、更新、创建和删除标签。 - toggled_by: ':bane-preview' - announcement: null - updates: null - toggled_on: - - Mutation.createLabel - - CreateLabelPayload - - CreateLabelInput - - Mutation.deleteLabel - - DeleteLabelPayload - - DeleteLabelInput - - Mutation.updateLabel - - UpdateLabelPayload - - UpdateLabelInput - owning_teams: - - '@github/pe-pull-requests' -- - title: 导入项目 - description: 此预览增加了对导入项目的支持。 - toggled_by: ':slothette-preview' - announcement: null - updates: null - toggled_on: - - Mutation.importProject - owning_teams: - - '@github/pe-issues-projects' -- - title: 团队审查任务预览 - description: >- - 此预览支持更新团队审查任务的设置。 - toggled_by: ':stone-crop-preview' - announcement: null - updates: null - toggled_on: - - Mutation.updateTeamReviewAssignment - - UpdateTeamReviewAssignmentInput - - TeamReviewAssignmentAlgorithm - - Team.reviewRequestDelegationEnabled - - Team.reviewRequestDelegationAlgorithm - - Team.reviewRequestDelegationMemberCount - - Team.reviewRequestDelegationNotifyTeam - owning_teams: - - '@github/pe-pull-requests' diff --git a/translations/zh-CN/data/graphql/ghes-3.0/graphql_upcoming_changes.public-enterprise.yml b/translations/zh-CN/data/graphql/ghes-3.0/graphql_upcoming_changes.public-enterprise.yml deleted file mode 100644 index f73100b64d..0000000000 --- a/translations/zh-CN/data/graphql/ghes-3.0/graphql_upcoming_changes.public-enterprise.yml +++ /dev/null @@ -1,114 +0,0 @@ ---- -upcoming_changes: - - - location: Migration.uploadUrlTemplate - description: '`uploadUrlTemplate` 将被删除。使用 `uploadUrl` 代替。' - reason: '`uploadUrlTemplate` 正在被删除,因为它不是标准的 URL,并且增加了一个额外的用户步骤。' - date: '2019-04-01T00:00:00+00:00' - criticality: 重大 - owner: tambling - - - location: AssignedEvent.user - description: '`user` 将被删除。使用 `assignee` 字段代替。' - reason: 受理人现在可以作为人体模型。 - date: '2020-01-01T00:00:00+00:00' - criticality: 重大 - owner: tambling - - - location: EnterpriseBillingInfo.availableSeats - description: '`availableSeats` 将被删除。使用 EnterpriseBillingInfo.totalAvailableLicenses 代替。' - reason: '`availableSeats` 将被替换为 `totalAvailableLicenses`,以便更明确地表示要返回的值' - date: '2020-01-01T00:00:00+00:00' - criticality: 重大 - owner: BlakeWilliams - - - location: EnterpriseBillingInfo.seats - description: '`seats` 将被删除。使用 EnterpriseBillingInfo.totalLicenses 代替。' - reason: '`seats` 将被替换为 `totalLicenses`,以便更明确地表示要返回的值' - date: '2020-01-01T00:00:00+00:00' - criticality: 重大 - owner: BlakeWilliams - - - location: UnassignedEvent.user - description: '`user` 将被删除。使用 `assignee` 字段代替。' - reason: 受理人现在可以作为人体模型。 - date: '2020-01-01T00:00:00+00:00' - criticality: 重大 - owner: tambling - - - location: Sponsorship.maintainer - description: '`maintainer` 将被删除。使用 `Sponsorship.sponsorable` 代替。' - reason: '`Sponsorship.maintainer` 将被删除。' - date: '2020-04-01T00:00:00+00:00' - criticality: 重大 - owner: antn - - - location: EnterprisePendingMemberInvitationEdge.isUnlicensed - description: '`isUnlicensed` 将被删除。' - reason: 所有挂起的成员都会使用许可证 - date: '2020-07-01T00:00:00+00:00' - criticality: 重大 - owner: BrentWheeldon - - - location: EnterpriseOwnerInfo.pendingCollaborators - description: '`pendingCollaborators` 将被删除。改用 `pendingCollaboratorInvitations` 字段。' - reason: 仓库邀请此时可与电子邮件关联,而不仅仅是被邀请者。 - date: '2020-10-01T00:00:00+00:00' - criticality: 重大 - owner: jdennes - - - location: Issue.timeline - description: '`timeline` 将被删除。使用 Issue.timelineItems 代替。' - reason: '`timeline` 将被删除' - date: '2020-10-01T00:00:00+00:00' - criticality: 重大 - owner: mikesea - - - location: PullRequest.timeline - description: '`timeline` 将被删除。使用 PullRequest.timelineItems 代替。' - reason: '`timeline` 将被删除' - date: '2020-10-01T00:00:00+00:00' - criticality: 重大 - owner: mikesea - - - location: RepositoryInvitationOrderField.INVITEE_LOGIN - description: '`INVITEE_LOGIN` 将被删除。' - reason: '`INVITEE_LOGIN` 不再是有效字段值。仓库邀请此时可与电子邮件关联,而不仅仅是被邀请者。' - date: '2020-10-01T00:00:00+00:00' - criticality: 重大 - owner: jdennes - - - location: Sponsorship.sponsor - description: '`sponsor` 将被删除。改用 `Sponsorship.sponsorEntity`。' - reason: '`Sponsorship.sponsor` 将被删除。' - date: '2020-10-01T00:00:00+00:00' - criticality: 重大 - owner: nholden - - - location: EnterpriseMemberEdge.isUnlicensed - description: '`isUnlicensed` 将被删除。' - reason: 所有成员都会使用许可证 - date: '2021-01-01T00:00:00+00:00' - criticality: 重大 - owner: BrentWheeldon - - - location: EnterpriseOutsideCollaboratorEdge.isUnlicensed - description: '`isUnlicensed` 将被删除。' - reason: 所有外部协作者使用许可证 - date: '2021-01-01T00:00:00+00:00' - criticality: 重大 - owner: BrentWheeldon - - - location: EnterprisePendingCollaboratorEdge.isUnlicensed - description: '`isUnlicensed` 将被删除。' - reason: 所有挂起的协作者使用许可证 - date: '2021-01-01T00:00:00+00:00' - criticality: 重大 - owner: BrentWheeldon - - - location: MergeStateStatus.DRAFT - description: '`DRAFT` 将被删除。改为使用 PullRequest.isDraft。' - reason: DRAFT 状态将从这个枚举中删除,应改用 `isDraft` - date: '2021-01-01T00:00:00+00:00' - criticality: 重大 - owner: nplasterer diff --git a/translations/zh-CN/data/learning-tracks/actions.yml b/translations/zh-CN/data/learning-tracks/actions.yml index 79cafb12fa..e25b96c5f6 100644 --- a/translations/zh-CN/data/learning-tracks/actions.yml +++ b/translations/zh-CN/data/learning-tracks/actions.yml @@ -37,9 +37,25 @@ deploy_to_the_cloud: - /actions/deployment/deploying-to-amazon-elastic-container-service - /actions/deployment/deploying-to-azure-app-service - /actions/deployment/deploying-to-google-kubernetes-engine -adopting_github_actions_for_your_enterprise: +adopting_github_actions_for_your_enterprise_ghec: title: 'Adopt GitHub Actions for your enterprise' - description: 'Learn how to plan and implement a roll out of {% data variables.product.prodname_actions %} in your enterprise.' + description: 'Learn how to plan and implement a rollout of {% data variables.product.prodname_actions %} in your enterprise.' + versions: + ghec: '*' + guides: + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises + - /actions/learn-github-actions/understanding-github-actions + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud + - /actions/security-guides/security-hardening-for-github-actions + - /billing/managing-billing-for-github-actions/about-billing-for-github-actions +adopting_github_actions_for_your_enterprise_ghes_and_ghae: + title: 'Adopt GitHub Actions for your enterprise' + description: 'Learn how to plan and implement a rollout of {% data variables.product.prodname_actions %} in your enterprise.' + versions: + ghes: '*' + ghae: '*' guides: - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises - /actions/learn-github-actions/understanding-github-actions @@ -47,8 +63,9 @@ adopting_github_actions_for_your_enterprise: - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server - - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise - /actions/security-guides/security-hardening-for-github-actions + - /billing/managing-billing-for-github-actions/about-billing-for-github-actions hosting_your_own_runners: title: '托管您自己的运行器' description: '您可以创建自托管的运行器,在一个可高度自定义的环境中运行工作流程。' diff --git a/translations/zh-CN/data/learning-tracks/admin.yml b/translations/zh-CN/data/learning-tracks/admin.yml index 6cceba3ea6..3c957cda2d 100644 --- a/translations/zh-CN/data/learning-tracks/admin.yml +++ b/translations/zh-CN/data/learning-tracks/admin.yml @@ -38,9 +38,26 @@ upgrade_your_instance: - /admin/configuration/enabling-and-scheduling-maintenance-mode - /admin/enterprise-management/upgrading-github-enterprise-server -adopting_github_actions_for_your_enterprise: +adopting_github_actions_for_your_enterprise_ghec: title: 'Adopt GitHub Actions for your enterprise' - description: 'Learn how to plan and implement a roll out of {% data variables.product.prodname_actions %} in your enterprise.' + description: 'Learn how to plan and implement a rollout of {% data variables.product.prodname_actions %} in your enterprise.' + versions: + ghec: '*' + guides: + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises + - /actions/learn-github-actions/understanding-github-actions + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud + - /actions/security-guides/security-hardening-for-github-actions + - /billing/managing-billing-for-github-actions/about-billing-for-github-actions + +adopting_github_actions_for_your_enterprise_ghes_and_ghae: + title: 'Adopt GitHub Actions for your enterprise' + description: 'Learn how to plan and implement a rollout of {% data variables.product.prodname_actions %} in your enterprise.' + versions: + ghes: '*' + ghae: '*' guides: - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises - /actions/learn-github-actions/understanding-github-actions @@ -48,8 +65,9 @@ adopting_github_actions_for_your_enterprise: - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-cloud - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server - - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-ae + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise - /actions/security-guides/security-hardening-for-github-actions + - /billing/managing-billing-for-github-actions/about-billing-for-github-actions increase_fault_tolerance: title: 'Increase the fault tolerance of your instance' diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-1/18.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-1/18.yml index 2df291206b..574f165668 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-1/18.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-1/18.yml @@ -1,6 +1,8 @@ --- date: '2022-03-01' sections: + security_fixes: + - "HIGH: An integer overflow vulnerability was identified in GitHub's markdown parser that could potentially lead to information leaks and RCE. This vulnerability was reported through the GitHub Bug Bounty program by Felix Wilhelm of Google's Project Zero and has been assigned CVE-2022-24724." bugs: - Upgrades could sometimes fail if a high-availability replica's clock was out of sync with the primary. - 'OAuth Applications created after September 1st, 2020 were not able to use the [Check an Authorization](https://docs.github.com/en/enterprise-server@3.1/rest/reference/apps#check-an-authorization) API endpoint.' diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-2/10.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-2/10.yml index 2706dac130..8a50be503d 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-2/10.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-2/10.yml @@ -1,6 +1,8 @@ --- date: '2022-03-01' sections: + security_fixes: + - "HIGH: An integer overflow vulnerability was identified in GitHub's markdown parser that could potentially lead to information leaks and RCE. This vulnerability was reported through the GitHub Bug Bounty program by Felix Wilhelm of Google's Project Zero and has been assigned CVE-2022-24724." bugs: - Upgrades could sometimes fail if a high-availability replica's clock was out of sync with the primary. - 'OAuth Applications created after September 1st, 2020 were not able to use the [Check an Authorization](https://docs.github.com/en/enterprise-server@3.2/rest/reference/apps#check-an-authorization) API endpoint.' diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-3/18.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-3/18.yml deleted file mode 100644 index 2df291206b..0000000000 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-3/18.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -date: '2022-03-01' -sections: - bugs: - - Upgrades could sometimes fail if a high-availability replica's clock was out of sync with the primary. - - 'OAuth Applications created after September 1st, 2020 were not able to use the [Check an Authorization](https://docs.github.com/en/enterprise-server@3.1/rest/reference/apps#check-an-authorization) API endpoint.' - known_issues: - - '{% data variables.product.prodname_registry %} npm 注册表不再返回元数据响应的时间值。这样做是为了大幅改善性能。作为元数据响应的一部分,我们继续拥有返回时间值所需的所有数据,并将在我们解决现有性能问题后恢复返回这个值。' - - On a freshly set up {% data variables.product.prodname_ghe_server %} instance without any users, an attacker could create the first admin user. - - 自定义防火墙规则在升级过程中被删除。 - - Git LFS 跟踪的文件[通过 Web 界面上传](https://github.com/blog/2105-upload-files-to-your-repositories) 被错误地直接添加到仓库。 - - 如果议题包含文件路径长于 255 个字符的同一仓库中 blob 的永久链接,则议题无法关闭。 - - 对 GitHub Connect 启用“用户可以搜索 GitHub.com”后,私有和内部仓库中的议题不包括在 GitHub.com 搜索结果中。 - - If {% data variables.product.prodname_actions %} is enabled for {% data variables.product.prodname_ghe_server %}, teardown of a replica node with `ghe-repl-teardown` will succeed, but may return `ERROR:Running migrations`. - - Resource limits that are specific to processing pre-receive hooks may cause some pre-receive hooks to fail. diff --git a/translations/zh-CN/data/release-notes/enterprise-server/3-3/5.yml b/translations/zh-CN/data/release-notes/enterprise-server/3-3/5.yml index 3b64f9f430..f14cae4d57 100644 --- a/translations/zh-CN/data/release-notes/enterprise-server/3-3/5.yml +++ b/translations/zh-CN/data/release-notes/enterprise-server/3-3/5.yml @@ -1,6 +1,8 @@ --- date: '2022-03-01' sections: + security_fixes: + - "HIGH: An integer overflow vulnerability was identified in GitHub's markdown parser that could potentially lead to information leaks and RCE. This vulnerability was reported through the GitHub Bug Bounty program by Felix Wilhelm of Google's Project Zero and has been assigned CVE-2022-24724." bugs: - Upgrades could sometimes fail if a high-availability replica's clock was out of sync with the primary. - 'OAuth Applications created after September 1st, 2020 were not able to use the [Check an Authorization](https://docs.github.com/en/enterprise-server@3.3/rest/reference/apps#check-an-authorization) API endpoint.' diff --git a/translations/zh-CN/data/reusables/actions/about-actions-for-enterprises.md b/translations/zh-CN/data/reusables/actions/about-actions-for-enterprises.md new file mode 100644 index 0000000000..ce6ff86813 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/about-actions-for-enterprises.md @@ -0,0 +1 @@ +{% data variables.product.prodname_actions %} allows {% ifversion ghec or ghae %}members of your enterprise{% elsif ghes %}people who use {% data variables.product.product_location %}{% endif %} to improve productivity by automating every phase of the software development workflow. diff --git a/translations/zh-CN/data/reusables/actions/actions-authentication.md b/translations/zh-CN/data/reusables/actions/actions-authentication.md index f040709914..ac196b62b3 100644 --- a/translations/zh-CN/data/reusables/actions/actions-authentication.md +++ b/translations/zh-CN/data/reusables/actions/actions-authentication.md @@ -1 +1 @@ -此 API 适用于经过身份验证的用户、{% data variables.product.prodname_oauth_apps %} 和 {% data variables.product.prodname_github_apps %}。 访问令牌需要 [`repo` 作用域](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes)(对于私有仓库)和 [`public_repo` 作用域](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes)(对于{% ifversion ghae %} 可供企业上每个人使用的内部仓库{% else %}公共仓库{% endif %})。 +此 API 适用于经过身份验证的用户、{% data variables.product.prodname_oauth_apps %} 和 {% data variables.product.prodname_github_apps %}。 Access tokens require [`repo` scope](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes) for private repositories and [`public_repo` scope](/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes) for {% ifversion ghae %}internal{% else %}public{% endif %} repositories. diff --git a/translations/zh-CN/data/reusables/actions/actions-bundled-with-ghes.md b/translations/zh-CN/data/reusables/actions/actions-bundled-with-ghes.md index f4e762315f..1e93fc2439 100644 --- a/translations/zh-CN/data/reusables/actions/actions-bundled-with-ghes.md +++ b/translations/zh-CN/data/reusables/actions/actions-bundled-with-ghes.md @@ -1 +1 @@ -大多数官方 {% data variables.product.prodname_dotcom %} 编写的操作都会自动与 {% data variables.product.product_name %} 捆绑在一起,并且会在某个时间点从 {% data variables.product.prodname_marketplace %} 获取。 \ No newline at end of file +大多数官方 {% data variables.product.prodname_dotcom %} 编写的操作都会自动与 {% data variables.product.product_name %} 捆绑在一起,并且会在某个时间点从 {% data variables.product.prodname_marketplace %} 获取。 diff --git a/translations/zh-CN/data/reusables/actions/actions-filters.md b/translations/zh-CN/data/reusables/actions/actions-filters.md index 549ef0190e..b53c66bfd0 100644 --- a/translations/zh-CN/data/reusables/actions/actions-filters.md +++ b/translations/zh-CN/data/reusables/actions/actions-filters.md @@ -8,4 +8,4 @@ on: branches: - main - 'releases/**' -``` \ No newline at end of file +``` diff --git a/translations/zh-CN/data/reusables/actions/ae-self-hosted-runners-notice.md b/translations/zh-CN/data/reusables/actions/ae-self-hosted-runners-notice.md deleted file mode 100644 index df92adc256..0000000000 --- a/translations/zh-CN/data/reusables/actions/ae-self-hosted-runners-notice.md +++ /dev/null @@ -1,9 +0,0 @@ -{% ifversion ghae %} - -{% warning %} - -**Warning:** Self-hosted runners are long-lived, and any compromise to the host machine could leak secrets or credentials or enable other attacks. 有关使用自托管运行器的风险的更多信息,请参阅“[{% data variables.product.prodname_actions %} 的安全强化](/actions/learn-github-actions/security-hardening-for-github-actions#potential-impact-of-a-compromised-runner)”。 For more information about the management of access to {% data variables.product.prodname_actions %} for {% data variables.product.product_location %}, see "[Enforcing {% data variables.product.prodname_actions %} policies for your enterprise](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-github-actions-policies-for-your-enterprise)." - -{% endwarning %} - -{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/allow-specific-actions-intro.md b/translations/zh-CN/data/reusables/actions/allow-specific-actions-intro.md index f4d0e3ab61..fbc7c1e686 100644 --- a/translations/zh-CN/data/reusables/actions/allow-specific-actions-intro.md +++ b/translations/zh-CN/data/reusables/actions/allow-specific-actions-intro.md @@ -1,7 +1,7 @@ 选择 **Allow select actions(允许选择操作)**时,允许本地操作,并且还有允许其他特定操作的其他选项。 -- **允许 {% data variables.product.prodname_dotcom %} 创建的操作:** 您可以允许 {% data variables.product.prodname_dotcom %} 创建的所有操作用于工作流程。 {% data variables.product.prodname_dotcom %} 创建的操作位于 `actions` 和 `github` 组织中。 更多信息请参阅 [`actions`](https://github.com/actions) 和 [`github`](https://github.com/github) 组织。{% ifversion fpt or ghes > 3.0 or ghae-issue-5094 or ghec %} -- **Allow Marketplace actions by verified creators:** {% ifversion ghes > 3.0 or ghae-issue-5094 %}This option is available if you have {% data variables.product.prodname_github_connect %} enabled and configured with {% data variables.product.prodname_actions %}. For more information, see "[Enabling automatic access to GitHub.com actions using GitHub Connect](/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect)."{% endif %} You can allow all {% data variables.product.prodname_marketplace %} actions created by verified creators to be used by workflows. 如果 GitHub 验证该操作的创建者为合作伙伴组织,{% octicon "verified" aria-label="The verified badge" %} 徽章将显示在 {% data variables.product.prodname_marketplace %} 中的操作旁边。{% endif %} +- **允许 {% data variables.product.prodname_dotcom %} 创建的操作:** 您可以允许 {% data variables.product.prodname_dotcom %} 创建的所有操作用于工作流程。 {% data variables.product.prodname_dotcom %} 创建的操作位于 `actions` 和 `github` 组织中。 更多信息请参阅 [`actions`](https://github.com/actions) 和 [`github`](https://github.com/github) 组织。{% ifversion fpt or ghes or ghae-issue-5094 or ghec %} +- **Allow Marketplace actions by verified creators:** {% ifversion ghes or ghae-issue-5094 %}This option is available if you have {% data variables.product.prodname_github_connect %} enabled and configured with {% data variables.product.prodname_actions %}. For more information, see "[Enabling automatic access to GitHub.com actions using GitHub Connect](/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect)."{% endif %} You can allow all {% data variables.product.prodname_marketplace %} actions created by verified creators to be used by workflows. 如果 GitHub 验证该操作的创建者为合作伙伴组织,{% octicon "verified" aria-label="The verified badge" %} 徽章将显示在 {% data variables.product.prodname_marketplace %} 中的操作旁边。{% endif %} - **Allow specified actions(允许指定的操作):**您可以限制工作流程使用特定组织和仓库中的操作。 要限制对操作中特定标记或提交 SHA 的访问,请使用工作流程中使用的 `/@` 语法来选择操作。 例如,使用 `actions/javascript-action@v1.0.1` 选择标记,或使用 `actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89` 选择 SHA。 更多信息请参阅“[查找和自定义操作](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)”。 diff --git a/translations/zh-CN/data/reusables/actions/branch-paths-filter.md b/translations/zh-CN/data/reusables/actions/branch-paths-filter.md index a0701b5614..d653df3f54 100644 --- a/translations/zh-CN/data/reusables/actions/branch-paths-filter.md +++ b/translations/zh-CN/data/reusables/actions/branch-paths-filter.md @@ -1 +1 @@ -If you use both the `branches` filter and the `paths` filter, the workflow will only run when both filters are satisfied. \ No newline at end of file +If you use both the `branches` filter and the `paths` filter, the workflow will only run when both filters are satisfied. diff --git a/translations/zh-CN/data/reusables/actions/context-contents.md b/translations/zh-CN/data/reusables/actions/context-contents.md index 30bc347f8c..aa34315518 100644 --- a/translations/zh-CN/data/reusables/actions/context-contents.md +++ b/translations/zh-CN/data/reusables/actions/context-contents.md @@ -1 +1 @@ -Contexts, objects, and properties will vary significantly under different workflow run conditions. \ No newline at end of file +Contexts, objects, and properties will vary significantly under different workflow run conditions. diff --git a/translations/zh-CN/data/reusables/actions/create-azure-app-plan.md b/translations/zh-CN/data/reusables/actions/create-azure-app-plan.md index 4d6eedc268..1e3ba37310 100644 --- a/translations/zh-CN/data/reusables/actions/create-azure-app-plan.md +++ b/translations/zh-CN/data/reusables/actions/create-azure-app-plan.md @@ -14,4 +14,4 @@ 请查看 Azure 文档以了解更多有关使用 [Azure CLI](https://docs.microsoft.com/cli/azure/) 的信息: * For authentication, see "[Sign in with Azure CLI](https://docs.microsoft.com/cli/azure/authenticate-azure-cli)." - * 如果需要创建新的资源组,请参阅“[az 组](https://docs.microsoft.com/cli/azure/group?view=azure-cli-latest#az_group_create)”。 \ No newline at end of file + * 如果需要创建新的资源组,请参阅“[az 组](https://docs.microsoft.com/cli/azure/group?view=azure-cli-latest#az_group_create)”。 diff --git a/translations/zh-CN/data/reusables/actions/create-azure-publish-profile.md b/translations/zh-CN/data/reusables/actions/create-azure-publish-profile.md index a4e77c0c20..c125c9e66f 100644 --- a/translations/zh-CN/data/reusables/actions/create-azure-publish-profile.md +++ b/translations/zh-CN/data/reusables/actions/create-azure-publish-profile.md @@ -2,4 +2,4 @@ 使用发布配置文件生成 Azure 部署凭据。 更多信息请参阅 Azure 文档中的“[生成部署凭据](https://docs.microsoft.com/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials)”。 - 在 {% data variables.product.prodname_dotcom %} 仓库中,创建一个名为 `AZURE_WEBAPP_PUBLISH_PROFILE` 的机密,其中包含发布配置文件的内容。 有关创建机密的更多信息,请参阅“[加密密码](/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)”。 \ No newline at end of file + 在 {% data variables.product.prodname_dotcom %} 仓库中,创建一个名为 `AZURE_WEBAPP_PUBLISH_PROFILE` 的机密,其中包含发布配置文件的内容。 有关创建机密的更多信息,请参阅“[加密密码](/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)”。 diff --git a/translations/zh-CN/data/reusables/actions/disabling-github-actions.md b/translations/zh-CN/data/reusables/actions/disabling-github-actions.md index fde5192889..738ed5e8ad 100644 --- a/translations/zh-CN/data/reusables/actions/disabling-github-actions.md +++ b/translations/zh-CN/data/reusables/actions/disabling-github-actions.md @@ -1 +1 @@ -默认情况下,{% ifversion ghes or ghae %}{% data variables.product.prodname_actions %} 在 {% data variables.product.product_location %} 上启用后,它{% elsif fpt %}{% data variables.product.prodname_actions %}{% endif %} 将在所有仓库和组织上启用。 You can choose to disable {% data variables.product.prodname_actions %} or limit them to local actions only, which means that people can only use actions that exist in your repository. +默认情况下,{% ifversion ghes or ghae %}{% data variables.product.prodname_actions %} 在 {% data variables.product.product_location %} 上启用后,它{% elsif fpt or ghec %}{% data variables.product.prodname_actions %}{% endif %} 将在所有仓库和组织上启用。 You can choose to disable {% data variables.product.prodname_actions %} or limit them to local actions only, which means that people can only use actions that exist in your repository. diff --git a/translations/zh-CN/data/reusables/actions/enterprise-github-connect-warning.md b/translations/zh-CN/data/reusables/actions/enterprise-github-connect-warning.md index c8a8577291..2b048403c8 100644 --- a/translations/zh-CN/data/reusables/actions/enterprise-github-connect-warning.md +++ b/translations/zh-CN/data/reusables/actions/enterprise-github-connect-warning.md @@ -1,12 +1,12 @@ {% ifversion ghes > 3.2 or ghae-issue-4815 %} {% note %} -**Note:** When a workflow uses an action by referencing the repository where the action is stored, {% data variables.product.prodname_actions %} will try to find the repository on your {% data variables.product.prodname_ghe_server %} instance first before falling back to {% data variables.product.prodname_dotcom_the_website %}. If a user has already created an organization and repository in your enterprise that matches an organization and repository name on {% data variables.product.prodname_dotcom %}, the repository on your enterprise will be used in place of the {% data variables.product.prodname_dotcom %} repository. For more information, see "[Automatic retirement of namespaces for actions accessed on {% data variables.product.prodname_dotcom_the_website%}](#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)." +**Note:** When a workflow uses an action by referencing the repository where the action is stored, {% data variables.product.prodname_actions %} will try to find the repository on your {% data variables.product.prodname_ghe_server %} instance first before falling back to {% data variables.product.prodname_dotcom_the_website %}. If a user has already created an organization and repository in your enterprise that matches an organization and repository name on {% data variables.product.prodname_dotcom %}, the repository on your enterprise will be used in place of the {% data variables.product.prodname_dotcom %} repository. 更多信息请参阅“[自动停用在 {% data variables.product.prodname_dotcom_the_website%} 上访问的操作的命名空间](#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)”。 {% endnote %} {% endif %} -{% ifversion ghes < 3.3 %} +{% ifversion ghes < 3.3 or ghae %} {% note %} **Note:** When a workflow uses an action by referencing the repository where the action is stored, {% data variables.product.prodname_actions %} will try to find the repository on your {% data variables.product.prodname_ghe_server %} instance first before falling back to {% data variables.product.prodname_dotcom_the_website %}. 如果用户在企业中创建的组织和仓库与 {% data variables.product.prodname_dotcom %} 上的组织和仓库名称匹配,则将使用企业上的仓库代替 {% data variables.product.prodname_dotcom %} 仓库。 恶意用户可能利用此行为在工作流程中运行代码。 diff --git a/translations/zh-CN/data/reusables/actions/general-security-hardening.md b/translations/zh-CN/data/reusables/actions/general-security-hardening.md index 21ef09663a..72b7d048c7 100644 --- a/translations/zh-CN/data/reusables/actions/general-security-hardening.md +++ b/translations/zh-CN/data/reusables/actions/general-security-hardening.md @@ -1,3 +1,3 @@ ## {% data variables.product.prodname_actions %} 的一般安全性增强 -如需了解有关 {% data variables.product.prodname_actions %} 安全实践的更多信息,请参阅“[{% data variables.product.prodname_actions %} 的安全性增强](/actions/learn-github-actions/security-hardening-for-github-actions)”。 \ No newline at end of file +如需了解有关 {% data variables.product.prodname_actions %} 安全实践的更多信息,请参阅“[{% data variables.product.prodname_actions %} 的安全性增强](/actions/learn-github-actions/security-hardening-for-github-actions)”。 diff --git a/translations/zh-CN/data/reusables/actions/github-hosted-runners-check-concurrency.md b/translations/zh-CN/data/reusables/actions/github-hosted-runners-check-concurrency.md index f216e917fe..6890e6b7e3 100644 --- a/translations/zh-CN/data/reusables/actions/github-hosted-runners-check-concurrency.md +++ b/translations/zh-CN/data/reusables/actions/github-hosted-runners-check-concurrency.md @@ -2,4 +2,4 @@ To identify any constraints with concurrency or queuing, you can check how many ![Screenshot of a list of active jobs](/assets/images/help/settings/actions-runner-active-jobs.png) -For more information, see "[Monitoring your current jobs](/actions/using-github-hosted-runners/monitoring-your-current-jobs)." \ No newline at end of file +For more information, see "[Monitoring your current jobs](/actions/using-github-hosted-runners/monitoring-your-current-jobs)." diff --git a/translations/zh-CN/data/reusables/actions/github-hosted-runners-table-entry.md b/translations/zh-CN/data/reusables/actions/github-hosted-runners-table-entry.md index cb4e59b206..a7c068aecc 100644 --- a/translations/zh-CN/data/reusables/actions/github-hosted-runners-table-entry.md +++ b/translations/zh-CN/data/reusables/actions/github-hosted-runners-table-entry.md @@ -1 +1 @@ -1. In the "Runners" table, click the entry for **GitHub-hosted runners**. This entry will only be present if you're using {% data variables.product.prodname_dotcom %}-hosted runners. \ No newline at end of file +1. In the "Runners" table, click the entry for **GitHub-hosted runners**. This entry will only be present if you're using {% data variables.product.prodname_dotcom %}-hosted runners. diff --git a/translations/zh-CN/data/reusables/actions/hardware-requirements-3.2.md b/translations/zh-CN/data/reusables/actions/hardware-requirements-3.2.md index dee0bd16c9..965ddf4eab 100644 --- a/translations/zh-CN/data/reusables/actions/hardware-requirements-3.2.md +++ b/translations/zh-CN/data/reusables/actions/hardware-requirements-3.2.md @@ -2,4 +2,4 @@ |:---- |:------ |:-------- | | 32 | 128 GB | 1000 个作业 | | 64 | 256 GB | 1300 个作业 | -| 96 | 384 GB | 2200 个作业 | \ No newline at end of file +| 96 | 384 GB | 2200 个作业 | diff --git a/translations/zh-CN/data/reusables/actions/hardware-requirements-before.md b/translations/zh-CN/data/reusables/actions/hardware-requirements-before.md index e92f982dbc..743781e313 100644 --- a/translations/zh-CN/data/reusables/actions/hardware-requirements-before.md +++ b/translations/zh-CN/data/reusables/actions/hardware-requirements-before.md @@ -3,4 +3,4 @@ | 4 | 32 GB | 演示或轻量测试 | | 8 | 64 GB | 25 个作业 | | 16 | 160 GB | 35 个作业 | -| 32 | 256 GB | 100 个作业 | \ No newline at end of file +| 32 | 256 GB | 100 个作业 | diff --git a/translations/zh-CN/data/reusables/actions/internal-actions-summary.md b/translations/zh-CN/data/reusables/actions/internal-actions-summary.md index 3efefb4211..8231de2c2e 100644 --- a/translations/zh-CN/data/reusables/actions/internal-actions-summary.md +++ b/translations/zh-CN/data/reusables/actions/internal-actions-summary.md @@ -1,3 +1,3 @@ {% if internal-actions %} To share actions across your enterprise without publishing the actions publicly, you can store the actions in an internal repository, then configure the repository to allow access to {% data variables.product.prodname_actions %} workflows in other repositories owned by the same organization or by any organization in the enterprise. For more information, see "[Sharing actions and workflows with your enterprise](/actions/creating-actions/sharing-actions-and-workflows-with-your-enterprise)." -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/introducing-enterprise.md b/translations/zh-CN/data/reusables/actions/introducing-enterprise.md index b7e8b0856c..60cb001dfd 100644 --- a/translations/zh-CN/data/reusables/actions/introducing-enterprise.md +++ b/translations/zh-CN/data/reusables/actions/introducing-enterprise.md @@ -1 +1 @@ -Before you get started, you should make a plan for how you'll introduce {% data variables.product.prodname_actions %} to your enterprise. For more information, see "[Introducing {% data variables.product.prodname_actions %} to your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise)." \ No newline at end of file +Before you get started, you should make a plan for how you'll introduce {% data variables.product.prodname_actions %} to your enterprise. For more information, see "[Introducing {% data variables.product.prodname_actions %} to your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise)." diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-choosing-the-runner-for-a-job.md b/translations/zh-CN/data/reusables/actions/jobs/section-choosing-the-runner-for-a-job.md index 769d478b96..efb0cb9304 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-choosing-the-runner-for-a-job.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-choosing-the-runner-for-a-job.md @@ -25,8 +25,6 @@ runs-on: ubuntu-latest ### Choosing self-hosted runners {% endif %} -{% data reusables.actions.ae-self-hosted-runners-notice %} - {% data reusables.actions.self-hosted-runner-labels-runs-on %} #### Example: Using labels for runner selection diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-env.md b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-env.md index a59a63c854..875af4f078 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-env.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-env.md @@ -1 +1 @@ -Use `jobs..container.env` to set a `map` of environment variables in the container. \ No newline at end of file +Use `jobs..container.env` to set a `map` of environment variables in the container. diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-image.md b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-image.md index a68f5dbe13..8c5a0bac6a 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-image.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-image.md @@ -1 +1 @@ -Use `jobs..container.image` to define the Docker image to use as the container to run the action. The value can be the Docker Hub image name or a registry name. \ No newline at end of file +Use `jobs..container.image` to define the Docker image to use as the container to run the action. The value can be the Docker Hub image name or a registry name. diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-ports.md b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-ports.md index 5e62f47614..d6abf8f0a6 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-ports.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-ports.md @@ -1 +1 @@ -Use `jobs..container.ports` to set an `array` of ports to expose on the container. \ No newline at end of file +Use `jobs..container.ports` to set an `array` of ports to expose on the container. diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-failfast.md b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-failfast.md index 58f6ad0ee5..cb5c203710 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-failfast.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-failfast.md @@ -1 +1 @@ -When `jobs..strategy.fail-fast` is set to `true`, {% data variables.product.prodname_dotcom %} cancels all in-progress jobs if any `matrix` job fails. 默认值:`true` \ No newline at end of file +When `jobs..strategy.fail-fast` is set to `true`, {% data variables.product.prodname_dotcom %} cancels all in-progress jobs if any `matrix` job fails. 默认值:`true` diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-max-parallel.md b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-max-parallel.md index f28bd31500..77f1ba343e 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-max-parallel.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-max-parallel.md @@ -3,4 +3,4 @@ Use `jobs..strategy.max-parallel` to set the maximum number of jobs that ```yaml strategy: max-parallel: 2 -``` \ No newline at end of file +``` diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-strategy.md b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-strategy.md index a426f22bae..ca2d4ae820 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-strategy.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-using-a-build-matrix-for-your-jobs-strategy.md @@ -1 +1 @@ -Use `jobs..strategy` to create a build matrix for your jobs. 您可以定义要在其中运行每项作业的不同变种。 \ No newline at end of file +Use `jobs..strategy` to create a build matrix for your jobs. 您可以定义要在其中运行每项作业的不同变种。 diff --git a/translations/zh-CN/data/reusables/actions/jobs/section-using-jobs-in-a-workflow-name.md b/translations/zh-CN/data/reusables/actions/jobs/section-using-jobs-in-a-workflow-name.md index cafa5ebc33..98456bea22 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/section-using-jobs-in-a-workflow-name.md +++ b/translations/zh-CN/data/reusables/actions/jobs/section-using-jobs-in-a-workflow-name.md @@ -1 +1 @@ -Use `jobs..name` to a name for the job, which is displayed on {% data variables.product.prodname_dotcom %}. \ No newline at end of file +Use `jobs..name` to a name for the job, which is displayed on {% data variables.product.prodname_dotcom %}. diff --git a/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults-job.md b/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults-job.md index 74dd340371..7557ec7f68 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults-job.md +++ b/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults-job.md @@ -1,3 +1,3 @@ Use `jobs..defaults` to create a `map` of default settings that will apply to all steps in the job. 您也可以设置整个工作流程的默认设置。 For more information, see [`defaults`](/actions/using-workflows/workflow-syntax-for-github-actions#defaults). -{% data reusables.actions.defaults-override %} \ No newline at end of file +{% data reusables.actions.defaults-override %} diff --git a/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults.md b/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults.md index 9b9a00119b..844c0ba608 100644 --- a/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults.md +++ b/translations/zh-CN/data/reusables/actions/jobs/setting-default-values-for-jobs-defaults.md @@ -1,3 +1,3 @@ Use `defaults` to create a `map` of default settings that will apply to all jobs in the workflow. 您也可以设置只可用于作业的默认设置。 更多信息请参阅 [`jobs..defaults`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaults)。 -{% data reusables.actions.defaults-override %} \ No newline at end of file +{% data reusables.actions.defaults-override %} diff --git a/translations/zh-CN/data/reusables/actions/migrating-enterprise.md b/translations/zh-CN/data/reusables/actions/migrating-enterprise.md index 9876b13360..25ffd37ce8 100644 --- a/translations/zh-CN/data/reusables/actions/migrating-enterprise.md +++ b/translations/zh-CN/data/reusables/actions/migrating-enterprise.md @@ -1 +1 @@ -If you're migrating your enterprise to {% data variables.product.prodname_actions %} from another provider, there are additional considerations. For more information, see "[Migrating your enterprise to {% data variables.product.prodname_actions %}](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions)." \ No newline at end of file +If you're migrating your enterprise to {% data variables.product.prodname_actions %} from another provider, there are additional considerations. For more information, see "[Migrating your enterprise to {% data variables.product.prodname_actions %}](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions)." diff --git a/translations/zh-CN/data/reusables/actions/minimum-hardware.md b/translations/zh-CN/data/reusables/actions/minimum-hardware.md index 4f4460df6b..63fadb7c63 100644 --- a/translations/zh-CN/data/reusables/actions/minimum-hardware.md +++ b/translations/zh-CN/data/reusables/actions/minimum-hardware.md @@ -1 +1 @@ -{% data variables.product.company_short %} recommends a minimum of 8 vCPU and 64 GB memory to run {% data variables.product.prodname_actions %}. \ No newline at end of file +{% data variables.product.company_short %} recommends a minimum of 8 vCPU and 64 GB memory to run {% data variables.product.prodname_actions %}. diff --git a/translations/zh-CN/data/reusables/actions/oidc-link-to-intro.md b/translations/zh-CN/data/reusables/actions/oidc-link-to-intro.md index c3da8403f3..63333358b3 100644 --- a/translations/zh-CN/data/reusables/actions/oidc-link-to-intro.md +++ b/translations/zh-CN/data/reusables/actions/oidc-link-to-intro.md @@ -1 +1 @@ -- To learn the basic concepts of how {% data variables.product.prodname_dotcom %} uses OpenID Connect (OIDC), and its architecture and benefits, see "[About security hardening with OpenID Connect](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)." \ No newline at end of file +- To learn the basic concepts of how {% data variables.product.prodname_dotcom %} uses OpenID Connect (OIDC), and its architecture and benefits, see "[About security hardening with OpenID Connect](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)." diff --git a/translations/zh-CN/data/reusables/actions/outside-collaborators-internal-actions.md b/translations/zh-CN/data/reusables/actions/outside-collaborators-internal-actions.md index fcf164b2d1..9e8e56c217 100644 --- a/translations/zh-CN/data/reusables/actions/outside-collaborators-internal-actions.md +++ b/translations/zh-CN/data/reusables/actions/outside-collaborators-internal-actions.md @@ -1 +1 @@ -If you make an internal repository in your enterprise accessible to {% data variables.product.prodname_actions %} workflows in other repositories, outside collaborators on the other repositories can indirectly access the internal repository, even though they do not have direct access to the internal repository. The outside collaborators can view logs for workflow runs when actions or workflows from the internal repository are used. \ No newline at end of file +If you make an internal repository in your enterprise accessible to {% data variables.product.prodname_actions %} workflows in other repositories, outside collaborators on the other repositories can indirectly access the internal repository, even though they do not have direct access to the internal repository. The outside collaborators can view logs for workflow runs when actions or workflows from the internal repository are used. diff --git a/translations/zh-CN/data/reusables/actions/pass-inputs-to-reusable-workflows.md b/translations/zh-CN/data/reusables/actions/pass-inputs-to-reusable-workflows.md index 8769f339da..ce6074f0c9 100644 --- a/translations/zh-CN/data/reusables/actions/pass-inputs-to-reusable-workflows.md +++ b/translations/zh-CN/data/reusables/actions/pass-inputs-to-reusable-workflows.md @@ -10,4 +10,4 @@ jobs: secrets: envPAT: ${{ secrets.envPAT }} ``` -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/translations/zh-CN/data/reusables/actions/perform-blob-storage-precheck.md b/translations/zh-CN/data/reusables/actions/perform-blob-storage-precheck.md index 3cc4721219..a63d79c3b8 100644 --- a/translations/zh-CN/data/reusables/actions/perform-blob-storage-precheck.md +++ b/translations/zh-CN/data/reusables/actions/perform-blob-storage-precheck.md @@ -1 +1 @@ -1. Run the `ghe-actions-precheck` command to test your blob storage configuration. 更多信息请参阅“[命令行实用程序](/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-actions-precheck)”。 \ No newline at end of file +1. Run the `ghe-actions-precheck` command to test your blob storage configuration. 更多信息请参阅“[命令行实用程序](/admin/configuration/configuring-your-enterprise/command-line-utilities#ghe-actions-precheck)”。 diff --git a/translations/zh-CN/data/reusables/actions/ref_name-description.md b/translations/zh-CN/data/reusables/actions/ref_name-description.md index 6ce0946ec6..4a39dc1922 100644 --- a/translations/zh-CN/data/reusables/actions/ref_name-description.md +++ b/translations/zh-CN/data/reusables/actions/ref_name-description.md @@ -1 +1 @@ -The branch or tag name that triggered the workflow run. \ No newline at end of file +The branch or tag name that triggered the workflow run. diff --git a/translations/zh-CN/data/reusables/actions/ref_protected-description.md b/translations/zh-CN/data/reusables/actions/ref_protected-description.md index 1a592daf51..9975dc406a 100644 --- a/translations/zh-CN/data/reusables/actions/ref_protected-description.md +++ b/translations/zh-CN/data/reusables/actions/ref_protected-description.md @@ -1 +1 @@ -`true` if branch protections are configured for the ref that triggered the workflow run. \ No newline at end of file +`true` if branch protections are configured for the ref that triggered the workflow run. diff --git a/translations/zh-CN/data/reusables/actions/ref_type-description.md b/translations/zh-CN/data/reusables/actions/ref_type-description.md index 0aeeb96428..74888dee73 100644 --- a/translations/zh-CN/data/reusables/actions/ref_type-description.md +++ b/translations/zh-CN/data/reusables/actions/ref_type-description.md @@ -1 +1 @@ -The type of ref that triggered the workflow run. Valid values are `branch` or `tag`. \ No newline at end of file +The type of ref that triggered the workflow run. Valid values are `branch` or `tag`. diff --git a/translations/zh-CN/data/reusables/actions/reusable-workflow-calling-syntax.md b/translations/zh-CN/data/reusables/actions/reusable-workflow-calling-syntax.md index 2c464b1540..116eb98b32 100644 --- a/translations/zh-CN/data/reusables/actions/reusable-workflow-calling-syntax.md +++ b/translations/zh-CN/data/reusables/actions/reusable-workflow-calling-syntax.md @@ -1,4 +1,4 @@ * `{owner}/{repo}/{path}/{filename}@{ref}`{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6000 %} for reusable workflows in public {% ifversion ghes or ghec or ghae %}or internal{% endif %} repositories. * `./{path}/{filename}` for reusable workflows in the same repository.{% endif %} -`{ref}` can be a SHA, a release tag, or a branch name. Using the commit SHA is the safest for stability and security. 更多信息请参阅“[GitHub Actions 的安全性增强](/actions/learn-github-actions/security-hardening-for-github-actions#reusing-third-party-workflows)”。 {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6000 %}If you use the second syntax option (without `{owner}/{repo}` and `@{ref}`) the called workflow is from the same commit as the caller workflow.{% endif %} \ No newline at end of file +`{ref}` can be a SHA, a release tag, or a branch name. Using the commit SHA is the safest for stability and security. 更多信息请参阅“[GitHub Actions 的安全性增强](/actions/learn-github-actions/security-hardening-for-github-actions#reusing-third-party-workflows)”。 {% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6000 %}If you use the second syntax option (without `{owner}/{repo}` and `@{ref}`) the called workflow is from the same commit as the caller workflow.{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md b/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md index 7264d89ee0..6fb3ef2e4f 100644 --- a/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md +++ b/translations/zh-CN/data/reusables/actions/reusable-workflows-ghes-beta.md @@ -6,4 +6,4 @@ {% endnote %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-org.md b/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-org.md index 8cf19ca678..20bcfabb15 100644 --- a/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-org.md +++ b/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-org.md @@ -1,3 +1,3 @@ 1. 输入运行程序组的名称,并分配组织访问策略。 - 您可以配置运行器组供特定的组织列表或企业中所有组织访问。 默认情况下,只有私有仓库可以访问运行器组中的运行器,但您可以覆盖此设置。 如果配置企业共享的组织的运行组,则不能覆盖此设置。 + You can configure a runner group to be accessible to a specific list of organizations, or all organizations in the enterprise.{% ifversion ghec or ghes %} By default, only private repositories can access runners in a runner group, but you can override this. 如果配置企业共享的组织的运行组,则不能覆盖此设置。{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-repo.md b/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-repo.md index 9be2162b0a..f1e9d05be8 100644 --- a/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-repo.md +++ b/translations/zh-CN/data/reusables/actions/runner-group-assign-policy-repo.md @@ -1,3 +1,3 @@ 1. 输入运行程序组的名称,并分配仓库访问策略。 - 您可以配置一个运行器组可供一组特定的仓库或组织中所有仓库访问。 默认情况下,只有私有仓库可以访问运行器组中的运行器,但您可以覆盖此设置。 如果配置企业共享的组织的运行组,则不能覆盖此设置。 + You can configure a runner group to be accessible to a specific list of repositories, or to all repositories in the organization.{% ifversion ghec or ghes %} By default, only private repositories can access runners in a runner group, but you can override this. 如果配置企业共享的组织的运行组,则不能覆盖此设置。{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/secrets-redaction-warning.md b/translations/zh-CN/data/reusables/actions/secrets-redaction-warning.md index 751038b0ac..70b9fd473c 100644 --- a/translations/zh-CN/data/reusables/actions/secrets-redaction-warning.md +++ b/translations/zh-CN/data/reusables/actions/secrets-redaction-warning.md @@ -2,4 +2,4 @@ **警告:**{% data variables.product.prodname_dotcom %} 自动将密码编写到日志,但您应避免有意将密码打印到日志。 -{% endwarning %} \ No newline at end of file +{% endwarning %} diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-add-to-enterprise.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-add-to-enterprise.md new file mode 100644 index 0000000000..4d858c40cc --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-add-to-enterprise.md @@ -0,0 +1,16 @@ +{%- ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.policies-tab %} +{% data reusables.enterprise-accounts.actions-tab %} +{% data reusables.enterprise-accounts.actions-runners-tab %} +1. 单击 **New runner(新运行器)**。 +{% data reusables.actions.self-hosted-runner-configure %} +{%- elsif ghae or ghes < 3.4 %} +To add a self-hosted runner to an enterprise, you must be an enterprise owner. +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.policies-tab %} +{% data reusables.enterprise-accounts.actions-tab %} +{% data reusables.enterprise-accounts.actions-runners-tab %} +1. 单击 **Add new(新增)**,然后单击 **New runner(新运行器)**。 +{% data reusables.actions.self-hosted-runner-configure %} +{%- endif %} diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-architecture.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-architecture.md new file mode 100644 index 0000000000..e8666a5987 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-architecture.md @@ -0,0 +1 @@ +Your runner machine connects to {% data variables.product.product_name %} using the {% data variables.product.prodname_actions %} self-hosted runner application. diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-installation-success.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-installation-success.md index a1355c42a9..5e3e269dec 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-installation-success.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-installation-success.md @@ -3,8 +3,6 @@ After completing the steps to add a self-hosted runner, the runner and its status are now listed under {% ifversion fpt or ghec %}"Runners"{% elsif ghae or ghes %}"Self-hosted runners"{% endif %}. -必须激活自托管运行器应用程序,运行器才能接受作业。 当运行器应用程序连接到 {% data variables.product.product_name %} 并准备接收作业时,您将在机器的终端上看到以下消息。 +必须激活自托管运行器应用程序,运行器才能接受作业。 When the runner application is connected to {% data variables.product.product_name %} and ready to receive jobs, you will see the following message on the machine's terminal. {% data reusables.actions.self-hosted-runner-connected-output %} - -更多信息请参阅“[自托管运行器监控和故障排除](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)”。 diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-mac-linux.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-mac-linux.md index c51ca1a34a..34fab292bc 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-mac-linux.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-check-mac-linux.md @@ -1,3 +1,3 @@ ```shell ./run.sh --check --url https://github.com/octo-org/octo-repo --pat ghp_abcd1234 -``` \ No newline at end of file +``` diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-communications-for-ghae.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-communications-for-ghae.md new file mode 100644 index 0000000000..572fec5569 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-communications-for-ghae.md @@ -0,0 +1,7 @@ +{% ifversion ghae %} + +You must ensure that the self-hosted runner has appropriate network access to communicate with your {% data variables.product.prodname_ghe_managed %} URL and its subdomains. 例如,如果实例名称是s `octoghae`,则需要允许自托管运行器访问 `octoghae.githubenterprise.com`、`api.octoghae.githubenterprise.com` 和 `codeload.octoghae.githubenterprise.com`。 + +If you use an IP address allow list for your organization or enterprise account on {% data variables.product.prodname_dotcom %}, you must add your self-hosted runner's IP address to the allow list. 更多信息请参阅“[管理组织允许的 IP 地址](/organizations/keeping-your-organization-secure/managing-allowed-ip-addresses-for-your-organization#using-github-actions-with-an-ip-allow-list)”。 + +{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-configure.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-configure.md index 482e224aa3..b86d3f1e49 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-configure.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-configure.md @@ -14,6 +14,3 @@ - 运行 `config` 脚本配置自托管运行器应用程序,并向 {% data variables.product.prodname_actions %} 注册。 `config` 脚本需要目标 URL 和自动生成的时间限制令牌来验证请求。 - 在 Windows上,`config` 脚本还会询问您是否想将自托管运行器应用程序安装为服务。 对于 Linux 和 macOS,您可以在完成添加运行器后安装服务。 更多信息请参阅“[将自托管运行器应用程序配置为服务](/actions/automating-your-workflow-with-github-actions/configuring-the-self-hosted-runner-application-as-a-service)”。 - 运行自托管运行器应用程序以将机器连接到 {% data variables.product.prodname_actions %}。 -{% ifversion fpt or ghec or ghes > 3.2 %} - - If you are setting up a cluster of runners, you can install another tool to automatically scale your runners. 更多信息请参阅“[使用自托管运行器自动缩放](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)”。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-create-group.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-create-group.md index eb9038a2c8..a38993f193 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-create-group.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-create-group.md @@ -1 +1 @@ -1. Click **Create group** to create the group and apply the policy. +1. Click **{% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %}Create{%- elsif ghes < 3.4 or ghae %}Save{% endif %} group** to create the group and apply the policy. diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-description.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-description.md index d8de2b8f76..e865326637 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-description.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-description.md @@ -1 +1 @@ -自托管运行程序比 {% data variables.product.prodname_dotcom %} 托管的运行程序提供更多的硬件、操作系统和软件工具控制。 使用自托管的运行器,您可以选择创建具有更大处理功能或内存的自定义硬件配置,以运行更大的作业,安装在本地网络上可用的软件,并选择 {% data variables.product.prodname_dotcom %} 托管的运行器未提供的操作系统。 +{% ifversion fpt or ghec %}Self-hosted runners offer more control of hardware, operating system, and software tools than {% data variables.product.prodname_dotcom %}-hosted runners provide. {% endif %}With self-hosted runners, you can create custom hardware configurations that meet your needs with processing power or memory to run larger jobs, install software available on your local network, and choose an operating system{% ifversion fpt or ghec %} not offered by {% data variables.product.prodname_dotcom %}-hosted runners{% endif %}. diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-groups-add-to-enterprise-first-steps.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-groups-add-to-enterprise-first-steps.md new file mode 100644 index 0000000000..9338553789 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-groups-add-to-enterprise-first-steps.md @@ -0,0 +1,11 @@ +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.policies-tab %} +{% data reusables.enterprise-accounts.actions-tab %} +{%- ifversion ghec or ghes > 3.3 or ghae-issue-5091 %} +{% data reusables.enterprise-accounts.actions-runner-groups-tab %} +1. 单击 **New runner group(新运行器组)**。 +{%- elsif ghes < 3.4 or ghae %} +{% data reusables.enterprise-accounts.actions-runners-tab %} +1. Use the **Add new** drop-down, and select **New group**. +{%- endif %} +1. Under "Group name", type a name for your runner group. diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-locations.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-locations.md new file mode 100644 index 0000000000..5c52c17b39 --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-locations.md @@ -0,0 +1 @@ +Self-hosted runners can be physical, virtual, in a container, on-premises, or in a cloud. diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runner-ports-protocols.md b/translations/zh-CN/data/reusables/actions/self-hosted-runner-ports-protocols.md index 486bb3838a..57f16b0906 100644 --- a/translations/zh-CN/data/reusables/actions/self-hosted-runner-ports-protocols.md +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runner-ports-protocols.md @@ -1,3 +1 @@ -{% ifversion ghes or ghae %} -The connection between self-hosted runners and {% data variables.product.product_name %} is over HTTP (port 80) and HTTPS (port 443). -{% endif %} \ No newline at end of file +Self-hosted runners must be able to communicate with {% ifversion ghae %}your enterprise on {% data variables.product.product_name %}{% elsif fpt or ghec or ghes %}{% data variables.product.product_location %}{% endif %} over HTTP (port 80) and HTTPS (port 443). diff --git a/translations/zh-CN/data/reusables/actions/self-hosted-runners-prerequisites.md b/translations/zh-CN/data/reusables/actions/self-hosted-runners-prerequisites.md new file mode 100644 index 0000000000..79e067029a --- /dev/null +++ b/translations/zh-CN/data/reusables/actions/self-hosted-runners-prerequisites.md @@ -0,0 +1,7 @@ +{%- ifversion ghes %} +- {% data variables.product.prodname_actions %} must be enabled for {% data variables.product.product_name %}. A site administrator can enable and configure {% data variables.product.prodname_actions %} for your instance. For more information, see "[Getting started with {% data variables.product.prodname_actions %} for {% data variables.product.prodname_ghe_server %}](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server)." +{%- endif %} + +- You must have access to the machine you will use as a self-hosted runner in your environment. + +- {% data reusables.actions.self-hosted-runner-ports-protocols %} For more information, see "[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github-ae)." diff --git a/translations/zh-CN/data/reusables/actions/starter-workflow-categories.md b/translations/zh-CN/data/reusables/actions/starter-workflow-categories.md index cf82a899e7..87bffadaf6 100644 --- a/translations/zh-CN/data/reusables/actions/starter-workflow-categories.md +++ b/translations/zh-CN/data/reusables/actions/starter-workflow-categories.md @@ -2,4 +2,4 @@ - **Deployment (CD)**. For more information, see "[About continuous deployment](/actions/deployment/about-deployments/about-continuous-deployment)." {% ifversion fpt or ghec %}- **Security**. For more information, see "[Setting up {% data variables.product.prodname_code_scanning %} using starter workflows](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository#setting-up-code-scanning-using-starter-workflows)."{% endif %} - **Continuous Integration (CI)**. 更多信息请参阅“[关于持续集成](/actions/automating-builds-and-tests/about-continuous-integration)”。 -- **Automation**. Automation starter workflows offer solutions for automating workflows, such as triaging pull requests and applying a label based on the paths that are modified in the pull request, or greeting users who are first time contributors to the repository. \ No newline at end of file +- **Automation**. Automation starter workflows offer solutions for automating workflows, such as triaging pull requests and applying a label based on the paths that are modified in the pull request, or greeting users who are first time contributors to the repository. diff --git a/translations/zh-CN/data/reusables/advanced-security/about-ghas-organization-policy.md b/translations/zh-CN/data/reusables/advanced-security/about-ghas-organization-policy.md index 2f7ba6f284..f3ced71365 100644 --- a/translations/zh-CN/data/reusables/advanced-security/about-ghas-organization-policy.md +++ b/translations/zh-CN/data/reusables/advanced-security/about-ghas-organization-policy.md @@ -1,4 +1,4 @@ -{% data variables.product.company_short %} 按提交者对 {% data variables.product.prodname_advanced_security %} 计费。 {% ifversion fpt or ghec %}更多信息请参阅“[管理 {% data variables.product.prodname_GH_advanced_security %} 的许可](/billing/managing-licensing-for-github-advanced-security)”。{% elsif ghes > 3.0 %}更多信息请参阅“[管理企业的 {% data variables.product.prodname_GH_advanced_security %}](/admin/advanced-security)”。{% endif %} +{% data variables.product.company_short %} 按提交者对 {% data variables.product.prodname_advanced_security %} 计费。 {% ifversion fpt or ghec %}更多信息请参阅“[管理 {% data variables.product.prodname_GH_advanced_security %} 的许可](/billing/managing-licensing-for-github-advanced-security)”。{% elsif ghes %}更多信息请参阅“[管理企业的 {% data variables.product.prodname_GH_advanced_security %}](/admin/advanced-security)”。{% endif %} 您可以执行策略来控制仓库管理员是否被允许在组织的仓库中为 {% data variables.product.prodname_advanced_security %} 启用功能。 您可以为企业帐户拥有的所有组织或您选择的单个组织配置策略。 diff --git a/translations/zh-CN/data/reusables/advanced-security/check-for-ghas-license.md b/translations/zh-CN/data/reusables/advanced-security/check-for-ghas-license.md index bc8a36a0fc..9fcc39ac76 100644 --- a/translations/zh-CN/data/reusables/advanced-security/check-for-ghas-license.md +++ b/translations/zh-CN/data/reusables/advanced-security/check-for-ghas-license.md @@ -1 +1 @@ -You can identify if your enterprise has a {% data variables.product.prodname_GH_advanced_security %} license by reviewing {% ifversion ghes = 3.0 %}the {% data variables.enterprise.management_console %}{% elsif ghes > 3.0 %}your enterprise settings{% endif %}. For more information, see "[Enabling GitHub Advanced Security for your enterprise](/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise#checking-whether-your-license-includes-github-advanced-security)." +You can identify if your enterprise has a {% data variables.product.prodname_GH_advanced_security %} license by reviewing your enterprise settings. For more information, see "[Enabling GitHub Advanced Security for your enterprise](/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise#checking-whether-your-license-includes-github-advanced-security)." diff --git a/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md b/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md deleted file mode 100644 index e968589009..0000000000 --- a/translations/zh-CN/data/reusables/advanced-security/ghas-availability.md +++ /dev/null @@ -1,10 +0,0 @@ -{% data variables.product.prodname_GH_advanced_security %} features are available - -{%- ifversion fpt %} for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations that use {% data variables.product.prodname_ghe_cloud %} can also access these features in private repositories with a license for {% data variables.product.prodname_GH_advanced_security %}. {% data reusables.advanced-security.more-info-ghas %} - -{%- elsif ghec %} and free of charge for public repositories on {% data variables.product.prodname_dotcom_the_website %}. Organizations within an enterprise that has a {% data variables.product.prodname_GH_advanced_security %} license can also access these features on private or internal repositories. {% data reusables.advanced-security.more-info-ghas %} - -{%- elsif ghes %} for enterprises with a license for {% data variables.product.prodname_GH_advanced_security %}. The features are restricted to repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} - -{%- elsif ghae %} for repositories owned by an organization. {% data reusables.advanced-security.more-info-ghas %} -{% endif %} diff --git a/translations/zh-CN/data/reusables/advanced-security/note-org-enable-uses-seats.md b/translations/zh-CN/data/reusables/advanced-security/note-org-enable-uses-seats.md index 9c23bbfb47..94beb02ccd 100644 --- a/translations/zh-CN/data/reusables/advanced-security/note-org-enable-uses-seats.md +++ b/translations/zh-CN/data/reusables/advanced-security/note-org-enable-uses-seats.md @@ -1,4 +1,4 @@ -{% ifversion ghes > 3.0 or ghec %} +{% ifversion ghes or ghec %} {% note %} **注意:**如果启用 diff --git a/translations/zh-CN/data/reusables/advanced-security/starter-workflow-overview.md b/translations/zh-CN/data/reusables/advanced-security/starter-workflow-overview.md index 7425d26a29..f5f341401c 100644 --- a/translations/zh-CN/data/reusables/advanced-security/starter-workflow-overview.md +++ b/translations/zh-CN/data/reusables/advanced-security/starter-workflow-overview.md @@ -1 +1 @@ -{% data variables.product.product_name %} provides starter workflows for security features such as {% data variables.product.prodname_code_scanning %}. You can use these suggested workflows to construct your {% data variables.product.prodname_code_scanning %} workflows, instead of starting from scratch. \ No newline at end of file +{% data variables.product.product_name %} provides starter workflows for security features such as {% data variables.product.prodname_code_scanning %}. You can use these suggested workflows to construct your {% data variables.product.prodname_code_scanning %} workflows, instead of starting from scratch. diff --git a/translations/zh-CN/data/reusables/advanced-security/starter-workflows-beta.md b/translations/zh-CN/data/reusables/advanced-security/starter-workflows-beta.md index 54baa92fc3..7cce688d11 100644 --- a/translations/zh-CN/data/reusables/advanced-security/starter-workflows-beta.md +++ b/translations/zh-CN/data/reusables/advanced-security/starter-workflows-beta.md @@ -2,4 +2,4 @@ **Note:** Starter workflows for {% data variables.product.prodname_advanced_security %} have been consolidated in a "Security" category in the **Actions** tab of a repository. This new configuration is currently in beta and subject to change. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/apps/optional_feature_activation.md b/translations/zh-CN/data/reusables/apps/optional_feature_activation.md index 3bb0f8c49f..5ee000f3d4 100644 --- a/translations/zh-CN/data/reusables/apps/optional_feature_activation.md +++ b/translations/zh-CN/data/reusables/apps/optional_feature_activation.md @@ -1,3 +1,2 @@ -4. 在左侧栏中,单击 **{% ifversion ghes < 3.1 %} 测试 {% else %} 可选 {% endif %} 功能**。 - {% ifversion ghes < 3.1 %} ![Beta features tab](/assets/images/github-apps/beta-features-option.png) {% else %} ![Optional features tab](/assets/images/github-apps/optional-features-option.png) {% endif %} -5. 在您要为应用程序启用的 {% ifversion ghes < 3.1 %} 测试 {% else %} 可选 {% endif %} 功能旁边,单击 **Opt-in(选择加入)**。 ![用于启用测试版功能的选择加入按钮](/assets/images/github-apps/enable-optional-features.png) +4. In the left sidebar, click **Optional Features**. ![Optional features tab](/assets/images/github-apps/optional-features-option.png) +5. Next to the optional feature you want to enable for your app, click **Opt-in**. ![用于启用测试版功能的选择加入按钮](/assets/images/github-apps/enable-optional-features.png) diff --git a/translations/zh-CN/data/reusables/apps/user-to-server-rate-limits.md b/translations/zh-CN/data/reusables/apps/user-to-server-rate-limits.md index 81551fa1d4..60ba02467d 100644 --- a/translations/zh-CN/data/reusables/apps/user-to-server-rate-limits.md +++ b/translations/zh-CN/data/reusables/apps/user-to-server-rate-limits.md @@ -1 +1 @@ -{% ifversion ghes %}By default, user-to-server{% else %}User-to-server{% endif %} requests are limited to {% ifversion ghae %}15,000{% elsif fpt or ghec or ghes %}5,000{% endif %} requests per hour and per authenticated user. All requests from OAuth applications authorized by a user or a personal access token owned by the user, and requests authenticated with any of the user's authentication credentials, share the same quota of {% ifversion ghae %}15,000{% elsif fpt or ghec or ghes %}5,000{% endif %} requests per hour for that user. \ No newline at end of file +{% ifversion ghes %}By default, user-to-server{% else %}User-to-server{% endif %} requests are limited to {% ifversion ghae %}15,000{% elsif fpt or ghec or ghes %}5,000{% endif %} requests per hour and per authenticated user. All requests from OAuth applications authorized by a user or a personal access token owned by the user, and requests authenticated with any of the user's authentication credentials, share the same quota of {% ifversion ghae %}15,000{% elsif fpt or ghec or ghes %}5,000{% endif %} requests per hour for that user. diff --git a/translations/zh-CN/data/reusables/billing/license-statuses.md b/translations/zh-CN/data/reusables/billing/license-statuses.md index eea8e721f5..b1d46411f2 100644 --- a/translations/zh-CN/data/reusables/billing/license-statuses.md +++ b/translations/zh-CN/data/reusables/billing/license-statuses.md @@ -3,4 +3,4 @@ If your license includes {% data variables.product.prodname_vss_ghe %}, you can - "Matched": The user account on {% data variables.product.prodname_dotcom_the_website %} is linked with a {% data variables.product.prodname_vs %} subscriber. - "Pending Invitation": An invitation was sent to a {% data variables.product.prodname_vs %} subscriber, but the subscriber has not accepted the invitation. - Blank: There is no {% data variables.product.prodname_vs %} association to consider for the user account on {% data variables.product.prodname_dotcom_the_website %}. -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/classroom/classroom-admins-link.md b/translations/zh-CN/data/reusables/classroom/classroom-admins-link.md index 238033da6d..f8ee7c3ef1 100644 --- a/translations/zh-CN/data/reusables/classroom/classroom-admins-link.md +++ b/translations/zh-CN/data/reusables/classroom/classroom-admins-link.md @@ -1 +1 @@ -For more information on classroom admins, see "[About management of classrooms](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms#about-management-of-classrooms)." \ No newline at end of file +For more information on classroom admins, see "[About management of classrooms](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/manage-classrooms#about-management-of-classrooms)." diff --git a/translations/zh-CN/data/reusables/cli/cli-installation.md b/translations/zh-CN/data/reusables/cli/cli-installation.md index 1f67668fba..7385da0a38 100644 --- a/translations/zh-CN/data/reusables/cli/cli-installation.md +++ b/translations/zh-CN/data/reusables/cli/cli-installation.md @@ -1 +1 @@ -For installation instructions for {% data variables.product.prodname_cli %}, see the [{% data variables.product.prodname_cli %} repository](https://github.com/cli/cli#installation). \ No newline at end of file +For installation instructions for {% data variables.product.prodname_cli %}, see the [{% data variables.product.prodname_cli %} repository](https://github.com/cli/cli#installation). diff --git a/translations/zh-CN/data/reusables/code-scanning/alert-tracking-link.md b/translations/zh-CN/data/reusables/code-scanning/alert-tracking-link.md index 9453962cff..25b7b94f3b 100644 --- a/translations/zh-CN/data/reusables/code-scanning/alert-tracking-link.md +++ b/translations/zh-CN/data/reusables/code-scanning/alert-tracking-link.md @@ -1,2 +1,2 @@ -For more information about creating issues to track {% data variables.product.prodname_code_scanning %} alerts, see "[Tracking {% data variables.product.prodname_code_scanning %} alerts in issues using task lists](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/tracking-code-scanning-alerts-in-issues-using-task-lists)." \ No newline at end of file +For more information about creating issues to track {% data variables.product.prodname_code_scanning %} alerts, see "[Tracking {% data variables.product.prodname_code_scanning %} alerts in issues using task lists](/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/tracking-code-scanning-alerts-in-issues-using-task-lists)." diff --git a/translations/zh-CN/data/reusables/code-scanning/beta-alert-tracking-in-issues.md b/translations/zh-CN/data/reusables/code-scanning/beta-alert-tracking-in-issues.md index 6664cbfafc..a3d0bf5c2a 100644 --- a/translations/zh-CN/data/reusables/code-scanning/beta-alert-tracking-in-issues.md +++ b/translations/zh-CN/data/reusables/code-scanning/beta-alert-tracking-in-issues.md @@ -7,4 +7,4 @@ This feature supports running analysis natively using {% data variables.product.prodname_actions %} or externally using existing CI/CD infrastructure, as well as third-party {% data variables.product.prodname_code_scanning %} tools, but _not_ third-party tracking tools. {% endnote %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/code-scanning/billing.md b/translations/zh-CN/data/reusables/code-scanning/billing.md index 062c1dde95..3592c4546b 100644 --- a/translations/zh-CN/data/reusables/code-scanning/billing.md +++ b/translations/zh-CN/data/reusables/code-scanning/billing.md @@ -1 +1 @@ -{% ifversion fpt or ghec %}使用操作运行 {% data variables.product.prodname_code_scanning %} 将消耗分钟数。 更多信息请参阅“[关于 {% data variables.product.prodname_actions %} 的计费](/billing/managing-billing-for-github-actions/about-billing-for-github-actions).”{% endif %} \ No newline at end of file +{% ifversion fpt or ghec %}使用操作运行 {% data variables.product.prodname_code_scanning %} 将消耗分钟数。 更多信息请参阅“[关于 {% data variables.product.prodname_actions %} 的计费](/billing/managing-billing-for-github-actions/about-billing-for-github-actions).”{% endif %} diff --git a/translations/zh-CN/data/reusables/code-scanning/codeql-runner-analyze-example.md b/translations/zh-CN/data/reusables/code-scanning/codeql-runner-analyze-example.md index 754e16228c..09773bc59e 100644 --- a/translations/zh-CN/data/reusables/code-scanning/codeql-runner-analyze-example.md +++ b/translations/zh-CN/data/reusables/code-scanning/codeql-runner-analyze-example.md @@ -1,17 +1,4 @@ 1. 填充 {% data variables.product.prodname_codeql %} 数据库、进行分析并将结果上传到 {% data variables.product.product_name %}。 结果将出现在仓库的 **Security(安全性)**选项卡中。 -{% ifversion ghes < 3.1 %} - - ```shell - $ /path/to-runner/codeql-runner-linux analyze --repository octo-org/example-repo - --github-url {% data variables.command_line.git_url_example %} --github-auth TOKEN - --commit 5b6a3078b31dc346e5ce7b86837d6abbe7a18bbd --ref refs/heads/my-branch - > Finalizing database creation - > ... - > POST /repos/octo-org/example-repo/code-scanning/sarifs - 202 in 786ms - > Successfully uploaded results - ``` - -{% else %} ```shell $ echo "$TOKEN" | /path/to-runner/codeql-runner-linux analyze --repository octo-org/example-repo @@ -22,21 +9,7 @@ > POST /repos/octo-org/example-repo/code-scanning/sarifs - 202 in 786ms > Successfully uploaded results ``` -{% endif %} 2. 要将 {% data variables.product.prodname_code_scanning %} 结果上传为拉取请求检查,请使用 `--ref` 指定拉取请求 标志. 我们建议设置 {% data variables.product.prodname_codeql_runner %},以便它在发生 [`pull_request`](/developers/webhooks-and-events/webhook-events-and-payloads#pull_request) web 挂钩事件时运行。 -{% ifversion ghes < 3.1 %} - - ```shell - $ /path/to-runner/codeql-runner-linux analyze --repository octo-org/example-repo - --github-url {% data variables.command_line.git_url_example %} --github-auth TOKEN - --commit 1dc7a1346e5ce7b86835b68bbda3078b37d6abbe --ref refs/pull/123/merge - > Finalizing database creation - > ... - > POST /repos/octo-org/example-repo/code-scanning/sarifs - 202 in 786ms - > Successfully uploaded results - ``` - -{% else %} ```shell $ echo "$TOKEN" | /path/to-runner/codeql-runner-linux analyze --repository octo-org/example-repo @@ -47,10 +20,5 @@ > POST /repos/octo-org/example-repo/code-scanning/sarifs - 202 in 786ms > Successfully uploaded results ``` -{% endif %} -{% ifversion ghes < 3.1 %} -有关查看 {% data variables.product.prodname_code_scanning %} 警报的更多信息,请参阅“[对拉取请求中的代码扫描警报分类](/github/finding-security-vulnerabilities-and-errors-in-your-code/triaging-code-scanning-alerts-in-pull-requests)”和“[管理仓库的代码扫描警报](/github/finding-security-vulnerabilities-and-errors-in-your-code/managing-code-scanning-alerts-for-your-repository)”。 -{% else %} 有关查看 {% data variables.product.prodname_code_scanning %} 警报的更多信息,请参阅“[对拉取请求中的代码扫描警报分类](/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests)”和“[管理仓库的代码扫描警报](/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository)”。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/code-scanning/upload-sarif-alert-limit.md b/translations/zh-CN/data/reusables/code-scanning/upload-sarif-alert-limit.md index e93020dca6..1e0acc9750 100644 --- a/translations/zh-CN/data/reusables/code-scanning/upload-sarif-alert-limit.md +++ b/translations/zh-CN/data/reusables/code-scanning/upload-sarif-alert-limit.md @@ -1,7 +1,7 @@ {% note %} **注意:** -- SARIF upload supports a maximum of {% ifversion ghae or fpt or ghes > 3.0 or ghec %}5000{% else %}1000{% endif %} results per upload. 超过此限制的任何结果均被忽略。 如果工具产生太多结果,则应更新配置,以专注于最重要的规则或查询的结果。 +- SARIF upload supports a maximum of 5000 results per upload. 超过此限制的任何结果均被忽略。 如果工具产生太多结果,则应更新配置,以专注于最重要的规则或查询的结果。 - For each upload, SARIF upload supports a maximum size of 10 MB for the `gzip`-compressed SARIF file. Any uploads over this limit will be rejected. If your SARIF file is too large because it contains too many results, you should update the configuration to focus on results for the most important rules or queries. diff --git a/translations/zh-CN/data/reusables/code-scanning/what-is-codeql-cli.md b/translations/zh-CN/data/reusables/code-scanning/what-is-codeql-cli.md index 97150ddd3f..5306210366 100644 --- a/translations/zh-CN/data/reusables/code-scanning/what-is-codeql-cli.md +++ b/translations/zh-CN/data/reusables/code-scanning/what-is-codeql-cli.md @@ -1,3 +1 @@ -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} {% data variables.product.prodname_codeql_cli %} 是一个可用来分析代码的独立产品。 其主要用途是生成代码空间的数据库表示形式,即 {% data variables.product.prodname_codeql %} 数据库。 数据库准备就绪后,您可以进行交互式查询,或者运行一系列查询以生成一组 SARIF 格式的结果,然后将结果上传到 {% data variables.product.product_location %}。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/codespaces/billing-for-prebuilds.md b/translations/zh-CN/data/reusables/codespaces/billing-for-prebuilds.md index 6fa486a529..6dbb3ae812 100644 --- a/translations/zh-CN/data/reusables/codespaces/billing-for-prebuilds.md +++ b/translations/zh-CN/data/reusables/codespaces/billing-for-prebuilds.md @@ -2,4 +2,4 @@ A {% data variables.product.prodname_actions %} workflow is triggered every time If you are an organization owner, you can track usage of prebuild workflows by downloading a {% data variables.product.prodname_actions %} usage report for your organization. You can identify workflow runs for prebuilds by filtering the CSV output to only include the workflow called "Create Codespaces Prebuilds." 更多信息请参阅“[查看 {% data variables.product.prodname_actions %} 使用情况](/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage#viewing-github-actions-usage-for-your-organization)”。 -While {% data variables.product.prodname_codespaces %} prebuilds is in beta there is no charge for storage of templates. When prebuilds become generally available, you will be billed for storing prebuild templates for each prebuild configuration in each region selected for that configuration. \ No newline at end of file +While {% data variables.product.prodname_codespaces %} prebuilds is in beta there is no charge for storage of templates. When prebuilds become generally available, you will be billed for storing prebuild templates for each prebuild configuration in each region selected for that configuration. diff --git a/translations/zh-CN/data/reusables/codespaces/codespaces-api-beta-note.md b/translations/zh-CN/data/reusables/codespaces/codespaces-api-beta-note.md index 08771b1c3f..3bd6971a87 100644 --- a/translations/zh-CN/data/reusables/codespaces/codespaces-api-beta-note.md +++ b/translations/zh-CN/data/reusables/codespaces/codespaces-api-beta-note.md @@ -2,4 +2,4 @@ **Note**: The {% data variables.product.prodname_codespaces %} API is currently in public beta and subject to change. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/codespaces/deleting-a-codespace-in-vscode.md b/translations/zh-CN/data/reusables/codespaces/deleting-a-codespace-in-vscode.md index 61c3766f55..433164b208 100644 --- a/translations/zh-CN/data/reusables/codespaces/deleting-a-codespace-in-vscode.md +++ b/translations/zh-CN/data/reusables/codespaces/deleting-a-codespace-in-vscode.md @@ -1,4 +1,4 @@ 1. 在“Codespaces(代码空间)”下,右键点击您要删除的代码空间。 2. 在下拉菜单中,单击 **Delete Codespace(删除代码空间)**。 - ![在 {% data variables.product.prodname_dotcom %} 中删除代码空间](/assets/images/help/codespaces/delete-codespace-vscode.png) \ No newline at end of file + ![在 {% data variables.product.prodname_dotcom %} 中删除代码空间](/assets/images/help/codespaces/delete-codespace-vscode.png) diff --git a/translations/zh-CN/data/reusables/codespaces/links-to-get-started.md b/translations/zh-CN/data/reusables/codespaces/links-to-get-started.md index 1bc8aa681b..5448b6204f 100644 --- a/translations/zh-CN/data/reusables/codespaces/links-to-get-started.md +++ b/translations/zh-CN/data/reusables/codespaces/links-to-get-started.md @@ -1 +1 @@ -To get started with {% data variables.product.prodname_codespaces %}, see "[Quickstart for {% data variables.product.prodname_codespaces %}](/codespaces/getting-started/quickstart)." To learn more about how {% data variables.product.prodname_codespaces %} works, see "[Deep dive into Codespaces](/codespaces/getting-started/deep-dive)." \ No newline at end of file +To get started with {% data variables.product.prodname_codespaces %}, see "[Quickstart for {% data variables.product.prodname_codespaces %}](/codespaces/getting-started/quickstart)." To learn more about how {% data variables.product.prodname_codespaces %} works, see "[Deep dive into Codespaces](/codespaces/getting-started/deep-dive)." diff --git a/translations/zh-CN/data/reusables/codespaces/port-visibility-settings.md b/translations/zh-CN/data/reusables/codespaces/port-visibility-settings.md index 75723a2ac5..9879723104 100644 --- a/translations/zh-CN/data/reusables/codespaces/port-visibility-settings.md +++ b/translations/zh-CN/data/reusables/codespaces/port-visibility-settings.md @@ -2,4 +2,4 @@ There are three visibility settings: * `private` - Visible only to you. This is the default setting when you forward a port. * `org` - Visible to members of the organization that owns the repository. -* `public` - Visible to anyone who knows the URL and port number. \ No newline at end of file +* `public` - Visible to anyone who knows the URL and port number. diff --git a/translations/zh-CN/data/reusables/codespaces/prebuilds-beta-note.md b/translations/zh-CN/data/reusables/codespaces/prebuilds-beta-note.md index 7e48d1342c..3b343a2954 100644 --- a/translations/zh-CN/data/reusables/codespaces/prebuilds-beta-note.md +++ b/translations/zh-CN/data/reusables/codespaces/prebuilds-beta-note.md @@ -2,4 +2,4 @@ **Note:** The ability to prebuild codespaces is currently in beta and subject to change. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/codespaces/prebuilds-crossreference.md b/translations/zh-CN/data/reusables/codespaces/prebuilds-crossreference.md index e7697bec42..a6d82dba27 100644 --- a/translations/zh-CN/data/reusables/codespaces/prebuilds-crossreference.md +++ b/translations/zh-CN/data/reusables/codespaces/prebuilds-crossreference.md @@ -1 +1 @@ -To speed up codespace creation, repository administrators can enable {% data variables.product.prodname_codespaces %} prebuilds for a repository. For more information, see "[About {% data variables.product.prodname_codespaces %} prebuilds](/codespaces/prebuilding-your-codespaces/about-codespaces-prebuilds)." \ No newline at end of file +To speed up codespace creation, repository administrators can enable {% data variables.product.prodname_codespaces %} prebuilds for a repository. For more information, see "[About {% data variables.product.prodname_codespaces %} prebuilds](/codespaces/prebuilding-your-codespaces/about-codespaces-prebuilds)." diff --git a/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md b/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md index 89a68384b2..2d1fb7dace 100644 --- a/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md +++ b/translations/zh-CN/data/reusables/dependabot/about-the-dependency-graph.md @@ -1,4 +1,4 @@ 依赖项图是存储在仓库中的清单和锁定文件的摘要。 对于每个仓库,它显示{% ifversion fpt or ghec %}: - 依赖项、它依赖的生态系统和包 -- 依赖项、依赖于它的仓库和包{% else %} 依赖项,即它所依赖的生态系统和包。 {% data variables.product.product_name %} 不计算有关依赖项、仓库和依赖于仓库的包的信息。{% endif %} \ No newline at end of file +- 依赖项、依赖于它的仓库和包{% else %} 依赖项,即它所依赖的生态系统和包。 {% data variables.product.product_name %} 不计算有关依赖项、仓库和依赖于仓库的包的信息。{% endif %} diff --git a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates-onboarding.md b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates-onboarding.md index 4825ebce9c..f50ef78f03 100644 --- a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates-onboarding.md +++ b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates-onboarding.md @@ -6,4 +6,4 @@ {% endnote %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md index f3c7a1f363..f92d10927d 100644 --- a/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md +++ b/translations/zh-CN/data/reusables/dependabot/beta-security-and-version-updates.md @@ -8,4 +8,4 @@ {% endif %} {% endnote %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/dotcom_billing/codespaces-report-download.md b/translations/zh-CN/data/reusables/dotcom_billing/codespaces-report-download.md index 68aea0d9a7..1fb5e0a0ad 100644 --- a/translations/zh-CN/data/reusables/dotcom_billing/codespaces-report-download.md +++ b/translations/zh-CN/data/reusables/dotcom_billing/codespaces-report-download.md @@ -1 +1 @@ -1. Optionally, next to "Usage this month", click **Get usage report** to email a CSV report of storage use for {% data variables.product.prodname_codespaces %} to the account's primary email address. ![下载 CSV 报告](/assets/images/help/codespaces/usage-report-download.png) \ No newline at end of file +1. Optionally, next to "Usage this month", click **Get usage report** to email a CSV report of storage use for {% data variables.product.prodname_codespaces %} to the account's primary email address. ![下载 CSV 报告](/assets/images/help/codespaces/usage-report-download.png) diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md b/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md index baed587cdc..f499ba2b03 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/about-recovery-codes.md @@ -1 +1 @@ -If a SAML configuration error or an issue with your identity provider (IdP) prevents you from using SAML SSO, you can use a recovery code to access your enterprise. \ No newline at end of file +If a SAML configuration error or an issue with your identity provider (IdP) prevents you from using SAML SSO, you can use a recovery code to access your enterprise. diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/dormant-user-activity.md b/translations/zh-CN/data/reusables/enterprise-accounts/dormant-user-activity.md index e1b2b2cf75..b200d8f417 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/dormant-user-activity.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/dormant-user-activity.md @@ -3,4 +3,4 @@ - 评论问题和拉取请求。 - 创建、删除、关注仓库和加星标。 - 推送提交。 -- Accessing resources by using a personal access token or SSH key. \ No newline at end of file +- Accessing resources by using a personal access token or SSH key. diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md b/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md index 7c2756a15a..64ca2128ad 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/download-recovery-codes.md @@ -1,3 +1,3 @@ 1. To ensure you can still access your enterprise in the event that your identity provider is ever unavailable in the future, click **Download**, **Print**, or **Copy** to save your recovery codes. For more information, see "[Downloading your enterprise account's SAML single sign-on recovery codes](/admin/identity-and-access-management/managing-recovery-codes-for-your-enterprise/downloading-your-enterprise-accounts-saml-single-sign-on-recovery-codes)." - ![Screenshot of the buttons to download, print, or copy your recovery codes](/assets/images/help/saml/saml_recovery_code_options.png) \ No newline at end of file + ![Screenshot of the buttons to download, print, or copy your recovery codes](/assets/images/help/saml/saml_recovery_code_options.png) diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/enterprise-accounts-compliance-tab.md b/translations/zh-CN/data/reusables/enterprise-accounts/enterprise-accounts-compliance-tab.md index 190aa5fc78..a16d7459ab 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/enterprise-accounts-compliance-tab.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/enterprise-accounts-compliance-tab.md @@ -1 +1 @@ -1. In the enterprise account sidebar, click {% octicon "checklist" aria-label="The Compliance icon" %} **Compliance**. ![Compliance tab in the enterprise account sidebar](/assets/images/help/business-accounts/enterprise-accounts-compliance-tab.png) \ No newline at end of file +1. In the enterprise account sidebar, click {% octicon "checklist" aria-label="The Compliance icon" %} **Compliance**. ![Compliance tab in the enterprise account sidebar](/assets/images/help/business-accounts/enterprise-accounts-compliance-tab.png) diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/github-connect-tab.md b/translations/zh-CN/data/reusables/enterprise-accounts/github-connect-tab.md index 848c15910e..74b591c23b 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/github-connect-tab.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/github-connect-tab.md @@ -1,3 +1 @@ -{% ifversion ghes < 3.1 %} -1. 在左侧边栏中,单击 **{% data variables.product.prodname_github_connect %}**。 ![GitHub Connect tab in the business account settings sidebar](/assets/images/enterprise/business-accounts/settings-github-connect-tab.png){% else %} -1. In the enterprise account sidebar, click {% octicon "plug" aria-label="The GitHub Connect gear" %} **{% data variables.product.prodname_github_connect %}**. ![GitHub Connect tab in the enterprise account sidebar](/assets/images/help//business-accounts/enterprise-account-github-connect-tab.png){% endif %} +1. In the enterprise account sidebar, click {% octicon "plug" aria-label="The GitHub Connect gear" %} **{% data variables.product.prodname_github_connect %}**. ![GitHub Connect tab in the enterprise account sidebar](/assets/images/help//business-accounts/enterprise-account-github-connect-tab.png) diff --git a/translations/zh-CN/data/reusables/enterprise-accounts/viewing-dormant-users.md b/translations/zh-CN/data/reusables/enterprise-accounts/viewing-dormant-users.md index 9c3fda546a..4ffc69d19e 100644 --- a/translations/zh-CN/data/reusables/enterprise-accounts/viewing-dormant-users.md +++ b/translations/zh-CN/data/reusables/enterprise-accounts/viewing-dormant-users.md @@ -1 +1 @@ -您可以查看未被挂起和不属于站点管理员的所有休眠用户的列表。 \ No newline at end of file +您可以查看未被挂起和不属于站点管理员的所有休眠用户的列表。 diff --git a/translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md b/translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md index 719ef36fe7..3350ff2b65 100644 --- a/translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md +++ b/translations/zh-CN/data/reusables/enterprise-licensing/about-license-sync.md @@ -1 +1,5 @@ -You can allocate the user count for your {% data variables.product.prodname_enterprise %} license to members of both {% data variables.product.product_location_enterprise %} and an enterprise account on {% data variables.product.prodname_ghe_cloud %}. When you add a user to either environment, the user will consume one license. If a user has accounts in both environments, to consume only one license, the user's primary email address on {% data variables.product.product_location_enterprise %} must be the same as the user's verified email address on {% data variables.product.prodname_dotcom_the_website %}. 您可以在两种环境之间同步许可数和使用情况。 +{% data variables.product.prodname_enterprise %} uses a unique-user licensing model, where each person only consumes one license, no matter how many {% data variables.product.prodname_ghe_server %} instances the person uses, or how many organizations the person is a member of on {% data variables.product.prodname_ghe_cloud %}. This model allows each person to use multiple {% data variables.product.prodname_enterprise %} environments without incurring extra costs. + +For a person using multiple {% data variables.product.prodname_enterprise %} environments to only consume a single license, you must synchronize license usage between environments. Then, {% data variables.product.company_short %} will deduplicate users based on the email addresses associated with their personal accounts. Multiple personal accounts will consume a single license when there is a match between an account's primary email address on {% data variables.product.prodname_ghe_server %} and/or an account's verified email address on {% data variables.product.prodname_dotcom_the_website %}. For more information about verification of email addresses on {% data variables.product.prodname_dotcom_the_website %}, see "[Verifying your email address](/enterprise-cloud@latest/get-started/signing-up-for-github/verifying-your-email-address){% ifversion not ghec %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} + +When you synchronize license usage, only the user ID and email addresses for each personal account on {% data variables.product.prodname_ghe_server %} are transmitted to {% data variables.product.prodname_ghe_cloud %}. \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/enterprise-licensing/verified-domains-license-sync.md b/translations/zh-CN/data/reusables/enterprise-licensing/verified-domains-license-sync.md new file mode 100644 index 0000000000..3a93c7b664 --- /dev/null +++ b/translations/zh-CN/data/reusables/enterprise-licensing/verified-domains-license-sync.md @@ -0,0 +1,5 @@ +{% note %} + +**Note:** If you synchronize license usage and your enterprise account on {% data variables.product.prodname_dotcom_the_website %} does not use {% data variables.product.prodname_emus %}, we highly recommend enabling verified domains for your enterprise account on {% data variables.product.prodname_dotcom_the_website %}. For privacy reasons, your consumed license report only includes the email address associated with a personal account on {% data variables.product.prodname_dotcom_the_website %} if the address is hosted by a verified domain. If one person is erroneously consuming multiple licenses, having access to the email address that is being used for deduplication makes troubleshooting much easier. For more information. see "[Verifying or approving a domain for your enterprise](/enterprise-cloud@latest/admin/configuration/configuring-your-enterprise/verifying-or-approving-a-domain-for-your-enterprise)" and "[About {% data variables.product.prodname_emus %}](/enterprise-cloud@latest/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users){% ifversion not ghec %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} + +{% endnote %} \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/enterprise-licensing/view-consumed-licenses.md b/translations/zh-CN/data/reusables/enterprise-licensing/view-consumed-licenses.md new file mode 100644 index 0000000000..79e443ac95 --- /dev/null +++ b/translations/zh-CN/data/reusables/enterprise-licensing/view-consumed-licenses.md @@ -0,0 +1 @@ +After you synchronize license usage, you can see a report of consumed licenses across all your environments in the enterprise settings on {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[Viewing license usage for {% data variables.product.prodname_enterprise %}](/enterprise-cloud@latest/billing/managing-your-license-for-github-enterprise/viewing-license-usage-for-github-enterprise)." diff --git a/translations/zh-CN/data/reusables/enterprise/create-an-enterprise-account.md b/translations/zh-CN/data/reusables/enterprise/create-an-enterprise-account.md index 0596400406..031039863b 100644 --- a/translations/zh-CN/data/reusables/enterprise/create-an-enterprise-account.md +++ b/translations/zh-CN/data/reusables/enterprise/create-an-enterprise-account.md @@ -1 +1 @@ -If you currently use {% data variables.product.prodname_ghe_cloud %} with a single organization, we encourage you to create an enterprise account. \ No newline at end of file +If you currently use {% data variables.product.prodname_ghe_cloud %} with a single organization, we encourage you to create an enterprise account. diff --git a/translations/zh-CN/data/reusables/enterprise/navigate-to-log-streaming-tab.md b/translations/zh-CN/data/reusables/enterprise/navigate-to-log-streaming-tab.md index 84e6987d24..f99a165383 100644 --- a/translations/zh-CN/data/reusables/enterprise/navigate-to-log-streaming-tab.md +++ b/translations/zh-CN/data/reusables/enterprise/navigate-to-log-streaming-tab.md @@ -1,4 +1,4 @@ {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.audit-log-tab %} -1. Click the **Log streaming** tab. \ No newline at end of file +1. Click the **Log streaming** tab. diff --git a/translations/zh-CN/data/reusables/enterprise/repository-caching-config-summary.md b/translations/zh-CN/data/reusables/enterprise/repository-caching-config-summary.md index 8eac23bf49..73fde0a21b 100644 --- a/translations/zh-CN/data/reusables/enterprise/repository-caching-config-summary.md +++ b/translations/zh-CN/data/reusables/enterprise/repository-caching-config-summary.md @@ -1 +1 @@ -You can configure repository caching by creating a special type of replica called a repository cache. \ No newline at end of file +You can configure repository caching by creating a special type of replica called a repository cache. diff --git a/translations/zh-CN/data/reusables/enterprise/repository-caching-release-phase.md b/translations/zh-CN/data/reusables/enterprise/repository-caching-release-phase.md index cb29239832..a6035dfd4f 100644 --- a/translations/zh-CN/data/reusables/enterprise/repository-caching-release-phase.md +++ b/translations/zh-CN/data/reusables/enterprise/repository-caching-release-phase.md @@ -2,4 +2,4 @@ **Note:** Repository caching is currently in beta and subject to change. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/enterprise/upgrade-ghes-for-features.md b/translations/zh-CN/data/reusables/enterprise/upgrade-ghes-for-features.md index fb2c9a733e..21828f8a44 100644 --- a/translations/zh-CN/data/reusables/enterprise/upgrade-ghes-for-features.md +++ b/translations/zh-CN/data/reusables/enterprise/upgrade-ghes-for-features.md @@ -2,4 +2,4 @@ **Note:** Features such as {% data variables.product.prodname_actions %}, {% data variables.product.prodname_registry %}, {% data variables.product.prodname_mobile %} and {% data variables.product.prodname_GH_advanced_security %} are available on {% data variables.product.prodname_ghe_server %} 3.0 or higher. We highly recommend upgrading to 3.0 or later releases to take advantage of critical security updates, bug fixes and feature enhancements. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/enterprise_installation/azure-instance-recommendation.md b/translations/zh-CN/data/reusables/enterprise_installation/azure-instance-recommendation.md index 21d844be89..5c2fc9ead4 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/azure-instance-recommendation.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/azure-instance-recommendation.md @@ -2,4 +2,4 @@ {% data variables.product.company_short %} 建议对 {% data variables.product.prodname_ghe_server %} 使用内存优化的虚拟机。 更多信息请参阅 Azure 文档中的“[内存优化的虚拟机大小](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes-memory)”。 -{% data variables.product.prodname_ghe_server %} 可以在支持您的 VM 类型的任何地区使用。 有关各个 VM 的支持地区的更多信息,请参阅 Azure 的“[可用产品(按地区)](https://azure.microsoft.com/regions/services/)”。 \ No newline at end of file +{% data variables.product.prodname_ghe_server %} 可以在支持您的 VM 类型的任何地区使用。 有关各个 VM 的支持地区的更多信息,请参阅 Azure 的“[可用产品(按地区)](https://azure.microsoft.com/regions/services/)”。 diff --git a/translations/zh-CN/data/reusables/enterprise_installation/generate-replication-key-pair.md b/translations/zh-CN/data/reusables/enterprise_installation/generate-replication-key-pair.md index b593e7410d..e74edf1eac 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/generate-replication-key-pair.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/generate-replication-key-pair.md @@ -1,4 +1,4 @@ 7. 要为副本生成密钥对,请使用包含主设备 IP 地址的 `ghe-repl-setup` 命令,并复制该命令返回的公钥。 ```shell $ ghe-repl-setup PRIMARY IP - ``` \ No newline at end of file + ``` diff --git a/translations/zh-CN/data/reusables/enterprise_installation/proxy-incompatible-with-aws-nlbs.md b/translations/zh-CN/data/reusables/enterprise_installation/proxy-incompatible-with-aws-nlbs.md index 690abb634f..1927e06e43 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/proxy-incompatible-with-aws-nlbs.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/proxy-incompatible-with-aws-nlbs.md @@ -2,4 +2,4 @@ **Note:** {% data variables.product.prodname_ghe_server %} supports PROXY Protocol V1, which is incompatible with AWS Network Load Balancers. If you use AWS Network Load Balancers with {% data variables.product.prodname_ghe_server %}, do not enable PROXY support. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/enterprise_installation/replica-steps.md b/translations/zh-CN/data/reusables/enterprise_installation/replica-steps.md index 52acdb75db..1bb07816ae 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/replica-steps.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/replica-steps.md @@ -1,4 +1,4 @@ 3. 设置与主设备密码匹配的管理员密码,然后继续。 4. 单击 **Configure as Replica**。 ![包含用于将新实例配置为副本的链接的安装选项](/assets/images/enterprise/management-console/configure-as-replica.png) 5. 在“Add new SSH key”下,输入 SSH 密钥。 ![添加 SSH 密钥](/assets/images/enterprise/management-console/add-ssh-key.png) -6. 单击 **Add key(添加密钥)**。 \ No newline at end of file +6. 单击 **Add key(添加密钥)**。 diff --git a/translations/zh-CN/data/reusables/enterprise_installation/verify-replication-channel.md b/translations/zh-CN/data/reusables/enterprise_installation/verify-replication-channel.md index 157e059573..a168c7dd01 100644 --- a/translations/zh-CN/data/reusables/enterprise_installation/verify-replication-channel.md +++ b/translations/zh-CN/data/reusables/enterprise_installation/verify-replication-channel.md @@ -1,4 +1,4 @@ 11. 要验证各个数据存储复制通道的状态,请使用 `ghe-repl-status` 命令。 ```shell $ ghe-repl-status - ``` \ No newline at end of file + ``` diff --git a/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md b/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md index adeca7e488..9fb761a85b 100644 --- a/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md +++ b/translations/zh-CN/data/reusables/enterprise_management_console/save-settings.md @@ -8,4 +8,4 @@ {% endnote %} -{% data reusables.enterprise_site_admin_settings.wait-for-configuration-run %} \ No newline at end of file +{% data reusables.enterprise_site_admin_settings.wait-for-configuration-run %} diff --git a/translations/zh-CN/data/reusables/enterprise_site_admin_settings/access-settings.md b/translations/zh-CN/data/reusables/enterprise_site_admin_settings/access-settings.md index 01f3e3fbdf..145716846a 100644 --- a/translations/zh-CN/data/reusables/enterprise_site_admin_settings/access-settings.md +++ b/translations/zh-CN/data/reusables/enterprise_site_admin_settings/access-settings.md @@ -4,4 +4,4 @@ 1. If you're not already on the "Site admin" page, in the upper-left corner, click **Site admin**. - ![Screenshot of "Site admin" link](/assets/images/enterprise/site-admin-settings/site-admin-link.png) \ No newline at end of file + ![Screenshot of "Site admin" link](/assets/images/enterprise/site-admin-settings/site-admin-link.png) diff --git a/translations/zh-CN/data/reusables/gated-features/code-scanning.md b/translations/zh-CN/data/reusables/gated-features/code-scanning.md index e1c400823b..131bd98b15 100644 --- a/translations/zh-CN/data/reusables/gated-features/code-scanning.md +++ b/translations/zh-CN/data/reusables/gated-features/code-scanning.md @@ -1,5 +1,5 @@ {% ifversion fpt or ghec %}{% data variables.product.prodname_code_scanning_capc %} 适用于所有公共仓库以及启用了 {% data variables.product.prodname_GH_advanced_security %} 的组织拥有的私有仓库。 -{%- elsif ghes > 3.0 %}{% data variables.product.prodname_code_scanning_capc %} 适用于启用了 {% data variables.product.prodname_GH_advanced_security %} 的组织拥有的仓库。 +{%- elsif ghes %}{% data variables.product.prodname_code_scanning_capc %} 适用于启用了 {% data variables.product.prodname_GH_advanced_security %} 的组织拥有的仓库。 {%- elsif ghae %} {% data variables.product.prodname_code_scanning_capc %} 可用作 {% data variables.product.prodname_GH_advanced_security %} 的一部分,在测试期间免费使用。 {%- else %} diff --git a/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md b/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md index 9a2d11951d..84ba95f572 100644 --- a/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md +++ b/translations/zh-CN/data/reusables/gated-features/generated-health-checks.md @@ -1 +1 @@ -Generating a Health Check is available with {% data variables.contact.premium_support %}. 更多信息请参阅“[关于 {% data variables.contact.premium_support %}](/support/learning-about-github-support/about-github-premium-support)”。 \ No newline at end of file +Generating a Health Check is available with {% data variables.contact.premium_support %}. 更多信息请参阅“[关于 {% data variables.contact.premium_support %}](/support/learning-about-github-support/about-github-premium-support)”。 diff --git a/translations/zh-CN/data/reusables/gated-features/secret-scanning-partner.md b/translations/zh-CN/data/reusables/gated-features/secret-scanning-partner.md new file mode 100644 index 0000000000..7aa4a225d3 --- /dev/null +++ b/translations/zh-CN/data/reusables/gated-features/secret-scanning-partner.md @@ -0,0 +1,13 @@ +{%- ifversion fpt %} +{% data variables.product.prodname_secret_scanning_partner_caps %} is automatically run on public repositories in all products on {% data variables.product.prodname_dotcom_the_website %}. {% data variables.product.prodname_secret_scanning_GHAS_caps %} is available for repositories owned by organizations that use {% data variables.product.prodname_ghe_cloud %} and have a license for {% data variables.product.prodname_GH_advanced_security %}. + +{%- elsif ghec %} +{% data variables.product.prodname_secret_scanning_partner_caps %} is automatically run on all public repositories. If you have a license for {% data variables.product.prodname_GH_advanced_security %}, you can enable and configure {% data variables.product.prodname_secret_scanning_GHAS %} for any repository owned by an organization. + +{%- elsif ghes %} +{% data variables.product.prodname_secret_scanning_caps %} is available for organization-owned repositories in {% data variables.product.product_name %} if your enterprise has a license for {% data variables.product.prodname_GH_advanced_security %}. + +{%- elsif ghae %} +{% data variables.product.prodname_secret_scanning_caps %} is available for organization-owned repositories in {% data variables.product.product_name %}. This is a {% data variables.product.prodname_GH_advanced_security %} feature (free during the beta release). + +{%- endif %} {% ifversion not ghae %}For more information, see "[GitHub's products](/articles/githubs-products)."{% endif %} diff --git a/translations/zh-CN/data/reusables/gated-features/secret-scanning.md b/translations/zh-CN/data/reusables/gated-features/secret-scanning.md index c758a8dace..9b3f1c97e7 100644 --- a/translations/zh-CN/data/reusables/gated-features/secret-scanning.md +++ b/translations/zh-CN/data/reusables/gated-features/secret-scanning.md @@ -1,11 +1,7 @@ -{%- ifversion fpt %} -{% data variables.product.prodname_secret_scanning_caps %} is enabled on public repositories in all products. {% data variables.product.prodname_secret_scanning_caps %} is also available in private repositories owned by organizations that use {% data variables.product.prodname_ghe_cloud %} and have a license for {% data variables.product.prodname_GH_advanced_security %}. + -{%- elsif ghec %} -{% data variables.product.prodname_secret_scanning_caps %} is included in {% data variables.product.product_name %} for public repositories. To use {% data variables.product.prodname_secret_scanning %} in private repositories owned by organizations, you must have a license for {% data variables.product.prodname_GH_advanced_security %}. - -{%- elsif ghes %} -{% data variables.product.prodname_secret_scanning_caps %} is available for organization-owned repositories in {% data variables.product.product_name %} if your enterprise has a license for {% data variables.product.prodname_GH_advanced_security %}. +{%- ifversion ghec or ghes %} +{% data variables.product.prodname_secret_scanning_GHAS_caps %} is available for organization-owned repositories in {% data variables.product.product_name %} if your enterprise has a license for {% data variables.product.prodname_GH_advanced_security %}. {%- elsif ghae %} {% data variables.product.prodname_secret_scanning_caps %} is available for organization-owned repositories in {% data variables.product.product_name %}. This is a {% data variables.product.prodname_GH_advanced_security %} feature (free during the beta release). diff --git a/translations/zh-CN/data/reusables/gated-features/user-repo-collaborators.md b/translations/zh-CN/data/reusables/gated-features/user-repo-collaborators.md index 319b8698fd..55f63f10ca 100644 --- a/translations/zh-CN/data/reusables/gated-features/user-repo-collaborators.md +++ b/translations/zh-CN/data/reusables/gated-features/user-repo-collaborators.md @@ -1,4 +1,4 @@ {% ifversion fpt %} If you're using {% data variables.product.prodname_free_user %}, you can add unlimited collaborators on public and private repositories. -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/github-ae/saml-idp-table.md b/translations/zh-CN/data/reusables/github-ae/saml-idp-table.md index fc6061ed8e..b2446f89d6 100644 --- a/translations/zh-CN/data/reusables/github-ae/saml-idp-table.md +++ b/translations/zh-CN/data/reusables/github-ae/saml-idp-table.md @@ -1,4 +1,4 @@ | IdP | SAML | 用户预配 | Team mapping | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Azure Active Directory (Azure AD)](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-azure-ad) | {% octicon "check-circle-fill" aria-label="The check icon" %} | {% octicon "check-circle-fill" aria-label="The check icon" %} | {% octicon "check-circle-fill" aria-label="The check icon" %} -| [Okta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label="The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label="The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label= "The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams) | \ No newline at end of file +| [Okta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label="The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label="The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/configuring-authentication-and-provisioning-for-your-enterprise-using-okta) | {% octicon "check-circle-fill" aria-label= "The check icon" %}[Beta](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams) | diff --git a/translations/zh-CN/data/reusables/identity-and-permissions/team-sync-confirm-scim.md b/translations/zh-CN/data/reusables/identity-and-permissions/team-sync-confirm-scim.md index f7cfaf6571..2cadcc5846 100644 --- a/translations/zh-CN/data/reusables/identity-and-permissions/team-sync-confirm-scim.md +++ b/translations/zh-CN/data/reusables/identity-and-permissions/team-sync-confirm-scim.md @@ -1 +1 @@ -1. We recommend you confirm that your users have SAML enabled and have a linked SCIM identity to avoid potential provisioning errors. For help auditing your users, see "[Auditing users for missing SCIM metadata](/organizations/managing-saml-single-sign-on-for-your-organization/troubleshooting-identity-and-access-management#auditing-users-for-missing-scim-metadata)." For help resolving unlinked SCIM identities, see "[Troubleshooting identity and access management](/organizations/managing-saml-single-sign-on-for-your-organization/troubleshooting-identity-and-access-management)." \ No newline at end of file +1. We recommend you confirm that your users have SAML enabled and have a linked SCIM identity to avoid potential provisioning errors. For help auditing your users, see "[Auditing users for missing SCIM metadata](/organizations/managing-saml-single-sign-on-for-your-organization/troubleshooting-identity-and-access-management#auditing-users-for-missing-scim-metadata)." For help resolving unlinked SCIM identities, see "[Troubleshooting identity and access management](/organizations/managing-saml-single-sign-on-for-your-organization/troubleshooting-identity-and-access-management)." diff --git a/translations/zh-CN/data/reusables/notifications-v2/custom-notification-types.md b/translations/zh-CN/data/reusables/notifications-v2/custom-notification-types.md index 02e9d24697..4d9e7ffb32 100644 --- a/translations/zh-CN/data/reusables/notifications-v2/custom-notification-types.md +++ b/translations/zh-CN/data/reusables/notifications-v2/custom-notification-types.md @@ -1,3 +1,3 @@ {%- ifversion fpt or ghes > 3.1 or ghae-issue-4910 %}issues, pull requests, releases, security alerts, or discussions {%- else %}issues, pull requests, releases, or discussions -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/notifications/vulnerable-dependency-notification-options.md b/translations/zh-CN/data/reusables/notifications/vulnerable-dependency-notification-options.md index df4e025ec6..8d2b81380d 100644 --- a/translations/zh-CN/data/reusables/notifications/vulnerable-dependency-notification-options.md +++ b/translations/zh-CN/data/reusables/notifications/vulnerable-dependency-notification-options.md @@ -20,12 +20,12 @@ You can customize the way you are notified about {% data variables.product.prodname_dependabot_alerts %}. For example, you can receive a weekly digest email summarizing alerts for up to 10 of your repositories using the **Email a digest summary of vulnerabilities** and **Weekly security email digest** options. {% endif %} -{% ifversion ghes = 3.0 or ghes = 3.1 %} +{% ifversion ghes = 3.1 %} By default, if your site administrator has configured email for notifications on your instance, you will receive {% data variables.product.prodname_dependabot_alerts %}: -- by email, an email is sent every time a vulnerability {% ifversion ghes > 3.0 %}with a critical or high severity {% endif %}is found (**Email each time a vulnerability is found** option) +- by email, an email is sent every time a vulnerability with a critical or high severity is found (**Email each time a vulnerability is found** option) - in the user interface, a warning is shown in your repository's file and code views if there are any vulnerable dependencies (**UI alerts** option) - on the command line, warnings are displayed as callbacks when you push to repositories with any vulnerable dependencies (**Command Line** option) -- in your inbox, as web notifications {% ifversion ghes > 3.0 %}for new vulnerabilities with a critical or high severity {% endif %}(**Web** option) +- in your inbox, as web notifications for new vulnerabilities with a critical or high severity (**Web** option) You can customize the way you are notified about {% data variables.product.prodname_dependabot_alerts %}. For example, you can receive a weekly digest email summarizing alerts for up to 10 of your repositories using the **Email a digest summary of vulnerabilities** and **Weekly security email digest** options. {% endif %} diff --git a/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md b/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md index a88e2a17dd..31f89c2eab 100644 --- a/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md +++ b/translations/zh-CN/data/reusables/organizations/mixed-roles-warning.md @@ -1 +1 @@ -If a person has been given conflicting access, you'll see a warning on the repository access page. The warning appears with "{% octicon "alert" aria-label="The alert icon" %} Mixed roles" next to the person with the conflicting access. To see the source of the conflicting access, hover over the warning icon or click **Mixed roles**. \ No newline at end of file +If a person has been given conflicting access, you'll see a warning on the repository access page. The warning appears with "{% octicon "alert" aria-label="The alert icon" %} Mixed roles" next to the person with the conflicting access. To see the source of the conflicting access, hover over the warning icon or click **Mixed roles**. diff --git a/translations/zh-CN/data/reusables/organizations/organization-plans.md b/translations/zh-CN/data/reusables/organizations/organization-plans.md index 7a87c02ae6..878ccbc255 100644 --- a/translations/zh-CN/data/reusables/organizations/organization-plans.md +++ b/translations/zh-CN/data/reusables/organizations/organization-plans.md @@ -5,4 +5,4 @@ If you use {% data variables.product.prodname_ghe_cloud %}, you have the option {% ifversion fpt %} {% data reusables.enterprise.link-to-ghec-trial %}{% endif %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/organizations/people-export.md b/translations/zh-CN/data/reusables/organizations/people-export.md index 1faf6b95cf..938ea3529f 100644 --- a/translations/zh-CN/data/reusables/organizations/people-export.md +++ b/translations/zh-CN/data/reusables/organizations/people-export.md @@ -1 +1 @@ -1. To the right of the search bar, select the Export drop-down menu and click the desired export format. ![Screenshot of the export button.](/assets/images/help/organizations/people-tab-export.png) \ No newline at end of file +1. To the right of the search bar, select the Export drop-down menu and click the desired export format. ![Screenshot of the export button.](/assets/images/help/organizations/people-tab-export.png) diff --git a/translations/zh-CN/data/reusables/package_registry/about-packaging-and-actions.md b/translations/zh-CN/data/reusables/package_registry/about-packaging-and-actions.md index 2e7bd36c2c..7a3b504079 100644 --- a/translations/zh-CN/data/reusables/package_registry/about-packaging-and-actions.md +++ b/translations/zh-CN/data/reusables/package_registry/about-packaging-and-actions.md @@ -8,11 +8,7 @@ 现在,在审查拉取请求时,您将能够查看工作流程运行并下载生成的构件。 -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} ![下载构件下拉菜单](/assets/images/help/repository/artifact-drop-down-updated.png) -{% else %} -![下载构件下拉菜单](/assets/images/help/repository/artifact-drop-down.png) -{% endif %} 这将允许您在计算机上运行拉取请求中的代码,有助于调试或测试拉取请求。 diff --git a/translations/zh-CN/data/reusables/pages/check-workflow-run.md b/translations/zh-CN/data/reusables/pages/check-workflow-run.md index 9a20b621d1..3f19b37893 100644 --- a/translations/zh-CN/data/reusables/pages/check-workflow-run.md +++ b/translations/zh-CN/data/reusables/pages/check-workflow-run.md @@ -5,4 +5,4 @@ {% data reusables.pages.pages-builds-with-github-actions-public-beta %} -{% endnote %}{% endif %} \ No newline at end of file +{% endnote %}{% endif %} diff --git a/translations/zh-CN/data/reusables/pages/org-owners-can-restrict-pages-creation.md b/translations/zh-CN/data/reusables/pages/org-owners-can-restrict-pages-creation.md index f139acf51e..bbe603cef0 100644 --- a/translations/zh-CN/data/reusables/pages/org-owners-can-restrict-pages-creation.md +++ b/translations/zh-CN/data/reusables/pages/org-owners-can-restrict-pages-creation.md @@ -1,4 +1,4 @@ -{% ifversion fpt or ghes > 3.0 or ghec %} +{% ifversion fpt or ghes or ghec %} {% note %} **注意:**组织所有者现在可以限制从组织拥有的仓库发布 {% data variables.product.prodname_pages %} 站点。 更多信息请参阅“[管理 {% data variables.product.prodname_pages %} 站点的发布](/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization)”。 diff --git a/translations/zh-CN/data/reusables/pages/pages-builds-with-github-actions-public-beta.md b/translations/zh-CN/data/reusables/pages/pages-builds-with-github-actions-public-beta.md index 68073a7756..5fe70e9468 100644 --- a/translations/zh-CN/data/reusables/pages/pages-builds-with-github-actions-public-beta.md +++ b/translations/zh-CN/data/reusables/pages/pages-builds-with-github-actions-public-beta.md @@ -2,4 +2,4 @@ **Note:** {% data variables.product.prodname_actions %} workflow runs for your {% data variables.product.prodname_pages %} sites are in public beta for public repositories and subject to change. {% data variables.product.prodname_actions %} workflow runs are free for public repositories. -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/pages/secure-your-domain.md b/translations/zh-CN/data/reusables/pages/secure-your-domain.md index 41cff70a09..068d08cfbb 100644 --- a/translations/zh-CN/data/reusables/pages/secure-your-domain.md +++ b/translations/zh-CN/data/reusables/pages/secure-your-domain.md @@ -1,3 +1,3 @@ If your {% data variables.product.prodname_pages %} site is disabled but has a custom domain set up, it is at risk of a domain takeover. 在您的网站被禁用时拥有通过 DNS 提供商配置的自定义域,可能会导致其他人在您的一个子域上托管网站。 -Verifying your custom domain prevents other GitHub users from using your domain with their repositories. If your domain is not verified, and your {% data variables.product.prodname_pages %} site is disabled, you should immediately update or remove your DNS records with your DNS provider. \ No newline at end of file +Verifying your custom domain prevents other GitHub users from using your domain with their repositories. If your domain is not verified, and your {% data variables.product.prodname_pages %} site is disabled, you should immediately update or remove your DNS records with your DNS provider. diff --git a/translations/zh-CN/data/reusables/pages/settings-verify-domain-confirm.md b/translations/zh-CN/data/reusables/pages/settings-verify-domain-confirm.md index 375d47c55e..25f7234102 100644 --- a/translations/zh-CN/data/reusables/pages/settings-verify-domain-confirm.md +++ b/translations/zh-CN/data/reusables/pages/settings-verify-domain-confirm.md @@ -1,3 +1,3 @@ 1. After confirming that your DNS configuration has updated, you can verify the domain. If the change wasn't immediate, and you have navigated away from the previous page, return to your Pages settings by following the first few steps and, to the right of the domain, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %} and then click **Continue verifying**. ![Continue verifying option on Pages settings](/assets/images/help/pages/verify-continue.png) 1. To verify your domain, click **Verify**. ![Verify button on Pages settings](/assets/images/help/pages/verify-button.png) -1. To make sure your custom domain remains verified, keep the TXT record in your domain's DNS configuration. \ No newline at end of file +1. To make sure your custom domain remains verified, keep the TXT record in your domain's DNS configuration. diff --git a/translations/zh-CN/data/reusables/pages/settings-verify-domain-setup.md b/translations/zh-CN/data/reusables/pages/settings-verify-domain-setup.md index 8b514309f6..814542d698 100644 --- a/translations/zh-CN/data/reusables/pages/settings-verify-domain-setup.md +++ b/translations/zh-CN/data/reusables/pages/settings-verify-domain-setup.md @@ -1,3 +1,3 @@ 1. On the right, click **Add a domain**. ![Add domain button on Pages settings](/assets/images/help/pages/verify-add-domain.png) 1. Under "What domain would you like to add?", enter the domain you wish to verify and click **Add domain**. ![Domain text field and Add domain button on Pages settings](/assets/images/help/pages/verify-enter-domain.png) -1. Follow the instructions under "Add a DNS TXT record" to create the TXT record with your domain hosting service. ![DNS TXT record information on Pages settings](/assets/images/help/pages/verify-dns.png) \ No newline at end of file +1. Follow the instructions under "Add a DNS TXT record" to create the TXT record with your domain hosting service. ![DNS TXT record information on Pages settings](/assets/images/help/pages/verify-dns.png) diff --git a/translations/zh-CN/data/reusables/pre-release-program/expiring-user-access-tokens.md b/translations/zh-CN/data/reusables/pre-release-program/expiring-user-access-tokens.md index dfa5ba2886..9a61ddb272 100644 --- a/translations/zh-CN/data/reusables/pre-release-program/expiring-user-access-tokens.md +++ b/translations/zh-CN/data/reusables/pre-release-program/expiring-user-access-tokens.md @@ -1,11 +1,4 @@ -{% ifversion ghes < 3.1 %} -{% note %} - -**注:**过期用户令牌目前是用户到服务器令牌过期的一部分,可能会更改。 要选择使用用户到服务器令牌过期测试功能,请参阅“[激活应用程序的可选功能](/developers/apps/activating-optional-features-for-apps)”。 更多信息请参阅“[GitHub 应用程序过期用户到服务器访问令牌](https://developer.github.com/changes/2020-04-30-expiring-user-to-server-access-tokens-for-github-apps)”。 - -{% endnote %} - -{% elsif fpt or ghes > 3.0 or ghae %} +{% ifversion fpt or ghes or ghae %} {% note %} diff --git a/translations/zh-CN/data/reusables/projects/about-workflows.md b/translations/zh-CN/data/reusables/projects/about-workflows.md index 99250baaed..5c78c53bc5 100644 --- a/translations/zh-CN/data/reusables/projects/about-workflows.md +++ b/translations/zh-CN/data/reusables/projects/about-workflows.md @@ -1,3 +1,3 @@ Projects (beta) includes built-in workflows that you can use to update the **Status** of items based on certain events. For example, you can automatically set the status to **Todo** when an item is added to your project or set the status to **Done** when an issue is closed. -When your project initializes, two workflows are enabled by default: When issues or pull requests in your project are closed, their status is set to **Done**, and when pull requests in your project are merged, their status is set to **Done**. \ No newline at end of file +When your project initializes, two workflows are enabled by default: When issues or pull requests in your project are closed, their status is set to **Done**, and when pull requests in your project are merged, their status is set to **Done**. diff --git a/translations/zh-CN/data/reusables/projects/project-description.md b/translations/zh-CN/data/reusables/projects/project-description.md index 6a403b14b4..9d86c3a797 100644 --- a/translations/zh-CN/data/reusables/projects/project-description.md +++ b/translations/zh-CN/data/reusables/projects/project-description.md @@ -7,4 +7,4 @@ You can set your project's description and README to share the purpose of your p - To toggle between the text box and a preview of your changes, click {% octicon "eye" aria-label="The preview icon" %} or {% octicon "pencil" aria-label="The edit icon" %}. 1. To save changes to your README, click **Save**. -You can view and make quick changes to your project description and README by navigating to your project and clicking {% octicon "sidebar-expand" aria-label="The sidebar icon" %} in the top right. \ No newline at end of file +You can view and make quick changes to your project description and README by navigating to your project and clicking {% octicon "sidebar-expand" aria-label="The sidebar icon" %} in the top right. diff --git a/translations/zh-CN/data/reusables/projects/project-settings.md b/translations/zh-CN/data/reusables/projects/project-settings.md index 4fd4347e54..bee73a5c66 100644 --- a/translations/zh-CN/data/reusables/projects/project-settings.md +++ b/translations/zh-CN/data/reusables/projects/project-settings.md @@ -1,2 +1,2 @@ 1. Navigate to your project. -1. Click {% octicon "gear" aria-label="the gear icon" %} to access the project settings. \ No newline at end of file +1. Click {% octicon "gear" aria-label="the gear icon" %} to access the project settings. diff --git a/translations/zh-CN/data/reusables/pull_requests/merge-queue-merging-method.md b/translations/zh-CN/data/reusables/pull_requests/merge-queue-merging-method.md index 9c09c5248f..d1f2bac8d7 100644 --- a/translations/zh-CN/data/reusables/pull_requests/merge-queue-merging-method.md +++ b/translations/zh-CN/data/reusables/pull_requests/merge-queue-merging-method.md @@ -1,2 +1,2 @@ Once CI checks pass, {% data variables.product.product_name %} merges the pull request by fast-forwarding the default branch. The merge queue will use merge commits if the "Require linear history" branch protection setting is turned off, and the "Rebase and merge" method otherwise. - \ No newline at end of file + diff --git a/translations/zh-CN/data/reusables/pull_requests/merge-queue-overview-short.md b/translations/zh-CN/data/reusables/pull_requests/merge-queue-overview-short.md index 3010d9cec2..4b2b9145bf 100644 --- a/translations/zh-CN/data/reusables/pull_requests/merge-queue-overview-short.md +++ b/translations/zh-CN/data/reusables/pull_requests/merge-queue-overview-short.md @@ -1,3 +1,3 @@ If repository administrators enable merge queues for pull requests targeting selected branches within a repository, contributors to these branches can add their pull requests to a merge queue once the required checks have passed. -{% data variables.product.product_name %} will process the merge queue, and will merge the pull requests on your behalf if you're a contributor, by fast-forwarding the default branch. \ No newline at end of file +{% data variables.product.product_name %} will process the merge queue, and will merge the pull requests on your behalf if you're a contributor, by fast-forwarding the default branch. diff --git a/translations/zh-CN/data/reusables/pull_requests/merge-queue-references.md b/translations/zh-CN/data/reusables/pull_requests/merge-queue-references.md index a3518e1aaa..a0247330e7 100644 --- a/translations/zh-CN/data/reusables/pull_requests/merge-queue-references.md +++ b/translations/zh-CN/data/reusables/pull_requests/merge-queue-references.md @@ -1,2 +1,2 @@ -For more information about merge queues, see "[Using a merge queue](/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue)." \ No newline at end of file +For more information about merge queues, see "[Using a merge queue](/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue)." diff --git a/translations/zh-CN/data/reusables/pull_requests/merge-queue-reject.md b/translations/zh-CN/data/reusables/pull_requests/merge-queue-reject.md index 3f2e36fecf..49a59dca54 100644 --- a/translations/zh-CN/data/reusables/pull_requests/merge-queue-reject.md +++ b/translations/zh-CN/data/reusables/pull_requests/merge-queue-reject.md @@ -1,2 +1,2 @@ -If there are failed status checks or conflicts with the base branch, {% data variables.product.product_name %} will remove the pull request from the queue. The pull request timeline will display the reason why the pull request has been removed from the queue. \ No newline at end of file +If there are failed status checks or conflicts with the base branch, {% data variables.product.product_name %} will remove the pull request from the queue. The pull request timeline will display the reason why the pull request has been removed from the queue. diff --git a/translations/zh-CN/data/reusables/pull_requests/you-can-auto-merge.md b/translations/zh-CN/data/reusables/pull_requests/you-can-auto-merge.md index 29233e7ef7..0bfd5ba0c0 100644 --- a/translations/zh-CN/data/reusables/pull_requests/you-can-auto-merge.md +++ b/translations/zh-CN/data/reusables/pull_requests/you-can-auto-merge.md @@ -1,3 +1 @@ -{% ifversion fpt or ghae or ghes > 3.0 or ghec %} 您可以配置拉取请求在满足所有合并要求时自动合并。 更多信息请参阅“[自动合并拉取请求](/github/collaborating-with-issues-and-pull-requests/automatically-merging-a-pull-request)”。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/navigate-to-ghas-settings.md b/translations/zh-CN/data/reusables/repositories/navigate-to-ghas-settings.md index 50a49819de..51bf8e0b40 100644 --- a/translations/zh-CN/data/reusables/repositories/navigate-to-ghas-settings.md +++ b/translations/zh-CN/data/reusables/repositories/navigate-to-ghas-settings.md @@ -1 +1 @@ -1. 在“Configure security and analysis features(配置安全和分析功能)”下,查找“{% data variables.product.prodname_GH_advanced_security %}”。 +1. Under "Code security and analysis", find "{% data variables.product.prodname_GH_advanced_security %}." diff --git a/translations/zh-CN/data/reusables/repositories/navigate-to-job-superlinter.md b/translations/zh-CN/data/reusables/repositories/navigate-to-job-superlinter.md deleted file mode 100644 index 2019245d2a..0000000000 --- a/translations/zh-CN/data/reusables/repositories/navigate-to-job-superlinter.md +++ /dev/null @@ -1,7 +0,0 @@ -{% ifversion fpt or ghes > 3.0 or ghec %} -1. 在 **Jobs(作业)**下或可视化图中,单击您要查看的作业。 ![Lint 代码库作业](/assets/images/help/repository/superlinter-lint-code-base-job-updated.png) -{% elsif ghes %} -1. 在左侧边栏中,单击您要查看的作业。 ![Lint 代码库作业](/assets/images/help/repository/superlinter-lint-code-base-job.png) -{% else %} -1. 在左侧边栏中,单击您要查看的作业。 ![选择工作流程作业](/assets/images/help/repository/workflow-job.png) -{% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/navigate-to-job.md b/translations/zh-CN/data/reusables/repositories/navigate-to-job.md new file mode 100644 index 0000000000..bf6cd31af4 --- /dev/null +++ b/translations/zh-CN/data/reusables/repositories/navigate-to-job.md @@ -0,0 +1,3 @@ +1. 在 **Jobs(作业)**下或可视化图中,单击您要查看的作业。 + + ![Lint 代码库作业](/assets/images/help/repository/superlinter-lint-code-base-job-updated.png) diff --git a/translations/zh-CN/data/reusables/repositories/navigate-to-workflow-superlinter.md b/translations/zh-CN/data/reusables/repositories/navigate-to-workflow-superlinter.md deleted file mode 100644 index 126fd62af5..0000000000 --- a/translations/zh-CN/data/reusables/repositories/navigate-to-workflow-superlinter.md +++ /dev/null @@ -1 +0,0 @@ -1. 在左侧边栏中,单击您想要查看的工作流程。 ![左侧边栏中的工作流程列表](/assets/images/help/repository/superlinter-workflow-sidebar.png) diff --git a/translations/zh-CN/data/reusables/repositories/navigate-to-workflow.md b/translations/zh-CN/data/reusables/repositories/navigate-to-workflow.md index d41550c8c4..126fd62af5 100644 --- a/translations/zh-CN/data/reusables/repositories/navigate-to-workflow.md +++ b/translations/zh-CN/data/reusables/repositories/navigate-to-workflow.md @@ -1 +1 @@ -1. 在左侧边栏中,单击您想要查看的工作流程。 ![左侧边栏中的工作流程列表](/assets/images/help/repository/workflow-sidebar.png) +1. 在左侧边栏中,单击您想要查看的工作流程。 ![左侧边栏中的工作流程列表](/assets/images/help/repository/superlinter-workflow-sidebar.png) diff --git a/translations/zh-CN/data/reusables/repositories/security-guidelines.md b/translations/zh-CN/data/reusables/repositories/security-guidelines.md index a76688a11f..ea6bcbfbe5 100644 --- a/translations/zh-CN/data/reusables/repositories/security-guidelines.md +++ b/translations/zh-CN/data/reusables/repositories/security-guidelines.md @@ -1,3 +1 @@ -{% ifversion fpt or ghes > 3.0 or ghae or ghec %} 您可以创建安全策略,向人们提供有关报告项目中安全漏洞的说明。 更多信息请参阅“[添加安全政策到仓库](/code-security/getting-started/adding-a-security-policy-to-your-repository)”。 -{% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/view-failed-job-results-superlinter.md b/translations/zh-CN/data/reusables/repositories/view-failed-job-results-superlinter.md deleted file mode 100644 index 90f4a2a518..0000000000 --- a/translations/zh-CN/data/reusables/repositories/view-failed-job-results-superlinter.md +++ /dev/null @@ -1,8 +0,0 @@ -{% ifversion fpt or ghes or ghec %} -1. 任何失败的步骤都会自动展开以显示结果。 - {% ifversion fpt or ghes > 3.0 or ghec %} - ![Super linter 工作流程结果](/assets/images/help/repository/super-linter-workflow-results-updated-2.png){% else %} -![Super linter workflow results](/assets/images/help/repository/super-linter-workflow-results-updated.png){% endif %} -{% else %} -1. 展开**运行 Super-Linter** 步骤以查看结果。 ![Super linter 工作流程结果](/assets/images/help/repository/super-linter-workflow-results.png) -{% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/view-failed-job-results.md b/translations/zh-CN/data/reusables/repositories/view-failed-job-results.md new file mode 100644 index 0000000000..83ebfe3e72 --- /dev/null +++ b/translations/zh-CN/data/reusables/repositories/view-failed-job-results.md @@ -0,0 +1,3 @@ +1. 任何失败的步骤都会自动展开以显示结果。 + + ![Super linter 工作流程结果](/assets/images/help/repository/super-linter-workflow-results-updated-2.png) diff --git a/translations/zh-CN/data/reusables/repositories/view-run-superlinter.md b/translations/zh-CN/data/reusables/repositories/view-run-superlinter.md deleted file mode 100644 index 8d45244029..0000000000 --- a/translations/zh-CN/data/reusables/repositories/view-run-superlinter.md +++ /dev/null @@ -1 +0,0 @@ -1. 从工作流程运行列表中,单击要查看的运行的名称。 ![工作流程运行的名称](/assets/images/help/repository/superlinter-run-name.png) diff --git a/translations/zh-CN/data/reusables/repositories/view-run.md b/translations/zh-CN/data/reusables/repositories/view-run.md index 6954ef887d..8d45244029 100644 --- a/translations/zh-CN/data/reusables/repositories/view-run.md +++ b/translations/zh-CN/data/reusables/repositories/view-run.md @@ -1 +1 @@ -1. 从工作流程运行列表中,单击要查看的运行的名称。 ![工作流程运行的名称](/assets/images/help/repository/run-name.png) +1. 从工作流程运行列表中,单击要查看的运行的名称。 ![工作流程运行的名称](/assets/images/help/repository/superlinter-run-name.png) diff --git a/translations/zh-CN/data/reusables/repositories/view-specific-line-superlinter.md b/translations/zh-CN/data/reusables/repositories/view-specific-line-superlinter.md deleted file mode 100644 index 46a520f518..0000000000 --- a/translations/zh-CN/data/reusables/repositories/view-specific-line-superlinter.md +++ /dev/null @@ -1,10 +0,0 @@ -{% ifversion fpt or ghes or ghec %} -1. (可选)要获取指向日志中特定行的链接,请单击该步骤的行号。 然后,您可以从 web 浏览器的地址栏中复制链接。 - {% ifversion fpt or ghes > 3.0 or ghec %} - ![复制链接的按钮](/assets/images/help/repository/copy-link-button-updated-2.png) - {% else %} - ![复制链接的按钮](/assets/images/help/repository/copy-link-button-updated.png) - {% endif %} -{% else %} -1. (可选)要获取指向日志中特定行的链接,请单击该步骤的行号。 然后,您可以从 web 浏览器的地址栏中复制链接。 ![复制链接的按钮](/assets/images/help/repository/copy-link-button.png) -{% endif %} diff --git a/translations/zh-CN/data/reusables/repositories/view-specific-line.md b/translations/zh-CN/data/reusables/repositories/view-specific-line.md new file mode 100644 index 0000000000..f2fc42588b --- /dev/null +++ b/translations/zh-CN/data/reusables/repositories/view-specific-line.md @@ -0,0 +1,3 @@ +1. (可选)要获取指向日志中特定行的链接,请单击该步骤的行号。 然后,您可以从 web 浏览器的地址栏中复制链接。 + + ![复制链接的按钮](/assets/images/help/repository/copy-link-button-updated-2.png) diff --git a/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runner-groups.md b/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runner-groups.md index cb08218f2b..7ea94a5540 100644 --- a/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runner-groups.md +++ b/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runner-groups.md @@ -1,7 +1,5 @@ ## 自托管运行器组 -{% data reusables.actions.ae-self-hosted-runners-notice %} - 自托管运行器组 API 允许您管理自托运行器组。 更多信息请参阅“[使用组管理对自托管运行器的访问](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups)”。 {% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须具有对存储库或组织的管理员访问权限或者企业的 `manage_runners:enterprise` 作用域才能使用此 API。 \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runners.md b/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runners.md index 8b1246a5f0..796dfcab0d 100644 --- a/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runners.md +++ b/translations/zh-CN/data/reusables/rest-reference/actions/self-hosted-runners.md @@ -1,7 +1,5 @@ ## 自托管运行器 -{% data reusables.actions.ae-self-hosted-runners-notice %} - 自托管运行器 API 允许您注册、查看和删除自托管的运行器。 {% data reusables.actions.about-self-hosted-runners %} 更多信息请参阅“[托管您自己的运行器](/actions/hosting-your-own-runners)”。 {% data reusables.actions.actions-authentication %} {% data variables.product.prodname_github_apps %} 必须对仓库具有`管理`权限,或者对组织具有 `organization_self_hosted_runners` 权限。 经过身份验证的用户必须具有对存储库或组织的管理员访问权限或者企业的 `manage_runners:enterprise` 作用域才能使用此 API。 \ No newline at end of file diff --git a/translations/zh-CN/data/reusables/rest-reference/secret-scanning/secret-scanning.md b/translations/zh-CN/data/reusables/rest-reference/secret-scanning/secret-scanning.md index 02d84249bb..d5a05c7d42 100644 --- a/translations/zh-CN/data/reusables/rest-reference/secret-scanning/secret-scanning.md +++ b/translations/zh-CN/data/reusables/rest-reference/secret-scanning/secret-scanning.md @@ -1,9 +1,9 @@ {% data reusables.secret-scanning.api-beta %} -The {% data variables.product.prodname_secret_scanning %} API lets you{% ifversion fpt or ghec or ghes > 3.1 or ghae %}: +{% data variables.product.prodname_secret_scanning %} API 可让您{% ifversion fpt or ghec or ghes > 3.1 or ghae %}: -- Enable or disable {% data variables.product.prodname_secret_scanning %} for a repository. For more information, see "[Repositories](/rest/reference/repos#update-a-repository)" in the REST API documentation. -- Retrieve and update {% data variables.product.prodname_secret_scanning %} alerts from a {% ifversion fpt or ghec %}private {% endif %}repository. For futher details, see the sections below. -{%- else %} retrieve and update {% data variables.product.prodname_secret_scanning %} alerts from a {% ifversion fpt or ghec %}private {% endif %}repository.{% endif %} +- 对仓库启用或禁用 {% data variables.product.prodname_secret_scanning %}。 更多信息请参阅 REST API 文档中的“[仓库](/rest/reference/repos#update-a-repository)”。 +- Retrieve and update {% data variables.product.prodname_secret_scanning_GHAS %} alerts from a repository. For further details, see the sections below. +{%- else %} retrieve and update {% data variables.product.prodname_secret_scanning %} alerts from a repository.{% endif %} -For more information about {% data variables.product.prodname_secret_scanning %}, see "[About {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/about-secret-scanning)." \ No newline at end of file +有关 {% data variables.product.prodname_secret_scanning %} 的更多信息,请参阅“[关于 {% data variables.product.prodname_secret_scanning %}](/code-security/secret-security/about-secret-scanning)”。 diff --git a/translations/zh-CN/data/reusables/saml/cannot-update-existing-saml-settings.md b/translations/zh-CN/data/reusables/saml/cannot-update-existing-saml-settings.md index 8983c45e8e..22983550ed 100644 --- a/translations/zh-CN/data/reusables/saml/cannot-update-existing-saml-settings.md +++ b/translations/zh-CN/data/reusables/saml/cannot-update-existing-saml-settings.md @@ -2,4 +2,4 @@ **Note:** When SAML SSO is enabled, the only setting you can update on {% data variables.product.prodname_dotcom %} for your existing SAML configuration is the SAML certificate. If you need to update the Sign on URL or Issuer, you must first disable SAML SSO and then reconfigure SAML SSO with the new settings. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/saml/external-group-audit-events.md b/translations/zh-CN/data/reusables/saml/external-group-audit-events.md index 9821ba74b5..e3517ca73d 100644 --- a/translations/zh-CN/data/reusables/saml/external-group-audit-events.md +++ b/translations/zh-CN/data/reusables/saml/external-group-audit-events.md @@ -4,4 +4,4 @@ | `external_group.link` | Triggered when your Okta group is mapped to your {% data variables.product.prodname_ghe_managed %} team. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | | `external_group.provision` | Triggered when an Okta group is mapped to your team on {% data variables.product.prodname_ghe_managed %}. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | | `external_group.unlink` | Triggered when your Okta group is unmapped from your {% data variables.product.prodname_ghe_managed %} team. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | -| `external_group.update` | Triggered when your Okta group's settings are updated. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | \ No newline at end of file +| `external_group.update` | Triggered when your Okta group's settings are updated. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | diff --git a/translations/zh-CN/data/reusables/saml/external-identity-audit-events.md b/translations/zh-CN/data/reusables/saml/external-identity-audit-events.md index 59ce8346cf..1d3d2a36ad 100644 --- a/translations/zh-CN/data/reusables/saml/external-identity-audit-events.md +++ b/translations/zh-CN/data/reusables/saml/external-identity-audit-events.md @@ -2,4 +2,4 @@ | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `external_identity.deprovision` | Triggered when a user is removed from your Okta group and is subsequently deprovisioned from {% data variables.product.prodname_ghe_managed %}. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | | `external_identity.provision` | Triggered when an Okta user is added to your Okta group and is subsequently provisioned to the mapped team on {% data variables.product.prodname_ghe_managed %}. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | -| `external_identity.update` | Triggered when an Okta user's settings are updated. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | \ No newline at end of file +| `external_identity.update` | Triggered when an Okta user's settings are updated. For more information, see ["Mapping Okta groups to teams](/admin/authentication/configuring-authentication-and-provisioning-with-your-identity-provider/mapping-okta-groups-to-teams)." | diff --git a/translations/zh-CN/data/reusables/saml/okta-ae-sso-beta.md b/translations/zh-CN/data/reusables/saml/okta-ae-sso-beta.md index 599020093b..1a911624ff 100644 --- a/translations/zh-CN/data/reusables/saml/okta-ae-sso-beta.md +++ b/translations/zh-CN/data/reusables/saml/okta-ae-sso-beta.md @@ -2,4 +2,4 @@ **Note:** {% data variables.product.prodname_ghe_managed %} single sign-on (SSO) support for Okta is currently in beta. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/saml/recovery-code-access.md b/translations/zh-CN/data/reusables/saml/recovery-code-access.md index 063a87b3b4..9aa018918e 100644 --- a/translations/zh-CN/data/reusables/saml/recovery-code-access.md +++ b/translations/zh-CN/data/reusables/saml/recovery-code-access.md @@ -10,4 +10,4 @@ ![Screenshot of the button to verify your recovery code](/assets/images/help/saml/saml_verify_recovery_codes.png) -After you've used a recovery code, make sure to note that the code is no longer valid. 恢复代码不能重复使用。 \ No newline at end of file +After you've used a recovery code, make sure to note that the code is no longer valid. 恢复代码不能重复使用。 diff --git a/translations/zh-CN/data/reusables/saml/removed-users-can-rejoin.md b/translations/zh-CN/data/reusables/saml/removed-users-can-rejoin.md index 8bb5ff9b97..41bee80a1f 100644 --- a/translations/zh-CN/data/reusables/saml/removed-users-can-rejoin.md +++ b/translations/zh-CN/data/reusables/saml/removed-users-can-rejoin.md @@ -1 +1 @@ -Any users removed due to SAML SSO enforcement can rejoin your organization by authenticating via SAML single sign-on. \ No newline at end of file +Any users removed due to SAML SSO enforcement can rejoin your organization by authenticating via SAML single sign-on. diff --git a/translations/zh-CN/data/reusables/saml/saml-accounts.md b/translations/zh-CN/data/reusables/saml/saml-accounts.md index e03c7fce45..c2af5277b6 100644 --- a/translations/zh-CN/data/reusables/saml/saml-accounts.md +++ b/translations/zh-CN/data/reusables/saml/saml-accounts.md @@ -4,4 +4,4 @@ If you configure SAML SSO, members of your organization will continue to log int **Note:** Organization members can perform read operations such as viewing, cloning, and forking on public resources owned by your organization even without a valid SAML session. -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/saml/saml-disabled-linked-identities-removed.md b/translations/zh-CN/data/reusables/saml/saml-disabled-linked-identities-removed.md index a81dc090df..8b081e0688 100644 --- a/translations/zh-CN/data/reusables/saml/saml-disabled-linked-identities-removed.md +++ b/translations/zh-CN/data/reusables/saml/saml-disabled-linked-identities-removed.md @@ -1 +1 @@ -When SAML SSO is disabled, all linked external identities are removed from {% data variables.product.product_name %}. \ No newline at end of file +When SAML SSO is disabled, all linked external identities are removed from {% data variables.product.product_name %}. diff --git a/translations/zh-CN/data/reusables/secret-scanning/api-beta.md b/translations/zh-CN/data/reusables/secret-scanning/api-beta.md index 5fd9f9c76e..220e801b92 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/api-beta.md +++ b/translations/zh-CN/data/reusables/secret-scanning/api-beta.md @@ -1,4 +1,4 @@ -{% ifversion ghes > 3.0 or ghae %} +{% ifversion ghes or ghae %} {% note %} diff --git a/translations/zh-CN/data/reusables/secret-scanning/partner-program-link.md b/translations/zh-CN/data/reusables/secret-scanning/partner-program-link.md index 1cc8a58b7e..aad338382b 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/partner-program-link.md +++ b/translations/zh-CN/data/reusables/secret-scanning/partner-program-link.md @@ -2,4 +2,4 @@ To find out about our partner program, see "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/developers/overview/secret-scanning-partner-program)." {% else %} To find out about our partner program, see "[{% data variables.product.prodname_secret_scanning_caps %} partner program](/free-pro-team@latest/developers/overview/secret-scanning-partner-program)" in the {% data variables.product.prodname_ghe_cloud %} documentation -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md index a92cceeae9..b345dd38a6 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md +++ b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md @@ -36,23 +36,13 @@ Checkout.com | Checkout.com Test Secret Key | checkout_test_secret_key{% endif % {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} CloudBees CodeShip | CloudBees CodeShip Credential | codeship_credential{% endif %} {%- ifversion fpt or ghec or ghes > 3.2 %} -Contentful | Contentful Personal Access Token | contentful_personal_access_token{% endif %} Databricks | Databricks Access Token | databricks_access_token Discord | Discord Bot Token | discord_bot_token -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Doppler | Doppler Personal Token | doppler_personal_token{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Doppler | Doppler Service Token | doppler_service_token{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Doppler | Doppler CLI Token | doppler_cli_token{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Doppler | Doppler SCIM Token | doppler_scim_token{% endif %} +Contentful | Contentful Personal Access Token | contentful_personal_access_token{% endif %} Databricks | Databricks Access Token | databricks_access_token Discord | Discord Bot Token | discord_bot_token Doppler | Doppler Personal Token | doppler_personal_token Doppler | Doppler Service Token | doppler_service_token Doppler | Doppler CLI Token | doppler_cli_token Doppler | Doppler SCIM Token | doppler_scim_token {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} Doppler | Doppler Audit Token | doppler_audit_token{% endif %} Dropbox | Dropbox Access Token | dropbox_access_token Dropbox | Dropbox Short Lived Access Token | dropbox_short_lived_access_token {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} Duffel | Duffel Live Access Token | duffel_live_access_token{% endif %} {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} -Duffel | Duffel Test Access Token | duffel_test_access_token{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Dynatrace | Dynatrace Access Token | dynatrace_access_token{% endif %} Dynatrace | Dynatrace Internal Token | dynatrace_internal_token +Duffel | Duffel Test Access Token | duffel_test_access_token{% endif %} Dynatrace | Dynatrace Access Token | dynatrace_access_token Dynatrace | Dynatrace Internal Token | dynatrace_internal_token {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} EasyPost | EasyPost Production API Key | easypost_production_api_key{% endif %} {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} @@ -99,6 +89,8 @@ Intercom | Intercom Access Token | intercom_access_token{% endif %} Ionic | Ionic Personal Access Token | ionic_personal_access_token{% endif %} {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} Ionic | Ionic Refresh Token | ionic_refresh_token{% endif %} +{%- ifversion fpt or ghec or ghes > 3.4 %} +JD Cloud | JD Cloud Access Key | jd_cloud_access_key{% endif %} {%- ifversion fpt or ghec or ghes > 3.2 %} JFrog | JFrog Platform Access Token | jfrog_platform_access_token{% endif %} {%- ifversion fpt or ghec or ghes > 3.2 %} @@ -172,15 +164,7 @@ Square | Square Access Token | square_access_token{% endif %} {%- ifversion fpt or ghec or ghes > 3.3 %} Square | Square Production Application Secret | square_production_application_secret{% endif %} {%- ifversion fpt or ghec or ghes > 3.3 %} -Square | Square Sandbox Application Secret | square_sandbox_application_secret{% endif %} SSLMate | SSLMate API Key | sslmate_api_key SSLMate | SSLMate Cluster Secret | sslmate_cluster_secret Stripe | Stripe API Key | stripe_api_key -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Stripe | Stripe Live API Secret Key | stripe_live_secret_key{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Stripe | Stripe Test API Secret Key | stripe_test_secret_key{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Stripe | Stripe Live API Restricted Key | stripe_live_restricted_key{% endif %} -{%- ifversion fpt or ghec or ghes > 3.0 or ghae %} -Stripe | Stripe Test API Restricted Key | stripe_test_restricted_key{% endif %} +Square | Square Sandbox Application Secret | square_sandbox_application_secret{% endif %} SSLMate | SSLMate API Key | sslmate_api_key SSLMate | SSLMate Cluster Secret | sslmate_cluster_secret Stripe | Stripe API Key | stripe_api_key Stripe | Stripe Live API Secret Key | stripe_live_secret_key Stripe | Stripe Test API Secret Key | stripe_test_secret_key Stripe | Stripe Live API Restricted Key | stripe_live_restricted_key Stripe | Stripe Test API Restricted Key | stripe_test_restricted_key {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} Stripe | Stripe Webhook Signing Secret | stripe_webhook_signing_secret{% endif %} {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} diff --git a/translations/zh-CN/data/reusables/security-advisory/repository-level-advisory-note.md b/translations/zh-CN/data/reusables/security-advisory/repository-level-advisory-note.md index dd7f32d588..ccba6bad40 100644 --- a/translations/zh-CN/data/reusables/security-advisory/repository-level-advisory-note.md +++ b/translations/zh-CN/data/reusables/security-advisory/repository-level-advisory-note.md @@ -4,4 +4,4 @@ Users who are not repository owners can contribute to global security advisories in the {% data variables.product.prodname_advisory_database %} at [github.com/advisories](https://github.com/advisories). Edits to global advisories will not change or affect how the advisory appears on the repository. For more information, see "[Editing security advisories in the {% data variables.product.prodname_advisory_database %}](/code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/editing-security-advisories-in-the-github-advisory-database)." -{% endnote %} \ No newline at end of file +{% endnote %} diff --git a/translations/zh-CN/data/reusables/security/compliance-report-list.md b/translations/zh-CN/data/reusables/security/compliance-report-list.md index 7bce73219d..731afc0ca0 100644 --- a/translations/zh-CN/data/reusables/security/compliance-report-list.md +++ b/translations/zh-CN/data/reusables/security/compliance-report-list.md @@ -1,4 +1,4 @@ - SOC 1, Type 2 - SOC 2, Type 2 - Cloud Security Alliance CAIQ self-assessment (CSA CAIQ) -- {% data variables.product.prodname_dotcom_the_website %} Services Continuity and Incident Management Plan \ No newline at end of file +- {% data variables.product.prodname_dotcom_the_website %} Services Continuity and Incident Management Plan diff --git a/translations/zh-CN/data/reusables/security/compliance-report-screenshot.md b/translations/zh-CN/data/reusables/security/compliance-report-screenshot.md index 984c8d6d8b..ddd64d1452 100644 --- a/translations/zh-CN/data/reusables/security/compliance-report-screenshot.md +++ b/translations/zh-CN/data/reusables/security/compliance-report-screenshot.md @@ -1 +1 @@ -![Screenshot of download button to the right of a compliance report](/assets/images/help/settings/compliance-report-download.png) \ No newline at end of file +![Screenshot of download button to the right of a compliance report](/assets/images/help/settings/compliance-report-download.png) diff --git a/translations/zh-CN/data/reusables/sponsors/sponsors-only-repos.md b/translations/zh-CN/data/reusables/sponsors/sponsors-only-repos.md index 0361572c97..412857e94b 100644 --- a/translations/zh-CN/data/reusables/sponsors/sponsors-only-repos.md +++ b/translations/zh-CN/data/reusables/sponsors/sponsors-only-repos.md @@ -1 +1 @@ -You can give all sponsors in a tier access to a private repository by adding the repository to the tier. \ No newline at end of file +You can give all sponsors in a tier access to a private repository by adding the repository to the tier. diff --git a/translations/zh-CN/data/reusables/stars/stars-page-navigation.md b/translations/zh-CN/data/reusables/stars/stars-page-navigation.md index ce25909848..ff44c39d5b 100644 --- a/translations/zh-CN/data/reusables/stars/stars-page-navigation.md +++ b/translations/zh-CN/data/reusables/stars/stars-page-navigation.md @@ -1 +1 @@ -1. In the upper-right corner of any page, click your profile photo, then click ** Your stars**. ![Screenshot of stars option in a dropdown menu](/assets/images/help/stars/navigate-to-stars-page.png) \ No newline at end of file +1. In the upper-right corner of any page, click your profile photo, then click ** Your stars**. ![Screenshot of stars option in a dropdown menu](/assets/images/help/stars/navigate-to-stars-page.png) diff --git a/translations/zh-CN/data/reusables/support/free-and-paid-support.md b/translations/zh-CN/data/reusables/support/free-and-paid-support.md index 1f595810bf..8f81e3b10e 100644 --- a/translations/zh-CN/data/reusables/support/free-and-paid-support.md +++ b/translations/zh-CN/data/reusables/support/free-and-paid-support.md @@ -1 +1 @@ -If your account uses a paid {% data variables.product.prodname_dotcom %} product or you are a member of an organization that uses a paid product, you can directly contact {% data variables.contact.github_support %}. If your account uses {% data variables.product.prodname_free_user %}, you can speak to {% data variables.product.prodname_dotcom %} users and staff on the {% data variables.contact.community_support_forum %} for most issues, and you can contact {% data variables.contact.github_support %} to report account, security, and abuse issues. \ No newline at end of file +If your account uses a paid {% data variables.product.prodname_dotcom %} product or you are a member of an organization that uses a paid product, you can directly contact {% data variables.contact.github_support %}. If your account uses {% data variables.product.prodname_free_user %}, you can speak to {% data variables.product.prodname_dotcom %} users and staff on the {% data variables.contact.community_support_forum %} for most issues, and you can contact {% data variables.contact.github_support %} to report account, security, and abuse issues. diff --git a/translations/zh-CN/data/reusables/support/premium-support-features.md b/translations/zh-CN/data/reusables/support/premium-support-features.md index bafa9a9aa3..a8acc1c145 100644 --- a/translations/zh-CN/data/reusables/support/premium-support-features.md +++ b/translations/zh-CN/data/reusables/support/premium-support-features.md @@ -4,4 +4,4 @@ In addition to all of the benefits of {% data variables.contact.enterprise_suppo - 保证初始响应时间的服务等级协议 (SLA) - 高级内容访问权限 - Scheduled Health Checks - - Administration assistance hours \ No newline at end of file + - Administration assistance hours diff --git a/translations/zh-CN/data/reusables/support/submit-a-ticket.md b/translations/zh-CN/data/reusables/support/submit-a-ticket.md index 1aa4c669a4..3fb2107198 100644 --- a/translations/zh-CN/data/reusables/support/submit-a-ticket.md +++ b/translations/zh-CN/data/reusables/support/submit-a-ticket.md @@ -30,4 +30,4 @@ {%- ifversion ghes %} 1. Optionally, attach diagnostics files and other files by dragging and dropping, uploading, or pasting from the clipboard. {%- endif %} -1. 单击 **Send request(发送请求)**。 ![Screenshot of the "Send request" button.](/assets/images/help/support/send-request-button.png) \ No newline at end of file +1. 单击 **Send request(发送请求)**。 ![Screenshot of the "Send request" button.](/assets/images/help/support/send-request-button.png) diff --git a/translations/zh-CN/data/reusables/support/view-open-tickets.md b/translations/zh-CN/data/reusables/support/view-open-tickets.md index 027f24cac0..55acd6c5f0 100644 --- a/translations/zh-CN/data/reusables/support/view-open-tickets.md +++ b/translations/zh-CN/data/reusables/support/view-open-tickets.md @@ -1,4 +1,4 @@ 1. Navigate to the [GitHub Support Portal](https://support.github.com/). 1. In the header, click **My Tickets**. ![Screenshot showing "My Tickets" link in the GitHub Support Portal header.](/assets/images/help/support/my-tickets-header.png) 1. Optionally, to view tickets associated with an organization or enterprise account, select the **My Tickets** drop-down menu and click the name of the organization or enterprise account. ![Screenshot of the "My Tickets" dropdown menu.](/assets/images/help/support/ticket-context.png) -1. In the list of tickets, click the subject of the ticket you want to view. ![Screenshot showing a list of support tickets with the subject highlighted.](/assets/images/help/support/my-tickets-list.png) \ No newline at end of file +1. In the list of tickets, click the subject of the ticket you want to view. ![Screenshot showing a list of support tickets with the subject highlighted.](/assets/images/help/support/my-tickets-list.png) diff --git a/translations/zh-CN/data/reusables/support/zendesk-old-tickets.md b/translations/zh-CN/data/reusables/support/zendesk-old-tickets.md index eb2ff25a25..1abb9ef5bd 100644 --- a/translations/zh-CN/data/reusables/support/zendesk-old-tickets.md +++ b/translations/zh-CN/data/reusables/support/zendesk-old-tickets.md @@ -4,4 +4,4 @@ If you have previously contacted {% data variables.contact.enterprise_support %} through the deprecated GitHub Enterprise Support portal, you should use the {% data variables.contact.contact_support_portal %} to open new tickets but you can still view your past tickets at [https://enterprise.githubsupport.com](https://enterprise.githubsupport.com). {% endnote %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/user-settings/appearance-settings.md b/translations/zh-CN/data/reusables/user-settings/appearance-settings.md index b27185f75a..449e2bfbe2 100644 --- a/translations/zh-CN/data/reusables/user-settings/appearance-settings.md +++ b/translations/zh-CN/data/reusables/user-settings/appearance-settings.md @@ -4,4 +4,4 @@ 1. 在用户设置侧边栏中,单击 **Appearance(外观)**。 ![用户设置侧边栏中的"外观"选项卡](/assets/images/help/settings/appearance-tab.png) -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/user-settings/developer_settings.md b/translations/zh-CN/data/reusables/user-settings/developer_settings.md index c112642795..acf04e6323 100644 --- a/translations/zh-CN/data/reusables/user-settings/developer_settings.md +++ b/translations/zh-CN/data/reusables/user-settings/developer_settings.md @@ -2,4 +2,4 @@ 1. In the left sidebar, click **{% octicon "code" aria-label="The code icon" %} Developer settings**. {% else %} 1. 在左侧边栏中,单击 **Developer settings**。 ![开发者设置](/assets/images/help/settings/developer-settings.png) -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md b/translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md index b40ae916b5..7660215260 100644 --- a/translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md +++ b/translations/zh-CN/data/reusables/user-settings/enabling-fixed-width-fonts.md @@ -2,4 +2,4 @@ If you are frequently editing code snippets and tables, you may benefit from enabling a fixed-width font in all comment fields on {% data variables.product.product_name %}. For more information, see "[Enabling fixed-width fonts in the editor](/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github#enabling-fixed-width-fonts-in-the-editor)." -{% endif %} \ No newline at end of file +{% endif %} diff --git a/translations/zh-CN/data/reusables/webhooks/check_run_properties.md b/translations/zh-CN/data/reusables/webhooks/check_run_properties.md index 903ede921a..c5830537b3 100644 --- a/translations/zh-CN/data/reusables/webhooks/check_run_properties.md +++ b/translations/zh-CN/data/reusables/webhooks/check_run_properties.md @@ -6,7 +6,7 @@ | `check_run[conclusion]` | `字符串` | 已完成检查运行的结果。 可以是以下项之一:`success`、`failure`、`neutral`、`cancelled`、`timed_out`、{% ifversion fpt or ghes or ghae or ghec %}`action_required` 或 `stale`{% else %}或 `action_required`{% endif %}。 此值将为 `null`,直到检查运行 `completed`。 | | `check_run[name]` | `字符串` | 检查运行的名称。 | | `check_run[check_suite][id]` | `整数` | 此检查运行所属检查套件的 ID。 | -| `check_run[check_suite][pull_requests]` | `数组` | 匹配此检查套件的拉取请求数组。 拉取请求与检查套件匹配的条件是它们有相同的 `head_sha` 和 `head_branch`。 当检查套件的 `head_brant` 在复刻的仓库中时,它将是 `null` 并且 `pull_request` 数组是空的。{% ifversion fpt or ghes > 3.0 or ghae or ghec %} -| `check_run[check_suite][deployment]` | `对象` | 部署到仓库环境。 这仅当检查运行是由引用环境的 {% data variables.product.prodname_actions %} 工作流程作业创建时才会填充。{% endif %} +| `check_run[check_suite][pull_requests]` | `数组` | 匹配此检查套件的拉取请求数组。 拉取请求与检查套件匹配的条件是它们有相同的 `head_sha` 和 `head_branch`。 检查套件的 `head_branch` 在复刻仓库中时,它将为 `null`,并且 `pull_requests` 数组将为空。 | +| `check_run[check_suite][deployment]` | `对象` | 部署到仓库环境。 这仅当检查运行是由引用环境的 {% data variables.product.prodname_actions %} 工作流程作业创建时才会填充。 | | `requested_action` | `对象` | 用户请求的操作。 | | `requested_action[identifier]` | `字符串` | 用户请求的操作的集成器引用。 | diff --git a/translations/zh-CN/data/reusables/webhooks/pull_request_webhook_properties.md b/translations/zh-CN/data/reusables/webhooks/pull_request_webhook_properties.md index 93420f8091..d2a1af5f36 100644 --- a/translations/zh-CN/data/reusables/webhooks/pull_request_webhook_properties.md +++ b/translations/zh-CN/data/reusables/webhooks/pull_request_webhook_properties.md @@ -1,3 +1,3 @@ | 键 | 类型 | 描述 | | -------- | ----- | -------------------------------------------- | -| `action` | `字符串` | 执行的操作内容. 可以是以下选项之一:
  • `assigned`
  • {% ifversion fpt or ghes > 3.0 or ghae or ghec %}
  • `auto_merge_disabled`
  • `auto_merge_enabled`
  • {% endif %}
  • `closed`:如果操作为 `closed`,并且 `merged` 键为 `false`,则拉取请求随未合并的提交而关闭。 如果操作为 `closed`,并且 `merged` 键为 `true`,则拉取请求被合并。
  • `converted_to_draft`
  • `edited`
  • `labeled`
  • `locked`
  • `opened`
  • `ready_for_review`
  • `reopened`
  • `review_request_removed`
  • `review_requested`
  • `synchronize`:当拉取请求的头部分支更新时触发。 例如,当头部分支从基础分支更新时,当新提交被推送到头部分支时,或者当基础分支更改时。
  • `unassigned`
  • `unlabeled`
  • `unlocked`
| +| `action` | `字符串` | 执行的操作内容. 可以是以下选项之一:
  • `assigned`
  • `auto_merge_disabled`
  • `auto_merge_enabled`
  • `closed`:如果操作为 `closed`,并且 `merged` 键为 `false`,则拉取请求随未合并的提交而关闭。 如果操作为 `closed`,并且 `merged` 键为 `true`,则拉取请求被合并。
  • `converted_to_draft`
  • `edited`
  • `labeled`
  • `locked`
  • `opened`
  • `ready_for_review`
  • `reopened`
  • `review_request_removed`
  • `review_requested`
  • `synchronize`:当拉取请求的头部分支更新时触发。 例如,当头部分支从基础分支更新时,当新提交被推送到头部分支时,或者当基础分支更改时。
  • `unassigned`
  • `unlabeled`
  • `unlocked`
| diff --git a/translations/zh-CN/data/variables/product.yml b/translations/zh-CN/data/variables/product.yml index 09ae4a4468..8daf51cd32 100644 --- a/translations/zh-CN/data/variables/product.yml +++ b/translations/zh-CN/data/variables/product.yml @@ -125,8 +125,13 @@ prodname_security: 'GitHub Security Lab' prodname_security_link: 'https://securitylab.github.com/' prodname_security_advisories: 'GitHub Security Advisories' #Security features and code scanning platform -prodname_secret_scanning: '秘密扫描' +prodname_secret_scanning: '秘密扫描' #Overall feature name and name for GHES and GHAE prodname_secret_scanning_caps: '秘密扫描' +prodname_secret_scanning_partner: 'secret scanning for partner patterns' #GitHub.com feature for public repos only +prodname_secret_scanning_partner_caps: 'Secret scanning for partner patterns' +prodname_secret_scanning_GHAS: '>- {% ifversion fpt or ghec %}secret scanning for advanced security{% else %}secret scanning{% endif %}' #Includes GitHub.com name for GHAS licenced feature +prodname_secret_scanning_GHAS_caps: >- + {% ifversion fpt or ghec %}Secret scanning for advanced security{% else %}Secret scanning{% endif %} prodname_code_scanning: '代码扫描' prodname_code_scanning_capc: '代码扫描' prodname_codeql_runner: 'CodeQL runner'