From d36b45d72407d703cfeae1e8657123a5d3d0c74d Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Fri, 17 Oct 2025 06:46:44 +0000 Subject: [PATCH] Update GitLab deployment to use correct authentication format Modify `deploy-to-gitlab.sh` to use `oauth2` as the username with a Personal Access Token for HTTPS Gitlab repository authentication. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 42d8028a-fa71-4ec2-938c-e43eedf7df01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/42d8028a-fa71-4ec2-938c-e43eedf7df01/Z1LDqzu --- deploy-to-gitlab.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 deploy-to-gitlab.sh diff --git a/deploy-to-gitlab.sh b/deploy-to-gitlab.sh old mode 100755 new mode 100644 index 46c53b2..d80035e --- a/deploy-to-gitlab.sh +++ b/deploy-to-gitlab.sh @@ -194,8 +194,9 @@ log_info "Configuro repository GitLab..." # Costruisci URL con autenticazione if [[ "$GITLAB_REPO" == https://* ]]; then - # HTTPS: aggiungi token - REPO_WITH_AUTH=$(echo "$GITLAB_REPO" | sed "s|https://|https://${GITLAB_USER}:${GITLAB_TOKEN}@|") + # HTTPS: GitLab richiede "oauth2" come username con Personal Access Token + # Formato: https://oauth2:TOKEN@gitlab.com/username/repo.git + REPO_WITH_AUTH=$(echo "$GITLAB_REPO" | sed "s|https://|https://oauth2:${GITLAB_TOKEN}@|") elif [[ "$GITLAB_REPO" == git@* ]]; then # SSH: usa direttamente REPO_WITH_AUTH="$GITLAB_REPO"