Skip to content

Commit 5ee7bfe

Browse files
sarahsrachmari
andauthored
Secret scanning structured data (github#33117)
Co-authored-by: Rachael Sewell <rachmari@github.com>
1 parent c8579c9 commit 5ee7bfe

File tree

11 files changed

+2757
-1068
lines changed

11 files changed

+2757
-1068
lines changed

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

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ If you believe that {% data variables.product.prodname_secret_scanning %} should
4141

4242
{% data reusables.secret-scanning.secret-scanning-pattern-pair-matches %}
4343

44-
{% data reusables.secret-scanning.partner-secret-list-public-repo %}
44+
<!-- PUBLIC TABLE STARTS HERE -->
45+
<!-- This recreates the table in the now deleted data/reusables/secret-scanning/partner-secret-list-public-repo.md -->
46+
Partner | Supported secret
47+
--- | ---
48+
{%- for entry in secretScanning.isPublic %}
49+
{{ entry.provider }} | {{ entry.supportedSecret }}
50+
{%- endfor %}
51+
<!-- PUBLIC TABLE ENDS HERE -->
52+
4553
{% endif %}
4654

4755
## Supported secrets for {% ifversion fpt or ghec %}user {% endif %}alerts
@@ -60,7 +68,14 @@ If you use the REST API for secret scanning, you can use the `Secret type` to re
6068
{% endnote %}
6169
{% endif %}
6270

63-
{% data reusables.secret-scanning.partner-secret-list-private-repo %}
71+
<!-- PRIVATE TABLE STARTS HERE -->
72+
<!-- This recreates the table in the now deleted data/reusables/secret-scanning/partner-secret-list-private-repo.md. -->
73+
Provider | Supported secret | Secret type
74+
--- | --- | ---
75+
{%- for entry in secretScanning.isPrivateWithGhas %}
76+
{{ entry.provider }} | {{ entry.supportedSecret }} | {{ entry.secretType }} |
77+
{%- endfor %}
78+
<!-- PRIVATE TABLE ENDS HERE -->
6479

6580
{% ifversion secret-scanning-push-protection %}
6681
## Supported secrets for push protection
@@ -71,7 +86,14 @@ If you use the REST API for secret scanning, you can use the `Secret type` to re
7186

7287
{% data reusables.secret-scanning.push-protection-older-tokens %} For more information about push protection limitations, see "[AUTOTITLE](/code-security/secret-scanning/troubleshooting-secret-scanning#push-protection-and-pattern-versions)."
7388

74-
{% data reusables.secret-scanning.secret-list-private-push-protection %}
89+
<!-- PUSH PROTECTION TABLE STARTS HERE -->
90+
<!-- This recreates the table in the now deleted data/reusables/secret-scanning/secret-list-private-push-protection.md -->
91+
Provider | Supported secret | Secret type
92+
--- | --- | ---
93+
{%- for entry in secretScanning.hasPushProtection %}
94+
{{ entry.provider }} | {{ entry.supportedSecret }} | {{ entry.secretType }}
95+
{%- endfor %}
96+
<!-- PRIVATE TABLE ENDS HERE -->
7597

7698
{% endif %}
7799
## Further reading

data/reusables/secret-scanning/partner-secret-list-private-repo.md

Lines changed: 0 additions & 241 deletions
This file was deleted.

data/reusables/secret-scanning/partner-secret-list-public-repo.md

Lines changed: 0 additions & 134 deletions
This file was deleted.

data/reusables/secret-scanning/secret-list-private-push-protection.md

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)