Skip to content

Commit 906cd27

Browse files
authored
Merge pull request #24784 from github/repo-sync
repo sync
2 parents f7c2b5e + 8585eac commit 906cd27

File tree

16 files changed

+79
-24
lines changed

16 files changed

+79
-24
lines changed
90.5 KB
Loading
-33.3 KB
Binary file not shown.
186 KB
Loading
79.8 KB
Loading
10.1 KB
Loading
113 KB
Loading
9.53 KB
Loading

content/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ topics:
1515
- Secret scanning
1616
---
1717

18-
1918
## About custom patterns for {% data variables.product.prodname_secret_scanning %}
2019

2120
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
189188
## Editing a custom pattern
190189

191190
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 %}
195192
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" %}.
196193
{%- ifversion secret-scanning-custom-enterprise-36 or custom-pattern-dry-run-ga %}
197194
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
204201

205202
## Removing a custom pattern
206203

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 %}
211205
1. To the right of the custom pattern you want to remove, click {% octicon "trash" aria-label="The trash icon" %}.
212206
1. Review the confirmation, and select a method for dealing with any open alerts relating to the custom pattern.
213207
1. Click **Yes, delete this pattern**.
208+
209+
{% ifversion secret-scanning-custom-patterns-metrics %}
210+
211+
## Metrics for custom patterns
212+
213+
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.
227+
228+
{% endif %}

content/get-started/exploring-projects-on-github/saving-repositories-with-stars.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,12 @@ You can add a repository to an existing or new list wherever you see a repositor
9696
1. Select the list you want to edit.
9797
2. Click **Edit list**.
9898
3. Update the name or description and click **Save list**.
99-
![Screenshot of modal showing edit options with "Delete list" and "Save list" highlighted with a dark orange outline.](/assets/images/help/stars/edit-list-options.png)
10099

101100
### Deleting a list
102101

103102
{% data reusables.stars.stars-page-navigation %}
104103
2. Select the list you want to delete.
105104
3. Click **Delete list**.
106-
![Screenshot of modal showing edit options with "Delete list" and "Save list" highlighted with a dark orange outline.](/assets/images/help/stars/edit-list-options.png)
107105
4. To confirm, click **Delete**.
108106

109107
{% endif %}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Reference: #9140.
2+
# Documentation for secret scanning metrics for custom patterns.
3+
versions:
4+
ghec: '*'
5+
ghes: '>=3.10'

0 commit comments

Comments
 (0)