diff --git a/content/code-security/dependabot/working-with-dependabot/managing-encrypted-secrets-for-dependabot.md b/content/code-security/dependabot/working-with-dependabot/managing-encrypted-secrets-for-dependabot.md index c6f149b16ad7..7b75165e7682 100644 --- a/content/code-security/dependabot/working-with-dependabot/managing-encrypted-secrets-for-dependabot.md +++ b/content/code-security/dependabot/working-with-dependabot/managing-encrypted-secrets-for-dependabot.md @@ -49,8 +49,7 @@ The name of a {% data variables.product.prodname_dependabot %} secret: {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -{% data reusables.actions.sidebar-secret %} -{% data reusables.dependabot.dependabot-secrets-button %} +{% data reusables.dependabot.sidebar-secret %} 1. Click **New repository secret**. 1. Type a name for your secret in the **Name** input box. 1. Enter the value for your secret. @@ -68,8 +67,7 @@ When creating a secret in an organization, you can use a policy to limit which r {% data reusables.organizations.navigate-to-org %} {% data reusables.organizations.org_settings %} -{% data reusables.actions.sidebar-secret %} -{% data reusables.dependabot.dependabot-secrets-button %} +{% data reusables.dependabot.sidebar-secret %} 1. Click **New organization secret**. 1. Type a name for your secret in the **Name** input box. 1. Enter the **Value** for your secret. diff --git a/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces.md b/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces.md index fc4938191ab5..f2507b7be937 100644 --- a/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces.md +++ b/content/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces.md @@ -43,7 +43,8 @@ To create secrets for an organization repository, you must have administrator ac {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets** then click **{% data variables.product.prodname_codespaces %}**. +{% data reusables.codespaces.sidebar-secret %} + 2. At the top of the page, click **New repository secret**. 3. Type a name for your secret in the **Name** input box. 4. Enter the value for your secret. @@ -57,7 +58,8 @@ When creating a secret in an organization, you can use a policy to limit which r {% data reusables.organizations.navigate-to-org %} {% data reusables.organizations.org_settings %} -1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets** then click **{% data variables.product.prodname_codespaces %}**. +{% data reusables.codespaces.sidebar-secret %} + 2. At the top of the page, click **New organization secret**. 3. Type a name for your secret in the **Name** input box. 4. Enter the **Value** for your secret. @@ -71,7 +73,8 @@ You can check which access policies are applied to a secret in your organization {% data reusables.organizations.navigate-to-org %} {% data reusables.organizations.org_settings %} -{% data reusables.actions.sidebar-secret %} +{% data reusables.codespaces.sidebar-secret %} + 1. The list of secrets includes any configured permissions and policies. For example: ![Secrets list](/assets/images/help/settings/actions-org-secrets-list.png) 1. For more details on the configured permissions for each secret, click **Update**. diff --git a/data/reusables/actions/sidebar-secret.md b/data/reusables/actions/sidebar-secret.md index db2b162cd5c8..5fa0f6887ba5 100644 --- a/data/reusables/actions/sidebar-secret.md +++ b/data/reusables/actions/sidebar-secret.md @@ -1,5 +1,5 @@ -{% ifversion fpt or ghec or ghes > 3.4 or ghae > 3.4 %} -1. In the left sidebar, click **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets**. -{% else %} +{% ifversion fpt or ghec or ghes > 3.4 or ghae > 3.4 -%} +1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets**, then click **Actions**. +{%- else %} 1. In the left sidebar, click **Secrets**. -{% endif %} +{%- endif %} \ No newline at end of file diff --git a/data/reusables/codespaces/sidebar-secret.md b/data/reusables/codespaces/sidebar-secret.md new file mode 100644 index 000000000000..62d94a9ba985 --- /dev/null +++ b/data/reusables/codespaces/sidebar-secret.md @@ -0,0 +1 @@ +1. In the "Security" section of the sidebar, select **{% octicon "key-asterisk" aria-label="The key-asterisk icon" %} Secrets**, then click **{% data variables.product.prodname_codespaces %}**. diff --git a/data/reusables/dependabot/dependabot-secrets-button.md b/data/reusables/dependabot/sidebar-secret.md similarity index 100% rename from data/reusables/dependabot/dependabot-secrets-button.md rename to data/reusables/dependabot/sidebar-secret.md