From 551db6da0d73e17d0ce828091264be771d0fcb18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire?= <gregoire.kubler@proton.me>
Date: Tue, 3 Dec 2024 10:43:42 +0100
Subject: [PATCH] fix : set username to __token__ to enforce token
 authentifaction.

For context check https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5378#note_2932378
---
 .gitlab/ci/release/template.gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.gitlab/ci/release/template.gitlab-ci.yml b/.gitlab/ci/release/template.gitlab-ci.yml
index 21257d0..1f3dd48 100644
--- a/.gitlab/ci/release/template.gitlab-ci.yml
+++ b/.gitlab/ci/release/template.gitlab-ci.yml
@@ -32,9 +32,9 @@ include:
         VAULT_ID_TOKEN:
           aud: https://gitlab.eclipse.org
   secrets:
-    TWINE_USERNAME:
-      vault: $EF_PROJECT_ID/pypi.org/username@cbi
-      file: false
+    # TWINE_USERNAME:
+    #   vault: $EF_PROJECT_ID/pypi.org/username@cbi
+    #   file: false
     TWINE_PASSWORD:
       vault: $EF_PROJECT_ID/pypi.org/api-token@cbi
       file: false
@@ -46,7 +46,8 @@ include:
 
   script:
     - export WHEELS=$(find wheelhouse/ -name "$CI_PROJECT_NAME*.whl")
-    - echo "WHEELS FOUND :$WHEELS"
+    - echo "WHEELS FOUND:\ $WHEELS"
+    - export TWINE_USERNAME="__token__"
     - echo $TWINE_USERNAME
     - echo $TWINE_PASSWORD
     - python3 -m twine upload --verbose $WHEELS
-- 
GitLab