Skip to content

An always-on second brain you talk to. Voice notes in Telegram → typed, linked knowledge in your Obsidian vault. Runs 24/7 on the Claude subscription you already have.

fix(setup): harden GitHub token storage — fine-grained scope, owner-only .git/config

smixsbdccb7ae14e7
diff --git a/setup.sh b/setup.sh
index dbaf741..3e51e54 100755
--- a/setup.sh
+++ b/setup.sh
@@ -299,8 +299,10 @@ configure_git_remote() {
echo ""
echo "Create a Personal Access Token on GitHub:"
- echo " 1. Go to: github.com > Settings > Developer settings > Personal access tokens > Tokens (classic)"
- echo " 2. Generate new token with 'repo' scope"
+ echo " 1. Go to: github.com > Settings > Developer settings > Personal access tokens > Fine-grained tokens"
+ echo " 2. Generate a token scoped to ONLY your agent-second-brain repo"
+ echo " with Contents: Read and write (don't grant anything wider —"
+ echo " the token is stored in .git/config on this server)"
echo " 3. Copy the token"
echo ""
@@ -319,6 +321,8 @@ configure_git_remote() {
fi
git remote set-url origin "https://[email protected]/$GITHUB_USER/agent-second-brain.git"
+ # The token lives in .git/config — keep that file owner-only.
+ chmod 600 .git/config
success "Git remote configured for push"
}