Skip to content

Commit 1315a41

Browse files
authored
Merge pull request #45842 from github/repo-sync
Repo sync
2 parents 9e72f03 + 19a1102 commit 1315a41

68 files changed

Lines changed: 1606 additions & 1661 deletions

File tree

Some content is hidden

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

.github/workflows/changelog-prompt.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/move-existing-issues-to-the-correct-repo.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Automatic Dependabot access to {% data variables.product.github %}-hosted registries
3+
intro: 'Keep your private dependencies up to date reliably by granting {% data variables.product.prodname_dependabot %} automatic access to {% data variables.product.prodname_registry %} and {% data variables.product.prodname_container_registry %}, so you never need to create or rotate credentials for these registries.'
4+
versions:
5+
feature: org-automatic-registry-access
6+
shortTitle: Automatic registry access
7+
allowTitleToDifferFromFilename: true
8+
contentType: concepts
9+
category:
10+
- Secure your dependencies
11+
---
12+
13+
## About automatic access to {% data variables.product.github %}-hosted registries
14+
15+
{% data variables.product.prodname_dependabot %} can authenticate to private {% data variables.product.prodname_registry %} and {% data variables.product.prodname_container_registry %} packages using the same access grants that {% data variables.product.prodname_actions %} workflows use. If a package has granted your repository **Read** access in the package settings on {% data variables.product.github %}, {% data variables.product.prodname_dependabot %} can access that package automatically.
16+
17+
This eliminates the need to:
18+
19+
* Create and manage {% data variables.product.pat_generic_plural %} for registry access
20+
* Manually configure access to {% data variables.product.github %}-hosted registries in your `dependabot.yml` file
21+
* Rotate credentials when tokens expire
22+
23+
## How automatic access works
24+
25+
{% data variables.product.prodname_dependabot %} uses its `GITHUB_TOKEN` to request `packages: read` permission when pulling from `*.pkg.github.com` and {% data variables.product.prodname_container_registry_namespace %}. Any package that has granted your repository access through "Manage Actions access" accepts this token, the same way it would for a regular {% data variables.product.prodname_actions %} workflow.
26+
27+
Automatic {% data variables.product.prodname_registry %} credentials are used only as fallback authentication. Explicit registry credentials and normal registry routing take precedence.
28+
29+
This works for every {% data variables.product.prodname_registry %} ecosystem that {% data variables.product.prodname_dependabot %} supports.
30+
31+
## When to use automatic access
32+
33+
Use automatic access to {% data variables.product.github %}-hosted registries when:
34+
35+
* Your repositories depend on private packages stored in {% data variables.product.prodname_registry %} or {% data variables.product.prodname_container_registry %}.
36+
* You want to reduce credential management overhead.
37+
* You want to avoid silent update failures caused by expired {% data variables.product.pat_generic_plural %}.
38+
39+
For third-party registries (such as Artifactory, Azure Artifacts, or Nexus), you can only use the `dependabot.yml` registry configuration or organization-level private registry settings. See [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries).
40+
41+
## How to enable automatic access
42+
43+
For each package that {% data variables.product.prodname_dependabot %} needs to read, you need to go to the package's settings page and add the repository that runs {% data variables.product.prodname_dependabot %} with **Read** access. See [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#configuring-private-github-hosted-registries).
44+
45+
Once the repository has been granted access, {% data variables.product.prodname_dependabot %} can pull from that package automatically. You do not need to configure the `dependabot.yml` file, and you can remove any existing {% data variables.product.pat_generic %}-based registry entries you previously added for these packages.
46+
47+
For more information about configuring package access, see [AUTOTITLE](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-workflow-access-to-your-package).

content/code-security/concepts/supply-chain-security/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ versions:
88
contentType: concepts
99
redirect_from:
1010
- /code-security/supply-chain-security/understanding-your-software-supply-chain
11-
- /code-security/concepts/supply-chain-security/automatic-dependabot-access-to-github-registries
1211
children:
1312
- supply-chain-security
1413
- open-source-license-compliance
@@ -24,6 +23,7 @@ children:
2423
- dependabot-pull-requests
2524
- multi-ecosystem-updates
2625
- about-the-dependabot-yml-file
26+
- automatic-dependabot-access-to-github-registries
2727
- dependabot-auto-triage-rules
2828
- dependabot-on-actions
2929
- dependabot-job-logs

content/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ Any private registries used by the build must also be accessible to the workflow
8787

8888
When you configure access to one or more private registries, {% data variables.product.prodname_dependabot %} can propose pull requests to upgrade a vulnerable dependency or to maintain a dependency, see [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries) and [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-private-registries).
8989

90+
{% ifversion org-automatic-registry-access %}
91+
92+
### Automatic access to {% data variables.product.github %}-hosted registries
93+
94+
For packages stored in {% data variables.product.prodname_registry %} and {% data variables.product.prodname_container_registry %}, {% data variables.product.prodname_dependabot %} can authenticate automatically without {% data variables.product.pat_generic_plural %} or `dependabot.yml` registry configuration.
95+
96+
{% data variables.product.prodname_dependabot %} uses its `GITHUB_TOKEN` to request read access, reusing the same package access grants that {% data variables.product.prodname_actions %} workflows use.
97+
98+
To enable this, grant the repository **Read** access to each package in the package settings. Once access is granted, {% data variables.product.prodname_dependabot %} can pull from those packages automatically, and you can remove any {% data variables.product.pat_generic %}-based registry entries you previously configured for them.
99+
100+
See [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#configuring-private-github-hosted-registries).
101+
{% endif %}
102+
90103
{% ifversion org-private-registry-oidc %}
91104

92105
### Configuring OIDC authentication for a private registry

content/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,41 @@ For specific ecosystems, you can configure {% data variables.product.prodname_de
2929

3030
{% ifversion dependabot-on-actions-self-hosted %}To allow {% data variables.product.prodname_dependabot %} access to registries hosted privately or restricted to internal networks, configure {% data variables.product.prodname_dependabot %} to run on {% data variables.product.prodname_actions %} self-hosted runners. For more information, see [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-on-self-hosted-runners).{% endif %}
3131

32+
{% ifversion org-automatic-registry-access %}
33+
34+
## Configuring private {% data variables.product.github %}-hosted registries
35+
36+
For packages stored in {% data variables.product.prodname_registry %} or {% data variables.product.prodname_container_registry %}, {% data variables.product.prodname_dependabot %} can authenticate automatically using its `GITHUB_TOKEN`. This uses the same "Manage Actions access" grants that {% data variables.product.prodname_actions %} workflows use. No {% data variables.product.pat_generic_plural %} or `dependabot.yml` registry entries are required.
37+
38+
The `dependabot.yml` registry configuration using {% data variables.product.pat_generic_title_case %}-based registry entries and described in [Configuring private third-party registries](#configuring-private-third-party-registries) is still required for third-party private registries (such as Artifactory, Azure Artifacts, or Nexus).
39+
40+
To grant {% data variables.product.prodname_dependabot %} access to a private package:
41+
42+
{% data reusables.package_registry.package-settings-from-org-level %}
43+
{% data reusables.package_registry.package-settings-option %}
44+
{% data reusables.package_registry.package-settings-actions-access %}
45+
1. {% data reusables.package_registry.package-settings-add-repo %}
46+
Search for the repository where {% data variables.product.prodname_dependabot %} runs, and select it.
47+
{% data reusables.package_registry.package-settings-actions-access-role-repo %}
48+
Select **Read** as the access level. {% data variables.product.prodname_dependabot %} only needs read access to pull packages.
49+
50+
You need to repeat these steps for each private package that you want {% data variables.product.prodname_dependabot %} to access.
51+
52+
Once access is granted, {% data variables.product.prodname_dependabot %} can pull from those packages automatically. You can remove any {% data variables.product.pat_generic %}-based registry entries in `dependabot.yml` that you previously configured for these packages.
53+
54+
> [!NOTE]
55+
> This method works for every {% data variables.product.prodname_registry %} ecosystem that {% data variables.product.prodname_dependabot %} supports, including container images in {% data variables.product.prodname_container_registry %}.
56+
57+
For more information about how automatic access works, see [AUTOTITLE](/code-security/concepts/supply-chain-security/automatic-dependabot-access-to-github-registries). For more information about package access settings, see [AUTOTITLE](/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#ensuring-workflow-access-to-your-package).
58+
59+
## Configuring private third-party registries
60+
61+
{% else %}
62+
3263
## Configuring private registries
3364

65+
{% endif %}
66+
3467
{% ifversion org-private-registry %}
3568

3669
You can configure {% data variables.product.prodname_dependabot %}'s access to private registries at the org-level.

content/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-private-registries.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ The snippet below shows a `dependabot.yml` file configuration that uses a token.
109109

110110
Docker supports using a username and password for registries. For more information, see `docker-registry` in [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#docker-registry).
111111

112+
{% ifversion org-automatic-registry-access %}
113+
114+
For images stored in {% data variables.product.prodname_container_registry %}, you can grant your repository **Read** access in the package settings instead of configuring credentials in your `dependabot.yml` file. See [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#configuring-private-github-hosted-registries).
115+
116+
{% endif %}
117+
112118
Snippet of `dependabot.yml` file using a username and password.
113119

114120
{% raw %}

content/copilot/concepts/copilot-usage-metrics/copilot-metrics.md renamed to content/copilot/concepts/billing-and-usage/copilot-usage-metrics/copilot-metrics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ redirect_from:
1414
- /early-access/copilot-metrics/dashboards/about-the-copilot-metrics-dashboard
1515
- /early-access/copilot-metrics/apis/rest-api-endpoints-for-copilot-enterprise-and-user-usage-metrics
1616
- /copilot/concepts/copilot-metrics
17+
- /copilot/concepts/copilot-usage-metrics/copilot-metrics
1718
category:
1819
- Copilot usage metrics
1920
- Track Copilot usage

content/copilot/concepts/copilot-usage-metrics/index.md renamed to content/copilot/concepts/billing-and-usage/copilot-usage-metrics/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ heroImage: /assets/images/banner-images/hero-4
88
layout: bespoke-landing
99
sidebarLink:
1010
text: All articles
11-
href: /copilot/concepts/copilot-usage-metrics
11+
href: /copilot/concepts/billing-and-usage/copilot-usage-metrics
1212
children:
1313
- /copilot-metrics
1414
- /content/copilot/how-tos/administer-copilot/view-usage-and-adoption
@@ -29,5 +29,6 @@ includedCategories:
2929
- View metrics
3030
- Understand available data
3131
contentType: concepts
32+
redirect_from:
33+
- /copilot/concepts/copilot-usage-metrics
3234
---
33-
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
title: GitHub Copilot billing
3-
shortTitle: Billing
4-
intro: Understand billing and usage for {% data variables.product.prodname_copilot %}.
2+
title: GitHub Copilot billing and usage
3+
shortTitle: Billing and usage
4+
intro: 'Understand billing and usage for {% data variables.product.prodname_copilot %}, whether you use it individually or manage it for an organization or enterprise.'
55
versions:
66
feature: copilot
77
children:
8-
- /usage-based-billing-for-individuals
98
- /organizations-and-enterprises
10-
- /budgets-for-usage-based-billing
9+
- /individuals
10+
- /copilot-usage-metrics
1111
redirect_from:
1212
- /managing-copilot/managing-copilot-as-an-individual-subscriber/billing-and-payments
1313
- /copilot/managing-copilot/understanding-and-managing-copilot-usage
1414
- /copilot/concepts/copilot-billing
15+
- /copilot/concepts/billing
1516
contentType: concepts
1617
---
17-

0 commit comments

Comments
 (0)