From 08ed25ad8c2b90dc7b0e2c1e7fa37806f226e69a Mon Sep 17 00:00:00 2001 From: Nicolas Schweitzer Date: Tue, 8 Oct 2024 17:06:20 +0200 Subject: [PATCH] feat(secret): Prevent useless usage of Gitlab token --- .gitlab/e2e/e2e.yml | 1 - tasks/testwasher.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab/e2e/e2e.yml b/.gitlab/e2e/e2e.yml index d188b8aad30eb9..70735a11b550c8 100644 --- a/.gitlab/e2e/e2e.yml +++ b/.gitlab/e2e/e2e.yml @@ -557,7 +557,6 @@ generate-flakes-finder-pipeline: - qa_agent_ot tags: ["arch:amd64"] script: - - GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_FULL_API_TOKEN) || exit $?; export GITLAB_TOKEN - inv -e testwasher.generate-flake-finder-pipeline artifacts: paths: diff --git a/tasks/testwasher.py b/tasks/testwasher.py index 93e74d997ee503..23c9f5c756dcc8 100644 --- a/tasks/testwasher.py +++ b/tasks/testwasher.py @@ -134,7 +134,7 @@ def generate_flake_finder_pipeline(ctx, n=3): """ # Read gitlab config - config = resolve_gitlab_ci_configuration(ctx, ".gitlab-ci.yml") + config = resolve_gitlab_ci_configuration(ctx, ".gitlab-ci.yml", with_lint=False) # Lets keep only variables and jobs with flake finder variable kept_job = {}