clone-guard: query the public commits API unauthenticated

The fine-grained-PAT Authorization header 401'd on the box (06:04 boot →
'API unreachable', fail-open). Public repo: no auth needed; 60/hr
unauthenticated limit is plenty for boot-time checks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-07-11 02:05:50 -04:00
parent 84be79133e
commit 15952b9b24
+2 -1
View File
@@ -69,8 +69,9 @@ cd "$DIR"
# API is unreachable — never blocks the boot forever).
for try in 1 2 3 4; do
LOCAL_SHA=$(git rev-parse HEAD)
# public repo — unauthenticated works and avoids fine-grained-PAT header
# quirks (the token'd call 401'd on the box, 2026-07-11 06:04 boot)
REMOTE_SHA=$(curl -sf --max-time 10 \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github.sha" \
https://api.github.com/repos/jaxperro/winning-wallet-finder/commits/main \
|| true)