Skip to content

Commit f1b3ebe

Browse files
authored
Merge pull request #1219 from github/secret-scanning-many-matches
Add note that secret scanning endpoints should be able to handle larg…
2 parents a3de9af + baaeff0 commit f1b3ebe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/developers/overview/secret-scanning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Content-Length: 0123
7979
]
8080
```
8181

82-
The message body is a JSON array that contains one or more objects with the following contents. When multiple matches are found, {% data variables.product.prodname_dotcom %} may send a single message with more than one secret match.
82+
The message body is a JSON array that contains one or more objects with the following contents. When multiple matches are found, {% data variables.product.prodname_dotcom %} may send a single message with more than one secret match. Your endpoint should be able to handle requests with a large number of matches without timing out.
8383

8484
* **Token**: The value of the secret match.
8585
* **Type**: The unique name you provided to identify your regular expression.
@@ -139,7 +139,7 @@ func main() {
139139
fmt.Printf("Error preparing request: %s\n", err)
140140
os.Exit(1)
141141
}
142-
142+
143143
if len(os.Getenv("GITHUB_PRODUCTION_TOKEN")) == 0 {
144144
fmt.Println("Need to define environment variable GITHUB_PRODUCTION_TOKEN")
145145
os.Exit(1)

0 commit comments

Comments
 (0)