зеркало из https://github.com/github/docs.git
update data reusables
This commit is contained in:
Родитель
a45822b457
Коммит
dbd99cefc4
|
@ -1,6 +1,6 @@
|
|||
1. Right-click the commit.
|
||||
|
||||
- If a commit has only one tag, click **Delete Tag TAG NAME**.
|
||||
![Screenshot of a list of commits in the "History" tab. Next to a commit, in a context menu, the cursor hovers over an option labeled "Delete tag hello-tag".](/assets/images/help/desktop/select-delete-tag.png)
|
||||
- If a commit has multiple tags, hover over **Delete Tag...** and then click the tag that you want to delete.
|
||||
![Screenshot of a context menu in the "History" tab. Next to "Delete tag", a second menu is expanded, and the cursor hovers over an option labeled "hello-tag".](/assets/images/help/desktop/delete-tag-multiple.png)
|
||||
- If a commit has only one tag, click **Delete Tag TAG NAME**.
|
||||
![Screenshot of a list of commits in the "History" tab. Next to a commit, in a context menu, the cursor hovers over an option labeled "Delete tag hello-tag".](/assets/images/help/desktop/select-delete-tag.png)
|
||||
- If a commit has multiple tags, hover over **Delete Tag...** and then click the tag that you want to delete.
|
||||
![Screenshot of a context menu in the "History" tab. Next to "Delete tag", a second menu is expanded, and the cursor hovers over an option labeled "hello-tag".](/assets/images/help/desktop/delete-tag-multiple.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. In the menu bar, select **{% data variables.product.prodname_desktop %}**, then click **Preferences**.
|
||||
![Screenshot of the menu bar on a Mac. Under the open "GitHub Desktop" dropdown menu, the cursor hovers over "Preferences", which is highlighted in blue.](/assets/images/help/desktop/mac-choose-preferences.png)
|
||||
|
||||
![Screenshot of the menu bar on a Mac. Under the open "GitHub Desktop" dropdown menu, the cursor hovers over "Preferences", which is highlighted in blue.](/assets/images/help/desktop/mac-choose-preferences.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Optionally, next to "Usage this month", click **Get usage report** to email a CSV report of storage use for {% data variables.product.prodname_actions %} and {% data variables.product.prodname_registry %} to the account's primary email address.
|
||||
![Screenshot of the "Billing and plans" settings. A button, labeled "Get usage report", is highlighted with an orange outline.](/assets/images/help/billing/actions-packages-report-download.png)
|
||||
|
||||
![Screenshot of the "Billing and plans" settings. A button, labeled "Get usage report", is highlighted with an orange outline.](/assets/images/help/billing/actions-packages-report-download.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Under "Current plan", next to the name of your plan, select **Edit** and click **Add seats**.
|
||||
![Screenshot of the "Current plan" section. Next to the plan name, in the "Edit" dropdown, the "Add seats" option is highlighted with an orange outline.](/assets/images/help/billing/add-seats-dropdown.png)
|
||||
|
||||
![Screenshot of the "Current plan" section. Next to the plan name, in the "Edit" dropdown, the "Add seats" option is highlighted with an orange outline.](/assets/images/help/billing/add-seats-dropdown.png)
|
|
@ -1,2 +1,3 @@
|
|||
1. Next to the pending change you'd like to cancel, click **Cancel**.
|
||||
![Screenshot the "Current plan" section. After the text "The new price will be $0/year", a link labeled "Cancel" is highlighted with an orange outline.](/assets/images/help/billing/cancel-pending-changes-link.png)
|
||||
|
||||
![Screenshot the "Current plan" section. After the text "The new price will be $0/year", a link labeled "Cancel" is highlighted with an orange outline.](/assets/images/help/billing/cancel-pending-changes-link.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Next to "{% data variables.large_files.product_name_short %} Data", click **Add more data** or use the **Edit** drop-down and click **Add more data packs**.
|
||||
![Screenshot of the "Git LFS Data" section. Next to "Git LFS Data", a button, labeled "Add more data", is highlighted with an orange outline.](/assets/images/help/billing/data-pack-purchase-more.png)
|
||||
|
||||
![Screenshot of the "Git LFS Data" section. Next to "Git LFS Data", a button, labeled "Add more data", is highlighted with an orange outline.](/assets/images/help/billing/data-pack-purchase-more.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Optionally, under the billing summary at the top of the page click **Get usage report** to email a CSV report of storage use for {% data variables.product.prodname_actions %}, {% data variables.product.prodname_registry %}, and {% data variables.product.prodname_github_codespaces %} in each of your enterprise account's organizations to the primary email address for the account.
|
||||
![Screenshot of the header of the billing settings page on GitHub. A button, labeled "Get usage report", is highlighted with an orange outline.](/assets/images/help/billing/actions-packages-report-download-enterprise.png)
|
||||
|
||||
![Screenshot of the header of the billing settings page on GitHub. A button, labeled "Get usage report", is highlighted with an orange outline.](/assets/images/help/billing/actions-packages-report-download-enterprise.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. In the left sidebar, under the list of repositories, use the "Manage notifications" drop-down to click **Notification settings**.
|
||||
![Screenshot of the "Notifications" page. A dropdown menu, titled "Manage notifications", is highlighted with an orange outline.](/assets/images/help/notifications-v2/manage-notifications-options.png)
|
||||
|
||||
![Screenshot of the "Notifications" page. A dropdown menu, titled "Manage notifications", is highlighted with an orange outline.](/assets/images/help/notifications-v2/manage-notifications-options.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Optionally, filter the list of alerts. You can click multiple filters in the drop-down filter menus to narrow your search. You can also type search qualifiers in the **Search repositories** field. For more information about the available qualifiers, see "[AUTOTITLE](/code-security/security-overview/filtering-alerts-in-security-overview)."
|
||||
![Screenshot showing the dropdown filter menus and "Search repositories" field in security overview.](/assets/images/help/security-overview/security-overview-filter-alerts.png)
|
||||
|
||||
![Screenshot showing the dropdown filter menus and "Search repositories" field in security overview.](/assets/images/help/security-overview/security-overview-filter-alerts.png)
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
{% data reusables.package_registry.packages-classic-pat-only %}
|
||||
|
||||
1. Create a new {% data variables.product.pat_v1 %} with the appropriate scopes for the tasks you want to accomplish. If your organization requires SSO, you must enable SSO for your new token.
|
||||
{% warning %}
|
||||
{% warning %}
|
||||
|
||||
**Note:** By default, when you select the `write:packages` scope for your {% data variables.product.pat_v1 %} in the user interface, the `repo` scope will also be selected. The `repo` scope offers unnecessary and broad access, which we recommend you avoid using for {% data variables.product.prodname_actions %} workflows in particular. For more information, see "[AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#considering-cross-repository-access)." As a workaround, you can select just the `write:packages` scope for your {% data variables.product.pat_v1 %} in the user interface with this url: `https://{% ifversion fpt or ghec %}github.com{% else %}HOSTNAME{% endif %}/settings/tokens/new?scopes=write:packages`.
|
||||
**Note:** By default, when you select the `write:packages` scope for your {% data variables.product.pat_v1 %} in the user interface, the `repo` scope will also be selected. The `repo` scope offers unnecessary and broad access, which we recommend you avoid using for {% data variables.product.prodname_actions %} workflows in particular. For more information, see "[AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#considering-cross-repository-access)." As a workaround, you can select just the `write:packages` scope for your {% data variables.product.pat_v1 %} in the user interface with this url: `https://{% ifversion fpt or ghec %}github.com{% else %}HOSTNAME{% endif %}/settings/tokens/new?scopes=write:packages`.
|
||||
|
||||
{% endwarning %}
|
||||
{% endwarning %}
|
||||
|
||||
- Select the `read:packages` scope to download container images and read their metadata.
|
||||
- Select the `write:packages` scope to download and upload container images and read and write their metadata.
|
||||
- Select the `delete:packages` scope to delete container images.
|
||||
- Select the `read:packages` scope to download container images and read their metadata.
|
||||
- Select the `write:packages` scope to download and upload container images and read and write their metadata.
|
||||
- Select the `delete:packages` scope to delete container images.
|
||||
|
||||
For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)."
|
||||
For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)."
|
||||
|
||||
2. Save your {% data variables.product.pat_v1 %}. We recommend saving your token as an environment variable.
|
||||
```shell
|
||||
$ export CR_PAT=YOUR_TOKEN
|
||||
```
|
||||
```shell
|
||||
$ export CR_PAT=YOUR_TOKEN
|
||||
```
|
||||
3. Using the CLI for your container type, sign in to the {% data variables.product.prodname_container_registry %} service at `{% data reusables.package_registry.container-registry-hostname %}`.
|
||||
{% raw %}
|
||||
```shell
|
||||
$ echo $CR_PAT | docker login {% endraw %}{% data reusables.package_registry.container-registry-hostname %}{% raw %} -u USERNAME --password-stdin
|
||||
> Login Succeeded
|
||||
```
|
||||
{% endraw %}
|
||||
{% raw %}
|
||||
```shell
|
||||
$ echo $CR_PAT | docker login {% endraw %}{% data reusables.package_registry.container-registry-hostname %}{% raw %} -u USERNAME --password-stdin
|
||||
> Login Succeeded
|
||||
```
|
||||
{% endraw %}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
1. On {% data variables.product.prodname_dotcom %}, navigate to the main page of your organization.
|
||||
2. Under your organization name, click the {% octicon "package" aria-hidden="true" %} **Packages** tab.
|
||||
![Screenshot of @octo-org's profile page. The "Packages" tab is highlighted with an orange outline.](/assets/images/help/package-registry/org-tab-for-packages-with-overview-tab.png)
|
||||
|
||||
![Screenshot of @octo-org's profile page. The "Packages" tab is highlighted with an orange outline.](/assets/images/help/package-registry/org-tab-for-packages-with-overview-tab.png)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
1. Search for and then click the name of the package that you want to manage.
|
||||
4. On your package's landing page, on the right-hand side, click **{% octicon "gear" aria-hidden="true" %} Package settings**.
|
||||
![Screenshot of a package's landing page. In the lower right corner, "Package settings" is highlighted with an orange outline.](/assets/images/help/package-registry/package-settings.png)
|
||||
|
||||
![Screenshot of a package's landing page. In the lower right corner, "Package settings" is highlighted with an orange outline.](/assets/images/help/package-registry/package-settings.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. At the top right corner of the list of package versions, use the **Select versions view** dropdown and select **Deleted**.
|
||||
![Screenshot of a list of package versions. The "Deleted" selection in the versions view is highlighted with an orange outline.](/assets/images/help/package-registry/versions-drop-down-menu.png)
|
||||
|
||||
![Screenshot of a list of package versions. The "Deleted" selection in the versions view is highlighted with an orange outline.](/assets/images/help/package-registry/versions-drop-down-menu.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. In the right sidebar of your repository, click **Packages**.
|
||||
![Screenshot of the sidebar of a repository page. The "Packages" section is outlined in orange.](/assets/images/help/package-registry/packages-from-repo.png)
|
||||
|
||||
![Screenshot of the sidebar of a repository page. The "Packages" section is outlined in orange.](/assets/images/help/package-registry/packages-from-repo.png)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
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**.
|
||||
![Screenshot of {% data variables.product.prodname_pages %} settings showing verified domains. Under the horizontal kebab icon to the right, the "Continue verifying" dropdown option is outlined in dark orange.](/assets/images/help/pages/verify-continue.png)
|
||||
|
||||
![Screenshot of {% data variables.product.prodname_pages %} settings showing verified domains. Under the horizontal kebab icon to the right, the "Continue verifying" dropdown option is outlined in dark orange.](/assets/images/help/pages/verify-continue.png)
|
||||
1. To verify your domain, click **Verify**.
|
||||
2. To make sure your custom domain remains verified, keep the TXT record in your domain's DNS configuration.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. In the upper-right corner of the notes, click {% octicon "kebab-horizontal" aria-label="Card menu" %}.
|
||||
![Screenshot of two cards in a project. The card menu button in the note card is highlighted with an orange outline.](/assets/images/help/projects/note-more-options.png)
|
||||
|
||||
![Screenshot of two cards in a project. The card menu button in the note card is highlighted with an orange outline.](/assets/images/help/projects/note-more-options.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Place your cursor in the bottom row of the project, next to the {% octicon "plus" aria-label="Create new item or add existing item" %}.
|
||||
![Screenshot showing the bottom row of a table view. The "Add item" field is highlighted with an orange outline.](/assets/images/help/projects-v2/add-item.png)
|
||||
|
||||
![Screenshot showing the bottom row of a table view. The "Add item" field is highlighted with an orange outline.](/assets/images/help/projects-v2/add-item.png)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
1. Optionally, to change the repository, click the dropdown and select a repository. You can also search for specific issues and pull requests.
|
||||
![Screenshot showing the "Add from repository" form. The repository dropdown and search field are highlighted with an orange outline.](/assets/images/help/projects-v2/add-bulk-select-repo.png)
|
||||
|
||||
![Screenshot showing the "Add from repository" form. The repository dropdown and search field are highlighted with an orange outline.](/assets/images/help/projects-v2/add-bulk-select-repo.png)
|
||||
1. Select the issues and pull requests you want to add.
|
||||
1. Click **Add selected items**.
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.user-settings.access_org %}
|
||||
1. Under your organization name, click {% octicon "table" aria-hidden="true" %} **Projects**.
|
||||
![Screenshot showing the 'Projects' tab](/assets/images/help/projects-v2/tab-projects.png)
|
||||
|
||||
![Screenshot showing the 'Projects' tab](/assets/images/help/projects-v2/tab-projects.png)
|
||||
1. Click **New project**.
|
||||
1. Optionally, in the text box under "Project name", type a name for your new project.
|
||||
|
||||
![Screenshot showing the template selection modal. The title field is highlighted with an orange outline.](/assets/images/help/projects-v2/projects-select-template-title.png)
|
||||
![Screenshot showing the template selection modal. The title field is highlighted with an orange outline.](/assets/images/help/projects-v2/projects-select-template-title.png)
|
||||
|
||||
1. Click a {% ifversion projects-v2-org-templates %}built-in template, a template from your organization{% else %}template{% endif %} or, to start with an empty project, click **Table** or **Board**.
|
||||
1. Click **Create**.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Click {% octicon "triangle-down" aria-label="View options" %} next to the name of the currently open view.
|
||||
![Screenshot showing the tabs at the top of a project. The view menu icon is highlighted with an orange outline.](/assets/images/help/projects-v2/view-menu-icon.png)
|
||||
|
||||
![Screenshot showing the tabs at the top of a project. The view menu icon is highlighted with an orange outline.](/assets/images/help/projects-v2/view-menu-icon.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
1. Under your repository name, click {% octicon "play" aria-hidden="true" %} **Actions**.
|
||||
![Actions tab in the main repository navigation](/assets/images/help/repository/actions-tab.png)
|
||||
|
||||
![Actions tab in the main repository navigation](/assets/images/help/repository/actions-tab.png)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
1. Above the list of files, click {% octicon "code" aria-hidden="true" %} **Code**.
|
||||
![Screenshot of the list of files on the landing page of a repository. The "Code" button is highlighted with a dark orange outline.](/assets/images/help/repository/code-button.png)
|
||||
|
||||
![Screenshot of the list of files on the landing page of a repository. The "Code" button is highlighted with a dark orange outline.](/assets/images/help/repository/code-button.png)
|
||||
|
||||
1. Copy the URL for the repository.
|
||||
|
||||
|
@ -7,4 +8,4 @@
|
|||
- To clone the repository using an SSH key, including a certificate issued by your organization's SSH certificate authority, click **SSH**, then click {% octicon "clippy" aria-label="Copy to clipboard" %}.
|
||||
- To clone a repository using {% data variables.product.prodname_cli %}, click **{% data variables.product.prodname_cli %}**, then click {% octicon "copy" aria-label="Copy to clipboard" %}.
|
||||
|
||||
![Screenshot of the "Code" dropdown menu. To the right of the HTTPS URL for the repository, a copy icon is outlined in dark orange.](/assets/images/help/repository/https-url-clone-cli.png)
|
||||
![Screenshot of the "Code" dropdown menu. To the right of the HTTPS URL for the repository, a copy icon is outlined in dark orange.](/assets/images/help/repository/https-url-clone-cli.png)
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
2. At the top of the comment, click **edited** to open the edit history.
|
||||
|
||||
{% note %}
|
||||
{% note %}
|
||||
|
||||
**Note:** If you don't see the **edited** option, then the comment doesn't have an edit history.
|
||||
**Note:** If you don't see the **edited** option, then the comment doesn't have an edit history.
|
||||
|
||||
{% endnote %}
|
||||
{% endnote %}
|
||||
|
||||
3. To view the details of a specific change, select it from the list of edits.
|
||||
![Screenshot of a {% data variables.product.prodname_dotcom %} comment showing a dropdown menu open to display previous edits of the comment.](/assets/images/help/repository/choose-comment-edit-to-expand.png)
|
||||
|
||||
![Screenshot of a {% data variables.product.prodname_dotcom %} comment showing a dropdown menu open to display previous edits of the comment.](/assets/images/help/repository/choose-comment-edit-to-expand.png)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
1. Above the list of files, click {% octicon "code" aria-hidden="true" %} **Code**.
|
||||
![Screenshot of the list of files on the landing page of a repository. The "Code" button is highlighted with a dark orange outline.](/assets/images/help/repository/code-button.png)
|
||||
|
||||
![Screenshot of the list of files on the landing page of a repository. The "Code" button is highlighted with a dark orange outline.](/assets/images/help/repository/code-button.png)
|
||||
1. To clone and open the repository with {% data variables.product.prodname_desktop %}, click {% octicon "desktop-download" aria-hidden="true" %} **Open with {% data variables.product.prodname_desktop %}**.
|
||||
|
||||
![Screenshot of the "Code" dropdown for a repository. A button, labeled "Open with {% data variables.product.prodname_desktop %}" is outlined in dark orange.](/assets/images/help/repository/open-with-desktop.png)
|
||||
![Screenshot of the "Code" dropdown for a repository. A button, labeled "Open with {% data variables.product.prodname_desktop %}" is outlined in dark orange.](/assets/images/help/repository/open-with-desktop.png)
|
||||
|
|
|
@ -2,22 +2,22 @@
|
|||
{% data reusables.repositories.sidebar-security %}
|
||||
1. Click **Report a vulnerability** to open the advisory form.
|
||||
1. Fill in the advisory details form.
|
||||
{% tip %}
|
||||
{% tip %}
|
||||
|
||||
**Tip:** In this form, only the title and description are mandatory. (In the general draft security advisory form, which the repository maintainer initiates, specifying the ecosystem is also required.) However, we recommend security researchers provide as much information as possible on the form so that the maintainers can make an informed decision about the submitted report. You can adopt the template used by our security researchers from the {% data variables.product.prodname_security %}, which is available on the [`github/securitylab` repository](https://github.com/github/securitylab/blob/main/docs/report-template.md)."
|
||||
**Tip:** In this form, only the title and description are mandatory. (In the general draft security advisory form, which the repository maintainer initiates, specifying the ecosystem is also required.) However, we recommend security researchers provide as much information as possible on the form so that the maintainers can make an informed decision about the submitted report. You can adopt the template used by our security researchers from the {% data variables.product.prodname_security %}, which is available on the [`github/securitylab` repository](https://github.com/github/securitylab/blob/main/docs/report-template.md)."
|
||||
|
||||
{% endtip %}
|
||||
{% endtip %}
|
||||
|
||||
For more information about the fields available and guidance on filling in the form, see "[AUTOTITLE](/code-security/security-advisories/repository-security-advisories/creating-a-repository-security-advisory)" and "[AUTOTITLE](/code-security/security-advisories/guidance-on-reporting-and-writing/best-practices-for-writing-repository-security-advisories)."
|
||||
For more information about the fields available and guidance on filling in the form, see "[AUTOTITLE](/code-security/security-advisories/repository-security-advisories/creating-a-repository-security-advisory)" and "[AUTOTITLE](/code-security/security-advisories/guidance-on-reporting-and-writing/best-practices-for-writing-repository-security-advisories)."
|
||||
|
||||
1. At the bottom of the form, click **Submit report**. {% data variables.product.prodname_dotcom %} will display a message letting you know that maintainers have been notified and that you have a pending credit for this security advisory.
|
||||
|
||||
{% tip %}
|
||||
{% tip %}
|
||||
|
||||
**Tip:** When the report is submitted, {% data variables.product.prodname_dotcom %} automatically adds the reporter of the vulnerability as a collaborator and as a credited user on the proposed advisory.
|
||||
**Tip:** When the report is submitted, {% data variables.product.prodname_dotcom %} automatically adds the reporter of the vulnerability as a collaborator and as a credited user on the proposed advisory.
|
||||
|
||||
{% endtip %}
|
||||
{% endtip %}
|
||||
|
||||
1. Optionally, click **Start a temporary private fork** if you want to start to fix the issue. Note that only the repository maintainer can merge changes from that private fork into the parent repository.
|
||||
|
||||
![Screenshot of the bottom of a security advisory. A button, labeled "Start a temporary fork" is outlined in dark orange.](/assets/images/help/security/advisory-start-a-temporary-private-fork-button.png)
|
||||
![Screenshot of the bottom of a security advisory. A button, labeled "Start a temporary fork" is outlined in dark orange.](/assets/images/help/security/advisory-start-a-temporary-private-fork-button.png)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
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)
|
||||
|
||||
![Screenshot of stars option in a dropdown menu](/assets/images/help/stars/navigate-to-stars-page.png)
|
||||
|
|
Загрузка…
Ссылка в новой задаче