From 37e77a9ce42b6d83fef8e2732f0b08635d07598e Mon Sep 17 00:00:00 2001 From: Marcia Ramos Date: Thu, 14 Mar 2019 11:03:29 +0000 Subject: Merge branch '56406-update-default-branch-and-sha-docs' into 'master' Update badge placeholder docs with privacy concerns Closes #56406 See merge request gitlab-org/gitlab-ce!26117 (cherry picked from commit d32a7c20ca1dc8a64494ac9e9e70f337e79d284b) 84577680 Update badge placeholder docs with privacy concerns --- doc/user/project/badges.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/user/project/badges.md b/doc/user/project/badges.md index 19eb95099ce..025f3af0af5 100644 --- a/doc/user/project/badges.md +++ b/doc/user/project/badges.md @@ -63,6 +63,12 @@ are available: - `%{commit_sha}`: ID of the most recent commit to the default branch of a project's repository +NOTE: **NOTE** +Placeholders allow badges to expose otherwise-private information, such as the +default branch or commit SHA when the project is configured to have a private +repository. This is by design, as badges are intended to be used publicly. Avoid +using these placeholders if the information is sensitive. + ## API You can also configure badges via the GitLab API. As in the settings, there is -- cgit v1.2.3