This commit is contained in:
@@ -127,7 +127,7 @@ If {% data variables.product.prodname_dotcom %} blocks a secret that you believe
|
|||||||
Organization owners can provide a custom link that will be displayed when a push is blocked. This custom link can contain resources and advice specific to your organization. For example, the custom link can point to a README file with information about the organization's secret vault, which teams and individuals to escalate questions to, or the organization's approved policy for working with secrets and rewriting commit history.
|
Organization owners can provide a custom link that will be displayed when a push is blocked. This custom link can contain resources and advice specific to your organization. For example, the custom link can point to a README file with information about the organization's secret vault, which teams and individuals to escalate questions to, or the organization's approved policy for working with secrets and rewriting commit history.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
You can remove the secret from the file using the web UI. Once you remove the secret, the banner at the top of the page will change and tell you that you can now commit your changes.
|
You can remove the secret from the file using the web UI. Once you remove the secret, you will be able to commit your changes.
|
||||||
|
|
||||||
### Bypassing push protection for a secret
|
### Bypassing push protection for a secret
|
||||||
|
|
||||||
@@ -141,9 +141,7 @@ If {% data variables.product.prodname_dotcom %} blocks a secret that you believe
|
|||||||
|
|
||||||
{% data reusables.secret-scanning.push-protection-allow-email %}
|
{% data reusables.secret-scanning.push-protection-allow-email %}
|
||||||
|
|
||||||
If you confirm a secret is real and that you intend to fix it later, you should aim to remediate the secret as soon as possible.
|
1. In dialog box that appeared when {% data variables.product.prodname_dotcom %} blocked your commit, review the name and location of the secret.
|
||||||
|
|
||||||
1. In the banner that appeared at the top of the page when {% data variables.product.prodname_dotcom %} blocked your commit, click **Bypass protection**.
|
|
||||||
{% data reusables.secret-scanning.push-protection-choose-allow-secret-options %}
|
{% data reusables.secret-scanning.push-protection-choose-allow-secret-options %}
|
||||||
1. Click **Allow secret**.
|
1. Click **Allow secret**.
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ The push protection feature of {% data variables.product.prodname_secret_scannin
|
|||||||
{% tip %}
|
{% tip %}
|
||||||
|
|
||||||
**Tip**
|
**Tip**
|
||||||
If {% data variables.product.prodname_dotcom %} blocks a secret that you believe is safe to push, you can allow the secret and specify the reason why it should be allowed. For more information about bypassing push protection for a secret, see "[AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#allowing-a-blocked-secret-to-be-pushed)" and "[AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#bypassing-push-protection-for-a-secret)" for the command line and the web UI, respectively.
|
If {% data variables.product.prodname_dotcom %} blocks a secret that you believe is safe to push, you can allow the secret and specify the reason why it should be allowed. For more information about bypassing push protection for a secret, see "[Allowing a blocked secret to be pushed](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#allowing-a-blocked-secret-to-be-pushed)" and "[Bypassing push protection for a secret](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#bypassing-push-protection-for-a-secret)" for the command line and the web UI, respectively.
|
||||||
|
|
||||||
{% endtip %}
|
{% endtip %}
|
||||||
|
|
||||||
@@ -56,6 +56,6 @@ You can also remove the secret if the secret appears in an earlier commit in the
|
|||||||
|
|
||||||
{% data reusables.secret-scanning.push-protection-web-ui-choice %}
|
{% data reusables.secret-scanning.push-protection-web-ui-choice %}
|
||||||
|
|
||||||
To resolve a blocked commit in the web UI, you need to remove the secret from the file, or use the **Bypass protection** dropdown to allow the secret. For more information about bypassing push protection from the web UI, see "[AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#bypassing-push-protection-for-a-secret)."
|
To resolve a blocked commit in the web UI, you need to remove the secret from the file, or use the options displayed in the dialog box to allow the secret. For more information about bypassing push protection from the web UI, see "[AUTOTITLE](/code-security/secret-scanning/protecting-pushes-with-secret-scanning#bypassing-push-protection-for-a-secret)."
|
||||||
|
|
||||||
If you confirm a secret is real, you need to remove the secret from the file. Once you remove the secret, the banner at the top of the page will change and tell you that you can now commit your changes.
|
If you confirm a secret is real, you need to remove the secret from the file. Once you remove the secret, you will be able to commit your changes.
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
When you use the web UI to attempt to commit a supported secret to a repository or organization with secret scanning as a push protection enabled, {% data variables.product.prodname_dotcom %} will block the commit.
|
When you use the web UI to attempt to commit a supported secret to a repository or organization with secret scanning as a push protection enabled, {% data variables.product.prodname_dotcom %} will block the commit.
|
||||||
|
|
||||||
You will see a banner at the top of the page with information about the secret's location, and the secret will also be underlined in the file so you can easily find it.
|
You will see a dialog box with information about the secret's location, as well as options allowing you to push the secret. The secret will also be underlined in the file so you can easily find it.
|
||||||
|
|||||||
Reference in New Issue
Block a user