ci/bin: Remove whitespace from token files
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Mon, 15 Aug 2022 20:07:21 +0000 (17:07 -0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Oct 2022 01:46:52 +0000 (01:46 +0000)
commitbe3c46964bd41801d44ee3ea668310ef1093df40
tree1767d780d61ee177fd1704740c51acd0222a35c9
parentd52d51b24dc6a477ea6459281d0b3b803d5b227c
ci/bin: Remove whitespace from token files

There was a security problem with some `gitlab_gql.py` scenarios because
of `\r` and `\n` in the token file, which interrupted the requests for
Gitlab endpoints.

Stripping the token file after reading the file content solves the
problem.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18066>
.gitlab-ci/bin/gitlab_gql.py