From 0e90603d945aead0dc774dcf96c43a85c3397283 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 2 Jul 2021 14:42:42 -0500 Subject: [PATCH 1/2] Only send beacons if the feature is not disabled (#20282) Fixes https://github.com/github/docs-internal/issues/20263 --- javascripts/events.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/javascripts/events.ts b/javascripts/events.ts index db0abac290..f29321d369 100644 --- a/javascripts/events.ts +++ b/javascripts/events.ts @@ -103,8 +103,13 @@ export function sendEvent({ type, version = '1.0.0', ...props }: SendEventProps) ...props, } - const blob = new Blob([JSON.stringify(body)], { type: 'application/json' }) - navigator.sendBeacon('/events', blob) + + // Only send the beacon if the feature is not disabled in the user's browser + if (navigator?.sendBeacon) { + const blob = new Blob([JSON.stringify(body)], { type: 'application/json' }) + navigator.sendBeacon('/events', blob) + } + return body } From c3a01a6925032b1b79054714885d15b287633b9a Mon Sep 17 00:00:00 2001 From: Grey Baker Date: Fri, 2 Jul 2021 15:58:50 -0400 Subject: [PATCH 2/2] Add Linear as both a public and private repo secret scanning partner (#20277) Co-authored-by: Meg Bird --- .../secret-scanning/partner-secret-list-private-repo.md | 4 ++++ .../secret-scanning/partner-secret-list-public-repo.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/data/reusables/secret-scanning/partner-secret-list-private-repo.md b/data/reusables/secret-scanning/partner-secret-list-private-repo.md index a9bc4ce131..bc92afddd8 100644 --- a/data/reusables/secret-scanning/partner-secret-list-private-repo.md +++ b/data/reusables/secret-scanning/partner-secret-list-private-repo.md @@ -105,6 +105,10 @@ Ionic | Ionic Personal Access Token | ionic_personal_access_token{% endif %} {%- ifversion fpt or ghes > 3.1 or ghae-next %} Ionic | Ionic Refresh Token | ionic_refresh_token{% endif %} {%- ifversion fpt or ghes > 3.1 or ghae-next %} +Linear | Linear API Key | linear_api_key{% endif %} +{%- ifversion fpt or ghes > 3.1 or ghae-next %} +Linear | Linear OAuth Access Token | linear_oauth_access_token{% endif %} +{%- ifversion fpt or ghes > 3.1 or ghae-next %} Lob | Lob Live API Key | lob_live_api_key{% endif %} {%- ifversion fpt or ghes > 3.1 or ghae-next %} Lob | Lob Test API Key | lob_test_api_key{% endif %} diff --git a/data/reusables/secret-scanning/partner-secret-list-public-repo.md b/data/reusables/secret-scanning/partner-secret-list-public-repo.md index a10fb0bfaa..23c3a8c0a7 100644 --- a/data/reusables/secret-scanning/partner-secret-list-public-repo.md +++ b/data/reusables/secret-scanning/partner-secret-list-public-repo.md @@ -44,6 +44,8 @@ Hashicorp Terraform | Terraform Cloud / Enterprise API Token Hubspot | Hubspot API Key Ionic | Ionic Personal Access Token Ionic | Ionic Refresh Token +Linear | Linear API Key +Linear | Linear OAuth Access Token Mailchimp | Mailchimp API Key Mailchimp | Mandrill API Key Mailgun | Mailgun API Key