From 92be8deeb51104895efa8a667bc6169a579aaba3 Mon Sep 17 00:00:00 2001 From: Gaurav Ketkar <9720857+gaurav-ketkar@users.noreply.github.com> Date: Tue, 26 Jul 2022 23:49:17 -0700 Subject: [PATCH] Add note in the `Warning` to include the Support portal (#28107) --- .../working-with-advanced-formatting/attaching-files.md | 6 +----- .../repositories/anyone-can-view-anonymized-url.md | 5 +++++ data/reusables/support/submit-a-ticket.md | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 data/reusables/repositories/anyone-can-view-anonymized-url.md diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md b/content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md index e269e27e29..ad972bcb42 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md @@ -16,11 +16,7 @@ topics: - Pull requests --- -{% warning %} - -**Warning:** If you attach a file to a pull request or issue comment, anyone can view the anonymized URL without authentication, even if the pull request is in a private repository{% ifversion ghes %}, or if private mode is enabled{% endif %}. To keep sensitive media files private, serve them from a private network or server that requires authentication. {% ifversion fpt or ghec %}For more information on anonymized URLs see "[About anonymized URLs](/github/authenticating-to-github/about-anonymized-urls)".{% endif %} - -{% endwarning %} +{% data reusables.repositories.anyone-can-view-anonymized-url %} To attach a file to an issue or pull request conversation, drag and drop it into the comment box. Alternatively, you can click the bar at the bottom of the comment box to browse, select, and add a file from your computer. diff --git a/data/reusables/repositories/anyone-can-view-anonymized-url.md b/data/reusables/repositories/anyone-can-view-anonymized-url.md new file mode 100644 index 0000000000..df6bf85408 --- /dev/null +++ b/data/reusables/repositories/anyone-can-view-anonymized-url.md @@ -0,0 +1,5 @@ +{% warning %} + +**Warning:** If you attach a file to a pull request, issue comment, or ticket in the {% data variables.contact.support_portal %}, anyone can view the anonymized URL without authentication, even if the pull request is in a private repository{% ifversion ghes %}, or if private mode is enabled{% endif %}. To keep sensitive media files private, serve them from a private network or server that requires authentication. {% ifversion fpt or ghec %}For more information on anonymized URLs see "[About anonymized URLs](/github/authenticating-to-github/about-anonymized-urls)".{% endif %} + +{% endwarning %} diff --git a/data/reusables/support/submit-a-ticket.md b/data/reusables/support/submit-a-ticket.md index 996722fd36..6418a84693 100644 --- a/data/reusables/support/submit-a-ticket.md +++ b/data/reusables/support/submit-a-ticket.md @@ -36,6 +36,8 @@ - Steps to reproduce the issue - Any special circumstances surrounding the discovery of the issue (for example, the first occurrence or occurrence after a specific event, frequency of occurrence, business impact of the problem, and suggested urgency) - Exact wording of error messages +{% indented_data_reference reusables.repositories.anyone-can-view-anonymized-url spaces=3 %} + {%- ifversion ghes %} 1. Optionally, attach diagnostics files and other files by dragging and dropping, uploading, or pasting from the clipboard. {%- endif %}