Add authenticated GitHub PAT for Forgejo mirror sync #269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/mirror-github-pat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
--dry-run[mirror]section withDEFAULT_INTERVAL = 8handMIN_INTERVAL = 10m(bakes in the defaults for visibility)mirror-update-patstask, and the full 20-day PAT rotation procedureContext
GitHub tightened unauthenticated rate limits for git clone/fetch in May 2025. With 23 GitHub mirrors syncing every 8 hours, authenticated fetches avoid throttling. The PAT is stored in 1Password (
Forgejo Secrets→github-mirror-pat) and has been applied to all existing mirrors.Deployment and Testing
mirror-update-patsdry-run verified (23 mirrors detected)mirror-update-patsapplied to all 23 GitHub mirrors on indri--tags forgejoto apply[mirror]config@ -0,0 +103,4 @@- **Name:** `forgejo-mirror-sync` (or similar, include the date for tracking)- **Expiration:** 30 days- **Repository access:** Public repositories (read-only)- **Permissions:** Contents → Read-onlyActually I just left the permissions empty. There was no "Contents" permission I could find. Is this correct?
@ -0,0 +1,69 @@#!/usr/bin/env bashI'm pretty sure there's a card somewhere that lists mise tasks, update that please