Skip to content

Commit 0c28a9d

Browse files
authored
Remove content versioned for ghes < 3.12 that caused linter errors and fix warnings for ALT text length (#54791)
1 parent 55868f2 commit 0c28a9d

File tree

5 files changed

+17
-40
lines changed

5 files changed

+17
-40
lines changed

Diff for: content/get-started/learning-to-code/reusing-other-peoples-code-in-your-projects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ When enabled, {% data variables.product.prodname_dependabot_alerts %} are automa
156156

157157
Turn {% data variables.product.prodname_dependabot_alerts %} on for your repository now. Click the **Security** tab for your project's {% data variables.product.github %} repository. Next to {% data variables.product.prodname_dependabot_alerts %}, click **Enable {% data variables.product.prodname_dependabot_alerts %}**. You can access {% data variables.product.prodname_dependabot_alerts %} from the **{% data variables.product.prodname_dependabot %}** tab of the sidebar.
158158

159-
![Screenshot of the "Security" page of a repository. The "Security" tab, "{% data variables.product.prodname_dependabot %}" tab, and "Enable {% data variables.product.prodname_dependabot_alerts %}" button are all outlined in dark orange.](/assets/images/help/dependabot/learners-enable-dependabot.png)
159+
![Screenshot of the "Security" page of a repository. The "Security" tab, "{% data variables.product.prodname_dependabot %}" tab, and "Enable {% data variables.product.prodname_dependabot_alerts %}" button are outlined in orange.](/assets/images/help/dependabot/learners-enable-dependabot.png)
160160

161161
### 3. Implementing code from a library
162162

Diff for: content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ For more information about authenticating in a {% data variables.product.prodnam
4848
1. Generate a private key for your app. Store the contents of the resulting file as a secret in your repository or organization. (Store the entire contents of the file, including `-----BEGIN RSA PRIVATE KEY-----` and `-----END RSA PRIVATE KEY-----`.) In the following workflow, replace `APP_PEM` with the name of the secret. For more information, see [AUTOTITLE](/apps/creating-github-apps/authenticating-with-a-github-app/managing-private-keys-for-github-apps). For more information about storing secrets, see [AUTOTITLE](/actions/security-guides/encrypted-secrets).
4949
1. In the following workflow, replace `YOUR_ORGANIZATION` with the name of your organization. For example, `octo-org`. Replace `YOUR_PROJECT_NUMBER` with your project number. To find the project number, look at the project URL. For example, `https://github.com/orgs/octo-org/projects/5` has a project number of 5. In order for this specific example to work, your project must also have a "Date posted" date field.
5050

51-
{% ifversion ghes < 3.12 %}
52-
53-
> [!NOTE]
54-
> * {% data reusables.actions.actions-not-certified-by-github %}
55-
> * {% data reusables.actions.actions-use-sha-pinning %}
56-
57-
{% endif %}
58-
5951
```yaml annotate copy
6052
#
6153
name: Add PR to project
@@ -68,17 +60,17 @@ jobs:
6860
track_pr:
6961
runs-on: ubuntu-latest
7062
steps:
71-
# Uses the {% ifversion ghes < 3.12 %}[tibdex/github-app-token](https://github.com/tibdex/github-app-token){% else %}[actions/create-github-app-token](https://github.com/marketplace/actions/create-github-app-token){% endif %} action to generate an installation access token for your app from the app ID and private key. The installation access token is accessed later in the workflow as `{% raw %}${{ steps.generate-token.outputs.token }}{% endraw %}`.
63+
# Uses the [actions/create-github-app-token](https://github.com/marketplace/actions/create-github-app-token) action to generate an installation access token for your app from the app ID and private key. The installation access token is accessed later in the workflow as `{% raw %}${{ steps.generate-token.outputs.token }}{% endraw %}`.
7264
#
7365
# Replace `APP_ID` with the name of the configuration variable that contains your app ID.
7466
#
7567
# Replace `APP_PEM` with the name of the secret that contains your app private key.
7668
- name: Generate token
7769
id: generate-token
78-
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %}
70+
uses: actions/create-github-app-token@v1
7971
with:
80-
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %}
81-
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
72+
app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
73+
private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
8274
# Sets environment variables for this step.
8375
#
8476
# Replace `YOUR_ORGANIZATION` with the name of your organization. For example, `octo-org`.
@@ -255,7 +247,7 @@ jobs:
255247
# - To get the ID of an option called `Octoteam` for the `Team` single select field, add `echo 'OCTOTEAM_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Team") |.options[] | select(.name=="Octoteam") |.id' project_data.json) >> $GITHUB_ENV`.
256248
#
257249
# **Note:** This workflow assumes that you have a project with a single select field called "Status" that includes an option called "Todo" and a date field called "Date posted". You must modify this section to match the fields that are present in your table.
258-
250+
259251
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
260252
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Date posted") | .id' project_data.json) >> $GITHUB_ENV
261253
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV

Diff for: content/rest/quickstart.md

+9-24
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
6868
1. Add a step to generate a token, and use that token instead of `GITHUB_TOKEN`. Note that this token will expire after 60 minutes. {% ifversion fpt or ghec %}For example:{% else %}In the following example, replace `HOSTNAME` with the name of {% data variables.location.product_location %}. Replace `REPO-OWNER` with the name of the account that owns the repository. Replace `REPO-NAME` with the name of the repository.{% endif %}
6969

7070
```yaml copy
71-
{% ifversion ghes < 3.12 %}
72-
{% data reusables.actions.actions-not-certified-by-github-comment %}
73-
74-
{% data reusables.actions.actions-use-sha-pinning-comment %}
75-
{% endif %}
7671
on:
7772
workflow_dispatch:
7873
jobs:
@@ -81,10 +76,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
8176
steps:
8277
- name: Generate token
8378
id: generate-token
84-
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %}
79+
uses: actions/create-github-app-token@v1
8580
with:
86-
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %}
87-
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
81+
app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
82+
private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
8883
- name: Use API
8984
env:
9085
GH_TOKEN: {% raw %}${{ steps.generate-token.outputs.token }}{% endraw %}
@@ -212,11 +207,6 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
212207
1. Add a step to generate a token, and use that token instead of `GITHUB_TOKEN`. Note that this token will expire after 60 minutes. For example:
213208

214209
```yaml
215-
{% ifversion ghes < 3.12 %}
216-
{% data reusables.actions.actions-not-certified-by-github-comment %}
217-
218-
{% data reusables.actions.actions-use-sha-pinning-comment %}
219-
{% endif %}
220210
on:
221211
workflow_dispatch:
222212
jobs:
@@ -237,10 +227,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
237227

238228
- name: Generate token
239229
id: generate-token
240-
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %}
230+
uses: actions/create-github-app-token@v1
241231
with:
242-
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %}
243-
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
232+
app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
233+
private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
244234

245235
- name: Run script
246236
run: |
@@ -323,11 +313,6 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
323313
1. Add a step to generate a token, and use that token instead of `GITHUB_TOKEN`. Note that this token will expire after 60 minutes. {% ifversion fpt or ghec %}For example:{% else %}In the following example, replace `HOSTNAME` with the name of {% data variables.location.product_location %}. Replace `REPO-OWNER` with the name of the account that owns the repository. Replace `REPO-NAME` with the name of the repository.{% endif %}
324314

325315
```yaml copy
326-
{% ifversion ghes < 3.12 %}
327-
{% data reusables.actions.actions-not-certified-by-github-comment %}
328-
329-
{% data reusables.actions.actions-use-sha-pinning-comment %}
330-
{% endif %}
331316
on:
332317
workflow_dispatch:
333318
jobs:
@@ -336,10 +321,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
336321
steps:
337322
- name: Generate token
338323
id: generate-token
339-
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %}
324+
uses: actions/create-github-app-token@v1
340325
with:
341-
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %}
342-
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
326+
app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
327+
private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
343328
344329
- name: Use API
345330
env:

Diff for: content/search-github/getting-started-with-searching-on-github/about-searching-on-github.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ topics:
2222

2323
{% data reusables.search.you-can-search-globally %}
2424

25-
* To search globally across all of {% data variables.product.github %}, type what you're looking for into the search field at the top of any page, and choose "Search all of {% data variables.product.prodname_dotcom %}"{% ifversion fpt or ghec or ghes < 3.12 %} in the search dropdown menu{% endif %}.
25+
* To search globally across all of {% data variables.product.github %}, type what you're looking for into the search field at the top of any page, and choose "Search all of {% data variables.product.prodname_dotcom %}"{% ifversion fpt or ghec or ghes > 3.12 %} in the search dropdown menu{% endif %}.
2626
* To search within a particular repository or organization, navigate to the repository or organization page, type what you're looking for into the search field at the top of the page, and press **Enter**.
2727

2828
{% ifversion code-search-upgrade %}You can also use suggestions and completions in the search bar to quickly find what you need.

Diff for: data/reusables/desktop/cloning-location-url-tab.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
1. Click the tab that corresponds to the location of the repository you want to clone. In this example, we click on the URL tab.
22

3-
![Screenshot of the "URL" tab of the "Clone a repository" window. At the top of the window, "GitHub.com", "GitHub Enterprise" and "URL" tabs are outlined in orange.](/assets/images/help/desktop/choose-repository-location-url-tab-windows.png)
3+
![Screenshot of the "URL" tab of the "Clone a repository" window. The "GitHub.com", "GitHub Enterprise" and "URL" tabs are outlined in dark orange.](/assets/images/help/desktop/choose-repository-location-url-tab-windows.png)

0 commit comments

Comments
 (0)