1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Remove content versioned for ghes < 3.12 that caused linter errors and fix warnings for ALT text length (#54791)

This commit is contained in:
Felicity Chapman
2025-03-13 08:25:16 +00:00
committed by GitHub
parent 55868f207e
commit 0c28a9d17a
5 changed files with 17 additions and 40 deletions

View File

@@ -156,7 +156,7 @@ When enabled, {% data variables.product.prodname_dependabot_alerts %} are automa
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. 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.
![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) ![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)
### 3. Implementing code from a library ### 3. Implementing code from a library

View File

@@ -48,14 +48,6 @@ For more information about authenticating in a {% data variables.product.prodnam
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). 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).
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. 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.
{% ifversion ghes < 3.12 %}
> [!NOTE]
> * {% data reusables.actions.actions-not-certified-by-github %}
> * {% data reusables.actions.actions-use-sha-pinning %}
{% endif %}
```yaml annotate copy ```yaml annotate copy
# #
name: Add PR to project name: Add PR to project
@@ -68,17 +60,17 @@ jobs:
track_pr: track_pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# 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 %}`. # 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 %}`.
# #
# Replace `APP_ID` with the name of the configuration variable that contains your app ID. # Replace `APP_ID` with the name of the configuration variable that contains your app ID.
# #
# Replace `APP_PEM` with the name of the secret that contains your app private key. # Replace `APP_PEM` with the name of the secret that contains your app private key.
- name: Generate token - name: Generate token
id: generate-token id: generate-token
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %} uses: actions/create-github-app-token@v1
with: with:
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %} app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %} private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
# Sets environment variables for this step. # Sets environment variables for this step.
# #
# Replace `YOUR_ORGANIZATION` with the name of your organization. For example, `octo-org`. # Replace `YOUR_ORGANIZATION` with the name of your organization. For example, `octo-org`.
@@ -255,7 +247,7 @@ jobs:
# - 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`. # - 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`.
# #
# **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. # **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.
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Date posted") | .id' project_data.json) >> $GITHUB_ENV echo 'DATE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Date posted") | .id' project_data.json) >> $GITHUB_ENV
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV

View File

@@ -68,11 +68,6 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
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 %} 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 %}
```yaml copy ```yaml copy
{% ifversion ghes < 3.12 %}
{% data reusables.actions.actions-not-certified-by-github-comment %}
{% data reusables.actions.actions-use-sha-pinning-comment %}
{% endif %}
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -81,10 +76,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
steps: steps:
- name: Generate token - name: Generate token
id: generate-token id: generate-token
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %} uses: actions/create-github-app-token@v1
with: with:
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %} app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %} private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
- name: Use API - name: Use API
env: env:
GH_TOKEN: {% raw %}${{ steps.generate-token.outputs.token }}{% endraw %} 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 %
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: 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:
```yaml ```yaml
{% ifversion ghes < 3.12 %}
{% data reusables.actions.actions-not-certified-by-github-comment %}
{% data reusables.actions.actions-use-sha-pinning-comment %}
{% endif %}
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -237,10 +227,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
- name: Generate token - name: Generate token
id: generate-token id: generate-token
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %} uses: actions/create-github-app-token@v1
with: with:
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %} app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %} private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
- name: Run script - name: Run script
run: | run: |
@@ -323,11 +313,6 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
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 %} 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 %}
```yaml copy ```yaml copy
{% ifversion ghes < 3.12 %}
{% data reusables.actions.actions-not-certified-by-github-comment %}
{% data reusables.actions.actions-use-sha-pinning-comment %}
{% endif %}
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -336,10 +321,10 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
steps: steps:
- name: Generate token - name: Generate token
id: generate-token id: generate-token
uses: {% ifversion ghes < 3.12 %}tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0{% else %}actions/create-github-app-token@v1{% endif %} uses: actions/create-github-app-token@v1
with: with:
{% ifversion ghes < 3.12 %}app_id{% else %}app-id{% endif %}: {% raw %}${{ vars.APP_ID }}{% endraw %} app-id: {% raw %}${{ vars.APP_ID }}{% endraw %}
{% ifversion ghes < 3.12 %}private_key{% else %}private-key{% endif %}: {% raw %}${{ secrets.APP_PEM }}{% endraw %} private-key: {% raw %}${{ secrets.APP_PEM }}{% endraw %}
- name: Use API - name: Use API
env: env:

View File

@@ -22,7 +22,7 @@ topics:
{% data reusables.search.you-can-search-globally %} {% data reusables.search.you-can-search-globally %}
* 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 %}. * 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 %}.
* 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**. * 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**.
{% ifversion code-search-upgrade %}You can also use suggestions and completions in the search bar to quickly find what you need. {% ifversion code-search-upgrade %}You can also use suggestions and completions in the search bar to quickly find what you need.

View File

@@ -1,3 +1,3 @@
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. 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.
![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) ![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)