From 07d48698896261d37df16e742a065b44834f7a49 Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Thu, 11 Jul 2019 11:21:45 +0100 Subject: [PATCH] Skip GitLab CI environment variables that contain secrets `CI_JOB_TOKEN`, `CI_REPOSITORY_URL` and `CI_REGISTRY_PASSWORD` are masked (the value is replaced by `[MASKED]`) by GitLab when included in the output, so it's not very useful to include them. --- pytest_metadata/ci/gitlab_ci.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pytest_metadata/ci/gitlab_ci.py b/pytest_metadata/ci/gitlab_ci.py index 4ef8272..d192a28 100644 --- a/pytest_metadata/ci/gitlab_ci.py +++ b/pytest_metadata/ci/gitlab_ci.py @@ -15,8 +15,6 @@ "CI_JOB_MANUAL", "CI_JOB_NAME", "CI_JOB_STAGE", - "CI_JOB_TOKEN", - "CI_REPOSITORY_URL", "CI_RUNNER_DESCRIPTION", "CI_RUNNER_ID", "CI_RUNNER_TAGS", @@ -30,7 +28,6 @@ "CI_PROJECT_URL", "CI_REGISTRY", "CI_REGISTRY_IMAGE", - "CI_REGISTRY_PASSWORD", "CI_REGISTRY_USER", "CI_SERVER", "CI_SERVER_NAME",