fix: use isolated read-only token for install commands
- Replace old aibot777 token with new scoped token (read:repository) - Simplify curl commands: use ?token= query param instead of -H header - Token embedded in uclaude_install.sh for git clone auth - All repos remain private; token only allows reading Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
# UClaude — one-line installer with full auto-install chain
|
||||
# Usage: curl -fsSL -H "Authorization: token GITEA_TOKEN" https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash
|
||||
# Usage: curl -fsSL 'https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh?token=GITEA_TOKEN' | sudo bash
|
||||
set -e
|
||||
|
||||
# Read-only access token for private repo (scoped: read:repository only)
|
||||
GITEA_TOKEN="${GITEA_TOKEN:-4443e546f9b93e59f7ed256753286038625ef7cf}"
|
||||
GITEA_TOKEN="${GITEA_TOKEN:-cadffcb0a6a3be728ac1ff619bb40c86588f6837}"
|
||||
REPO_URL="https://x-token:${GITEA_TOKEN}@git.sensey24.ru/aibot777/unlimitedcoding.git"
|
||||
INSTALL_DIR="${UCLAUDE_DIR:-$HOME/unlimitedcoding}"
|
||||
|
||||
@@ -32,7 +32,7 @@ install_pkg() {
|
||||
need_sudo() {
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
echo " Root privileges required to install packages."
|
||||
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"
|
||||
echo " Re-run with sudo: curl -fsSL 'https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh?token=${GITEA_TOKEN}' | sudo bash"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user