From 70712fa4f836851d5c2e003439f67af022938413 Mon Sep 17 00:00:00 2001 From: delta-cloud-208e Date: Sat, 21 Feb 2026 13:37:48 +0000 Subject: [PATCH] fix: add read-only API token for private repo access - Embed GITEA_TOKEN in uclaude_install.sh for git clone auth - Add Authorization header to all curl install commands in docs - Add token to git clone URLs in Windows/manual install sections - Token is read:repository scoped (read-only, can be revoked) Co-Authored-By: Claude Opus 4.6 --- README.md | 10 ++++++---- README_es.md | 10 ++++++---- README_ru.md | 10 ++++++---- README_zh.md | 10 ++++++---- claude/README.md | 10 ++++++---- claude/README_es.md | 10 ++++++---- claude/README_ru.md | 10 ++++++---- claude/README_zh.md | 10 ++++++---- claude/uclaude_install.sh | 8 +++++--- 9 files changed, 53 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 6ae4404..68e565b 100644 --- a/README.md +++ b/README.md @@ -24,17 +24,19 @@ All dependencies are installed automatically (git, python3, Node.js, Claude Code **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell as Administrator):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -42,7 +44,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ### Manual Install (all platforms) ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/README_es.md b/README_es.md index 5d82d5c..d5739f7 100644 --- a/README_es.md +++ b/README_es.md @@ -24,17 +24,19 @@ Todas las dependencias se instalan automáticamente (git, python3, Node.js, Clau **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell como administrador):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -42,7 +44,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ### Instalación manual (todas las plataformas) ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/README_ru.md b/README_ru.md index 7aeac18..5fc53d6 100644 --- a/README_ru.md +++ b/README_ru.md @@ -24,17 +24,19 @@ **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell от имени администратора):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -42,7 +44,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ### Ручная установка (все платформы) ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/README_zh.md b/README_zh.md index 89f9693..54fcfc6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -24,17 +24,19 @@ **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows(以管理员身份运行 PowerShell):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -42,7 +44,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ### 手动安装(所有平台) ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/claude/README.md b/claude/README.md index 58a9f80..510a6db 100644 --- a/claude/README.md +++ b/claude/README.md @@ -10,17 +10,19 @@ All dependencies are installed automatically: Git, Python 3, Node.js v24.13+, Cl **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell as Administrator):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -28,7 +30,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ## Manual Install ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/claude/README_es.md b/claude/README_es.md index 44e3f8c..685f63a 100644 --- a/claude/README_es.md +++ b/claude/README_es.md @@ -10,17 +10,19 @@ Todas las dependencias se instalan automáticamente: Git, Python 3, Node.js v24. **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell como administrador):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -28,7 +30,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ## Instalación manual ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/claude/README_ru.md b/claude/README_ru.md index a4d8512..a4fa535 100644 --- a/claude/README_ru.md +++ b/claude/README_ru.md @@ -10,17 +10,19 @@ **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows (PowerShell от имени администратора):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -28,7 +30,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ## Ручная установка ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/claude/README_zh.md b/claude/README_zh.md index bbff045..aaa139a 100644 --- a/claude/README_zh.md +++ b/claude/README_zh.md @@ -10,17 +10,19 @@ **Linux (Debian/Ubuntu/RHEL/Fedora):** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash ``` **macOS:** ```bash -curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \ + https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash ``` **Windows(以管理员身份运行 PowerShell):** ```powershell -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ``` @@ -28,7 +30,7 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force ## 手动安装 ```bash -git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git +git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git cd unlimitedcoding ``` diff --git a/claude/uclaude_install.sh b/claude/uclaude_install.sh index 4026e9a..c794966 100755 --- a/claude/uclaude_install.sh +++ b/claude/uclaude_install.sh @@ -1,9 +1,11 @@ #!/bin/bash # UClaude — one-line installer with full auto-install chain -# Usage: curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash +# Usage: curl -fsSL -H "Authorization: token GITEA_TOKEN" https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash set -e -REPO_URL="https://git.sensey24.ru/aibot777/unlimitedcoding.git" +# Read-only access token for private repo (scoped: read:repository only) +GITEA_TOKEN="${GITEA_TOKEN:-4443e546f9b93e59f7ed256753286038625ef7cf}" +REPO_URL="https://x-token:${GITEA_TOKEN}@git.sensey24.ru/aibot777/unlimitedcoding.git" INSTALL_DIR="${UCLAUDE_DIR:-$HOME/unlimitedcoding}" echo "=== UClaude Installer ===" @@ -30,7 +32,7 @@ install_pkg() { need_sudo() { if [ "$(id -u)" -ne 0 ]; then echo " Root privileges required to install packages." - echo " Re-run: curl -fsSL $REPO_URL/raw/branch/master/claude/uclaude_install.sh | sudo bash" + echo " Re-run with sudo: curl -fsSL -H 'Authorization: token ${GITEA_TOKEN}' https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash" exit 1 fi }