From 10b648d6cfa8ac802f8507bcde05ad97a7b20638 Mon Sep 17 00:00:00 2001 From: Andrew Emelyaneko Date: Mon, 2 Nov 2026 15:03:27 +0300 Subject: [PATCH] fix(ci): checkout using CI_TOKEN in clone URL --- .gitea/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b436f24..39c95ad 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,11 +16,11 @@ jobs: CI_TOKEN: ${{ secrets.CI_TOKEN }} run: | git init -q - git remote add origin "http://10.8.0.52:8080/andrew/plagin_tokens.git" + git remote add origin "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git" if [ -n "${GITHUB_SHA:-}" ]; then - git -c http.extraheader="Authorization: token ${CI_TOKEN}" fetch -q --depth 1 origin "${GITHUB_SHA}" + git fetch -q --depth 1 origin "${GITHUB_SHA}" else - git -c http.extraheader="Authorization: token ${CI_TOKEN}" fetch -q --depth 1 origin main + git fetch -q --depth 1 origin main fi git checkout -q FETCH_HEAD - name: Install Bun