Skip to content

Commit 51ba3c6

Browse files
authored
Merge pull request #42644 from github/repo-sync
Repo sync
2 parents 0911ead + d2bb61c commit 51ba3c6

File tree

11 files changed

+46
-48
lines changed

11 files changed

+46
-48
lines changed

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-azure.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ The [`azure/login`](https://github.com/Azure/login) action receives a JWT from t
7777

7878
The following example exchanges an OIDC ID token with Azure to receive an access token, which can then be used to access cloud resources.
7979

80-
8180
```yaml copy
8281
{% data reusables.actions.actions-not-certified-by-github-comment %}
8382
name: Run Azure Login with OIDC
@@ -93,9 +92,9 @@ jobs:
9392
- name: 'Az CLI login'
9493
uses: azure/login@8c334a195cbb38e46038007b304988d888bf676a
9594
with:
96-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
97-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
98-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
95+
client-id: {% raw %}${{ secrets.AZURE_CLIENT_ID }}{% endraw %}
96+
tenant-id: {% raw %}${{ secrets.AZURE_TENANT_ID }}{% endraw %}
97+
subscription-id: {% raw %}${{ secrets.AZURE_SUBSCRIPTION_ID }}{% endraw %}
9998

10099
- name: 'Run az commands'
101100
run: |

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-google-cloud-platform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- id: 'gcloud'
104104
name: 'gcloud'
105105
run: |-
106-
gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}"
106+
gcloud auth login --brief --cred-file="{% raw %}${{ steps.auth.outputs.credentials_file_path }}{% endraw %}"
107107
gcloud services list
108108
```
109109

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-jfrog.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
id: setup-jfrog-cli
7070
uses: jfrog/setup-jfrog-cli@29fa5190a4123350e81e2a2e8d803b2a27fed15e
7171
with:
72-
JF_URL: ${{ env.JF_URL }}
72+
JF_URL: {% raw %}${{ env.JF_URL }}{% endraw %}
7373
oidc-provider-name: 'YOUR_PROVIDER_NAME'
7474
oidc-audience: 'YOUR_AUDIENCE' # This is optional
7575

@@ -85,20 +85,16 @@ jobs:
8585
8686
### Using OIDC Credentials in other steps
8787

88-
{% raw %}
89-
9088
```yaml
9189
{% data reusables.actions.actions-not-certified-by-github-comment %}
9290
- name: Sign in to Artifactory Docker registry
9391
uses: docker/login-action@v3
9492
with:
95-
registry: ${{ env.JF_URL }}
96-
username: ${{ steps.setup-jfrog-cli.outputs.oidc-user }}
97-
password: ${{ steps.setup-jfrog-cli.outputs.oidc-token }}
93+
registry: {% raw %}${{ env.JF_URL }}{% endraw %}
94+
username: {% raw %}${{ steps.setup-jfrog-cli.outputs.oidc-user }}{% endraw %}
95+
password: {% raw %}${{ steps.setup-jfrog-cli.outputs.oidc-token }}{% endraw %}
9896
```
9997
100-
{% endraw %}
101-
10298
## Further reading
10399
104100
* [OpenID Connect Integration](https://jfrog.com/help/r/jfrog-platform-administration-documentation/openid-connect-integration) in the JFrog documentation

content/actions/tutorials/build-and-test-code/ruby.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ The `setup-ruby` actions provides a method to automatically handle the caching o
187187

188188
To enable caching, set the following.
189189

190-
{% raw %}
191-
192190
```yaml
193191
{% data reusables.actions.actions-not-certified-by-github-comment %}
194192
steps:
@@ -197,8 +195,6 @@ steps:
197195
bundler-cache: true
198196
```
199197

200-
{% endraw %}
201-
202198
This will configure bundler to install your gems to `vendor/cache`. For each successful run of your workflow, this folder will be cached by {% data variables.product.prodname_actions %} and re-downloaded for subsequent workflow runs. A hash of your `gemfile.lock` and the Ruby version are used as the cache key. If you install any new gems, or change a version, the cache will be invalidated and bundler will do a fresh install.
203199

204200
**Caching without setup-ruby**

content/actions/tutorials/build-and-test-code/swift.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ jobs:
124124

125125
You can configure your job to use a single specific version of Swift, such as `5.3.3`.
126126

127-
{% raw %}
128-
129127
```yaml copy
130128
{% data reusables.actions.actions-not-certified-by-github-comment %}
131129
steps:
@@ -136,8 +134,6 @@ steps:
136134
run: swift --version # Swift 5.3.3
137135
```
138136

139-
{% endraw %}
140-
141137
## Building and testing your code
142138

143139
You can use the same commands that you use locally to build and test your code using Swift. This example demonstrates how to use `swift build` and `swift test` in a job:

content/admin/data-residency/network-details-for-ghecom.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ For more information, see [AUTOTITLE](/rest/meta/meta).
3333
* `*.githubassets.com`
3434
* `*.githubusercontent.com`
3535
* `*.blob.core.windows.net`
36+
* `auth.ghe.com`
3637

3738
## {% data variables.product.github %}'s IP addresses
3839

content/code-security/concepts/supply-chain-security/about-the-dependency-graph.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,23 @@ For more information on how {% data variables.product.github %} helps you unders
6060

6161
{% ifversion fpt or ghec %}
6262

63-
## Dependents included
63+
## Dependents and "used by" data
6464

65-
For public repositories, only public repositories that depend on it or on packages that it publishes are reported. This information is not reported for private repositories.{% endif %}
65+
For public repositories, the dependency graph lists dependents. These are other public repositories that depend on the repository or on packages that it publishes. This information is not reported for private repositories.
66+
67+
{% data reusables.dependency-graph.used-by %} Clicking any item in this section takes you to the **Dependents** tab of the dependency graph.
68+
69+
Your repository will have a "Used by" section if:
70+
* The dependency graph is enabled for the repository.
71+
* Your repository contains a package that is published on a supported package ecosystem. See [AUTOTITLE](/code-security/supply-chain-security/understanding-your-software-supply-chain/dependency-graph-supported-package-ecosystems#supported-package-ecosystems).
72+
* Within the ecosystem, your package has a link to a _public_ repository where the source is stored.
73+
* More than 100 repositories depend on your package.
74+
75+
![Screenshot of the "Used by" section for a repository showing the summary of "13.4m" with details of 8 avatars and "+13,435,819."](/assets/images/help/repository/used-by-section.png)
76+
77+
The "Used by" section represents a single package from the repository. If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents. See [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/change-used-by-data).
78+
79+
{% endif %}
6680

6781
## What you can do with the dependency graph
6882

content/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/exploring-the-dependencies-of-a-repository.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -81,31 +81,6 @@ If vulnerabilities have been detected in the repository, these are shown at the
8181

8282
For public repositories, the dependents view shows how the repository is used by other repositories. To show only the repositories that contain a library in a package manager, click **NUMBER Packages** immediately above the list of dependent repositories. The dependent counts are approximate and may not always match the dependents listed.
8383

84-
## Enabling and disabling the dependency graph
85-
86-
{% data reusables.dependabot.enabling-disabling-dependency-graph-private-repo-public-fork %}
87-
88-
## Changing the "Used by" package
89-
90-
You may notice some repositories have a "Used by" section in the sidebar of the **Code** tab. Your repository will have a "Used by" section if:
91-
* The dependency graph is enabled for the repository (see the above section for more details).
92-
* Your repository contains a package that is published on a [supported package ecosystem](/code-security/supply-chain-security/understanding-your-software-supply-chain/dependency-graph-supported-package-ecosystems#supported-package-ecosystems).
93-
* Within the ecosystem, your package has a link to a _public_ repository where the source is stored.
94-
* More than 100 repositories depend on your package.
95-
96-
The "Used by" section shows the number of public references to the package that were found, and displays the avatars of some of the owners of the dependent projects.
97-
98-
![Screenshot of the "Used by" section for a repository showing the summary of "13.4m" with details of 8 avatars and "+13,435,819."](/assets/images/help/repository/used-by-section.png)
99-
100-
Clicking any item in this section takes you to the **Dependents** tab of the dependency graph.
101-
102-
The "Used by" section represents a single package from the repository. If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents.
103-
104-
{% data reusables.repositories.navigate-to-repo %}
105-
{% data reusables.repositories.sidebar-settings %}
106-
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
107-
1. Under "{% data variables.product.UI_advanced_security %}", click the drop-down menu in the "Used by counter" section and choose a package.
108-
10984
{% endif %}
11085

11186
## Further reading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Changing the "used by" data for a repository
3+
shortTitle: Change "used by" data
4+
intro: Display your repository's dependents for a different package.
5+
permissions: 'Repository administrators'
6+
versions:
7+
fpt: '*'
8+
ghec: '*'
9+
contentType: how-tos
10+
---
11+
12+
{% data reusables.dependency-graph.used-by %} For more information, see [AUTOTITLE](/code-security/concepts/supply-chain-security/about-the-dependency-graph#dependents-and-used-by-data).
13+
14+
If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents.
15+
16+
{% data reusables.repositories.navigate-to-repo %}
17+
{% data reusables.repositories.sidebar-settings %}
18+
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
19+
1. Under "{% data variables.product.UI_advanced_security %}", click the drop-down menu in the "Used by counter" section and choose a package.

content/code-security/how-tos/view-and-interpret-data/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ children:
2020
- /viewing-code-scanning-logs
2121
- /viewing-dependabot-job-logs
2222
- /metrics-for-custom-patterns
23+
- /change-used-by-data
2324
---

0 commit comments

Comments
 (0)