You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ topics:
15
15
- Secret scanning
16
16
---
17
17
18
-
19
18
## About custom patterns for {% data variables.product.prodname_secret_scanning %}
20
19
21
20
You can define custom patterns to identify secrets that are not detected by the default patterns supported by {% data variables.product.prodname_secret_scanning %}. For example, you might have a secret pattern that is internal to your organization. For details of the supported secrets and service providers, see "[AUTOTITLE](/code-security/secret-scanning/secret-scanning-patterns)."
@@ -189,9 +188,7 @@ After your pattern is created, {% data variables.product.prodname_secret_scannin
189
188
## Editing a custom pattern
190
189
191
190
When you save a change to a custom pattern, this closes all the {% data variables.secret-scanning.alerts %} that were created using the previous version of the pattern.
192
-
1. Navigate to where the custom pattern was created. A custom pattern can be created in a repository, organization, or enterprise account.
193
-
* For a repository or organization, display the "Security & analysis" settings for the repository or organization where the custom pattern was created. For more information, see "[Defining a custom pattern for a repository](#defining-a-custom-pattern-for-a-repository)" or "[Defining a custom pattern for an organization](#defining-a-custom-pattern-for-an-organization)" above.
194
-
* For an enterprise, under "Policies" display the "Advanced Security" area, and then click **Security features**. For more information, see "[Defining a custom pattern for an enterprise account](#defining-a-custom-pattern-for-an-enterprise-account)" above.
191
+
{% data reusables.secret-scanning.view-custom-pattern %}
195
192
1. Under "{% data variables.product.prodname_secret_scanning_caps %}", to the right of the custom pattern you want to edit, click {% octicon "pencil" aria-label="The edit icon" %}.
196
193
{%- ifversion secret-scanning-custom-enterprise-36 or custom-pattern-dry-run-ga %}
197
194
1. When you're ready to test your edited custom pattern, to identify matches without creating alerts, click **Save and dry run**.
@@ -204,10 +201,28 @@ When you save a change to a custom pattern, this closes all the {% data variable
204
201
205
202
## Removing a custom pattern
206
203
207
-
1. Navigate to where the custom pattern was created. A custom pattern can be created in a repository, organization, or enterprise account.
208
-
209
-
* For a repository or organization, display the "Security & analysis" settings for the repository or organization where the custom pattern was created. For more information, see "[Defining a custom pattern for a repository](#defining-a-custom-pattern-for-a-repository)" or "[Defining a custom pattern for an organization](#defining-a-custom-pattern-for-an-organization)" above.
210
-
* For an enterprise, under "Policies" display the "Advanced Security" area, and then click **Security features**. For more information, see "[Defining a custom pattern for an enterprise account](#defining-a-custom-pattern-for-an-enterprise-account)" above.
204
+
{% data reusables.secret-scanning.view-custom-pattern %}
211
205
1. To the right of the custom pattern you want to remove, click {% octicon "trash" aria-label="The trash icon" %}.
212
206
1. Review the confirmation, and select a method for dealing with any open alerts relating to the custom pattern.
Organization owners and people with admin permissions can see an overview of the activity for custom patterns. The overview includes alert and push protection activity for the custom pattern during the last 30 days.
214
+
215
+
{% note %}
216
+
217
+
**Note:** Metrics for custom patterns are in public beta and subject to change.
218
+
219
+
{% endnote %}
220
+
221
+
### Viewing metrics for custom patterns
222
+
223
+
{% data reusables.secret-scanning.view-custom-pattern %}
224
+
1. Under "{% data variables.product.prodname_secret_scanning_caps %}", click the custom pattern you want to view.
225
+
226
+
The metrics are displayed under the custom pattern's name.
Copy file name to clipboardExpand all lines: content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,14 +96,12 @@ You can add a repository to an existing or new list wherever you see a repositor
96
96
1. Select the list you want to edit.
97
97
2. Click **Edit list**.
98
98
3. Update the name or description and click **Save list**.
99
-

100
99
101
100
### Deleting a list
102
101
103
102
{% data reusables.stars.stars-page-navigation %}
104
103
2. Select the list you want to delete.
105
104
3. Click **Delete list**.
106
-

0 commit comments