Skip to content

Commit 653e54c

Browse files
Add GHES version conditional rendering of the secret scanning NPP table (#58541)
Co-authored-by: Anne-Marie <[email protected]>
1 parent dd9e824 commit 653e54c

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

content/code-security/secret-scanning/introduction/supported-secret-scanning-patterns.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ This table lists the secrets supported by {% data variables.product.prodname_sec
5353

5454
Precision levels are estimated based on the pattern type's typical false positive rates.
5555

56+
<!-- Team plan and GHEC version of table -->
57+
{% ifversion fpt or ghec %}
58+
5659
| Provider | Token | Description | Precision |
5760
|:---------|:--------------------------------------|:------------|:----------|
5861
| Generic | ec_private_key | Elliptic Curve (EC) private keys used for cryptographic operations | High |
@@ -66,7 +69,29 @@ Precision levels are estimated based on the pattern type's typical false positiv
6669
| Generic | postgres_connection_string | Connection strings for PostgreSQL databases containing credentials | High |
6770
| Generic | rsa_private_key | RSA private keys used for cryptographic operations | High |
6871

69-
`generic_private_key` support is only available on {% data variables.product.prodname_ghe_server %} from version 3.20.
72+
{% endif %}
73+
74+
<!-- GHES 3.11+ table -->
75+
{% ifversion ghes %}
76+
77+
| Provider | Token | Description | Precision |
78+
|:---------|:--------------------------------------|:------------|:----------|
79+
| {% ifversion ghes > 3.18 %} |
80+
| Generic | ec_private_key | Elliptic Curve (EC) private keys used for cryptographic operations | High |
81+
| {% endif %} |
82+
| {% ifversion ghes > 3.19 %} |
83+
| Generic | generic_private_key | Cryptographic private keys with `-----BEGIN PRIVATE KEY-----` header | High |
84+
| {% endif %} |
85+
| Generic | http_basic_authentication_header | HTTP Basic Authentication credentials in request headers | Medium |
86+
| Generic | http_bearer_authentication_header | HTTP Bearer tokens used for API authentication | Medium |
87+
| Generic | mongodb_connection_string | Connection strings for MongoDB databases containing credentials | High |
88+
| Generic | mysql_connection_string | Connection strings for MySQL databases containing credentials | High |
89+
| Generic | openssh_private_key | OpenSSH format private keys used for SSH authentication | High |
90+
| Generic | pgp_private_key | PGP (Pretty Good Privacy) private keys used for encryption and signing | High |
91+
| Generic | postgres_connection_string | Connection strings for PostgreSQL databases containing credentials | High |
92+
| Generic | rsa_private_key | RSA private keys used for cryptographic operations | High |
93+
94+
{% endif %}
7095

7196
>[!NOTE]
7297
> Validity checks are **not supported** for non-provider patterns.

0 commit comments

Comments
 (0)