]> git.ipfire.org Git - thirdparty/git.git/commit
ci/lib: do not interpret escape sequences in `group ()` arguments
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Dec 2024 06:47:16 +0000 (07:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Dec 2024 07:57:21 +0000 (16:57 +0900)
commitd2ca12020ffb7ee7f0ee1154f394a994f045b5a9
treef68ad72e9f888cb7e87ae54eb1d8118892eb7773
parent33b06fa603958ba936ea7602c9b81d10ffcd08bb
ci/lib: do not interpret escape sequences in `group ()` arguments

We use printf to set up sections with GitLab CI, which requires us to
print a bunch of escape sequences via printf. The group name is
controlled by the user and is expanded directly into the formatting
string, which may cause problems in case the argument contains escape
sequences or formatting directives.

Fix this potential issue by using formatting directives to pass variable
data.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/lib.sh