[igt-dev] [PATCH 08/11] ci: Setup JWT token to use with MinIO
Tomeu Vizoso
tomeu.vizoso at collabora.com
Wed Mar 9 07:42:39 UTC 2022
We will need it to authenticate with MinIO when uploading artifacts.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
.gitlab-ci.yml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7219cd0b3464..7476b3306845 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -295,6 +295,21 @@ test:verify-blacklists:
needs:
- build:tests-fedora
+default:
+ before_script:
+ - echo -e "\e[0Ksection_start:$(date +%s):unset_env_vars_section[collapsed=true]\r\e[0KUnsetting vulnerable environment variables"
+ - export CI_JOB_JWT_FILE="${CI_JOB_JWT_FILE:-$(mktemp)}"
+ - echo -n "${CI_JOB_JWT}" > "${CI_JOB_JWT_FILE}"
+ - unset CI_JOB_JWT
+ - echo -e "\e[0Ksection_end:$(date +%s):unset_env_vars_section\r\e[0K"
+
+ after_script:
+ - >
+ set +x
+
+ test -e "${CI_JOB_JWT_FILE}" &&
+ export CI_JOB_JWT="$(<${CI_JOB_JWT_FILE})" &&
+ rm "${CI_JOB_JWT_FILE}"
################### DEPLOY #########################
pages:
--
2.31.1
More information about the igt-dev
mailing list