Skip to content

Commit f67abf7

Browse files
Merge branch 'main' into code-scanning-faq-fix
2 parents 3691569 + 4e59890 commit f67abf7

File tree

175 files changed

+2595
-1374
lines changed

Some content is hidden

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

175 files changed

+2595
-1374
lines changed
Loading

components/landing/ArticleList.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const ArticleList = ({
2525
<>
2626
{title && (
2727
<div className="mb-4 d-flex flex-items-baseline">
28-
<h3 className={cx('f4 text-semibold')}>{title}</h3>
28+
<h2 className={cx('f4 text-semibold')}>{title}</h2>
2929
{viewAllHref && (
3030
<Link
3131
href={viewAllHref}
@@ -60,13 +60,23 @@ export const ArticleList = ({
6060
href={link.href}
6161
className="py-3"
6262
title={
63-
<h4 data-testid="link-with-intro-title">
63+
!link.hideIntro && link.intro ? (
64+
<h3 className="f4" data-testid="link-with-intro-title">
65+
<span
66+
dangerouslySetInnerHTML={
67+
link.fullTitle ? { __html: link.fullTitle } : { __html: link.title }
68+
}
69+
/>
70+
</h3>
71+
) : (
6472
<span
73+
className="f4 text-bold d-block"
74+
data-testid="link-with-intro-title"
6575
dangerouslySetInnerHTML={
6676
link.fullTitle ? { __html: link.fullTitle } : { __html: link.title }
6777
}
68-
/>
69-
</h4>
78+
></span>
79+
)
7080
}
7181
>
7282
{!link.hideIntro && link.intro && (

components/landing/CodeExampleCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const CodeExampleCard = ({ example }: Props) => {
1414
href={`https://github.com/${example.href}`}
1515
>
1616
<div className="p-4">
17-
<h4 dangerouslySetInnerHTML={{ __html: example.title }} />
17+
<h3 className="f4" dangerouslySetInnerHTML={{ __html: example.title }} />
1818
<p
1919
className="mt-2 mb-4 color-fg-muted"
2020
dangerouslySetInnerHTML={{ __html: example.description }}

components/landing/GuideCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const GuideCard = ({ guide }: Props) => {
1313
className="Box color-shadow-medium height-full d-block hover-shadow-large no-underline color-fg-default p-5"
1414
href={guide.href}
1515
>
16-
<h2 dangerouslySetInnerHTML={{ __html: guide.title }} />
16+
<h3 className="f2" dangerouslySetInnerHTML={{ __html: guide.title }} />
1717
<p
1818
className="mt-2 mb-4 color-fg-muted"
1919
dangerouslySetInnerHTML={{ __html: guide.intro || '' }}

components/landing/ProductArticlesList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const ProductTreeNodeList = ({ treeNode }: { treeNode: ProductTreeNode }) => {
3434

3535
return (
3636
<div className="col-12 col-lg-4 mb-6 height-full">
37-
<h4 className="mb-3">
37+
<h3 className="mb-3 f4">
3838
<Link className="color-unset" href={treeNode.href}>
3939
{treeNode.renderedFullTitle}
4040
</Link>
41-
</h4>
41+
</h3>
4242

4343
<ActionList
4444
{...{ as: 'ul' }}

content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/about-your-organizations-profile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ topics:
1515
- Profiles
1616
shortTitle: Organization's profile
1717
---
18-
You can optionally choose to add a description, location, website, and email address for your organization, and pin important repositories.{% ifversion not ghes and not ghae %} You can customize your organization's profile by adding a README.md file. For more information, see "[Customizing your organization's profile](/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile)."{% endif %}
18+
You can optionally choose to add a description, location, website, and email address for your organization, and pin important repositories.{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4749 %} You can customize your organization's profile by adding a README.md file. For more information, see "[Customizing your organization's profile](/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile)."{% endif %}
1919

2020
{% ifversion fpt or ghec %}To confirm your organization's identity and display a "Verified" badge on your organization profile page, you must verify your organization's domains with {% data variables.product.product_name %}. For more information, see "[Verifying or approving a domain for your organization](/organizations/managing-organization-settings/verifying-or-approving-a-domain-for-your-organization)."{% endif %}
2121

content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ jobs:
6969
- name: Validate Gradle wrapper
7070
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
7171
- name: Build with Gradle
72-
run: ./gradlew build
72+
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
73+
with:
74+
arguments: build
7375
```
7476

7577
This workflow performs the following steps:
7678

7779
1. The `checkout` step downloads a copy of your repository on the runner.
7880
2. The `setup-java` step configures the Java 11 JDK by Adoptium.
7981
3. The "Validate Gradle wrapper" step validates the checksums of Gradle Wrapper JAR files present in the source tree.
80-
4. The "Build with Gradle" step runs the `gradlew` wrapper script to ensure that your code builds, tests pass, and a package can be created.
82+
4. The "Build with Gradle" step does a build using the `gradle/gradle-build-action` action provided by the Gradle organization on {% data variables.product.prodname_dotcom %}. The action takes care of invoking Gradle, collecting results, and caching state between jobs. For more information see [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action).
8183

8284
The default starter workflows are excellent starting points when creating your build and test workflow, and you can customize the starter workflow to suit your project’s needs.
8385

@@ -104,38 +106,17 @@ steps:
104106
- name: Validate Gradle wrapper
105107
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
106108
- name: Run the Gradle package task
107-
run: ./gradlew -b ci.gradle package
109+
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
110+
with:
111+
arguments: -b ci.gradle package
108112
```
109113
{% endraw %}
110114

111115
## Caching dependencies
112116

113-
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache your dependencies to speed up your workflow runs. After a successful run, your local Gradle package cache will be stored on GitHub Actions infrastructure. In future workflow runs, the cache will be restored so that dependencies don't need to be downloaded from remote package repositories. You can cache dependencies simply using the [`setup-java` action](https://github.com/marketplace/actions/setup-java-jdk) or can use [`cache` action](https://github.com/actions/cache) for custom and more advanced configuration.
117+
When using {% data variables.product.prodname_dotcom %}-hosted runners, your build dependencies can be cached to speed up your workflow runs. After a successful run, the `gradle/gradle-build-action` caches important parts of the Gradle user home directory. In future jobs, the cache will be restored so that build scripts won't need to be recompiled and dependencies won't need to be downloaded from remote package repositories.
114118

115-
{% raw %}
116-
```yaml{:copy}
117-
steps:
118-
- uses: actions/checkout@v2
119-
- name: Set up JDK 11
120-
uses: actions/setup-java@v2
121-
with:
122-
java-version: '11'
123-
distribution: 'adopt'
124-
cache: gradle
125-
- name: Validate Gradle wrapper
126-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
127-
- name: Build with Gradle
128-
run: ./gradlew build
129-
- name: Cleanup Gradle Cache
130-
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
131-
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
132-
run: |
133-
rm -f ~/.gradle/caches/modules-2/modules-2.lock
134-
rm -f ~/.gradle/caches/modules-2/gc.properties
135-
```
136-
{% endraw %}
137-
138-
This workflow will save the contents of your local Gradle package cache, located in the `.gradle/caches` and `.gradle/wrapper` directories of the runner's home directory. The cache key will be the hashed contents of the gradle build files (including the Gradle wrapper properties file), so any changes to them will invalidate the cache.
119+
Caching is enabled by default when using the `gradle/gradle-build-action` action. For more information, see [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action#caching).
139120

140121
## Packaging workflow data as artifacts
141122

@@ -153,7 +134,10 @@ steps:
153134
distribution: 'adopt'
154135
- name: Validate Gradle wrapper
155136
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
156-
- run: ./gradlew build
137+
- name: Build with Gradle
138+
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
139+
with:
140+
arguments: build
157141
- uses: actions/upload-artifact@v2
158142
with:
159143
name: Package

content/actions/automating-builds-and-tests/building-and-testing-swift.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ jobs:
8585
swift: ["5.2", "5.3"]
8686
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
8787
steps:
88-
- uses: fwal/setup-swift@d43a564349d1341cd990cfbd70d94d63b8899475
88+
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
8989
with:
9090
swift-version: {% raw %}${{ matrix.swift }}{% endraw %}
91-
- uses: actions/checkout@
91+
- uses: actions/checkout@v2
9292
- name: Build
9393
run: swift build
9494
- name: Run tests
@@ -102,7 +102,7 @@ You can configure your job to use a single specific version of Swift, such as `5
102102
{% raw %}
103103
```yaml{:copy}
104104
steps:
105-
- uses: fwal/setup-swift@d43a564349d1341cd990cfbd70d94d63b8899475
105+
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
106106
with:
107107
swift-version: "5.3.3"
108108
- name: Get swift version
@@ -118,7 +118,7 @@ You can use the same commands that you use locally to build and test your code u
118118
```yaml{:copy}
119119
steps:
120120
- uses: actions/checkout@v2
121-
- uses: fwal/setup-swift@d43a564349d1341cd990cfbd70d94d63b8899475
121+
- uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192
122122
with:
123123
swift-version: "5.3.3"
124124
- name: Build

content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The token also includes custom claims provided by {% data variables.product.prod
126126
| `repository_owner`| The name of the organization in which the `repository` is stored. |
127127
| `run_id`| The ID of the workflow run that triggered the workflow. |
128128
| `run_number`| The number of times this workflow has been run. |
129-
| `run_attempt`| The number of time this workflow run was been retried. |
129+
| `run_attempt`| The number of times this workflow run has been retried. |
130130
| `workflow`| The name of the workflow. |
131131

132132
### Defining trust conditions on cloud roles using OIDC claims
@@ -161,7 +161,7 @@ You can configure a subject that filters for a specific [environment](/actions/d
161161

162162
#### Filtering for `pull_request` events
163163

164-
You can configure a subject that filters for the [`pull_request`](/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags) 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:
164+
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:
165165

166166

167167
| | |

0 commit comments

Comments
 (0)