Skip to content

Tags: actions/actions-sync

Tags

v202606241747

Toggle v202606241747's commit message
Release v202606241747

v202606231958

Toggle v202606231958's commit message
Release v202606231958

v202606231917

Toggle v202606231917's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add GitHub App installation token authentication for push/sync (#…

…177)

* feat: add GitHub App authentication for push/sync

Add a --github-app-auth flag so push/sync can authenticate with a GitHub App installation token (ghs_*). App tokens have no user context, so the GET /user call is skipped and repositories are created under the owner from the destination repo name.

Refs github/actions-persistence#1182

* test: cover getOrCreateGitHubRepo for App and PAT auth paths

Add unit tests for getOrCreateGitHubRepo (previously untested) covering GitHub App auth and PAT regression paths: existing repo, create-under-user vs org, GHAE internal visibility (from both user and repo responses), create-failure wrapping, repo-get errors, org-already-exists fallback, and nil-login handling.

* test: extract shared mocks and fakes into testutils_test.go

* refactor: use x-access-token as git auth username for push

* docs: clarify --github-app-auth requires an org owner

* fix: validate --github-app-auth is incompatible with impersonation

- Error early when --github-app-auth and --actions-admin-user are both set, since App installation tokens cannot impersonate (no user/site-admin context).

- Correct the README App permission name to 'Metadata: Read-only'.

v202601271539

Toggle v202601271539's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add --batch-size flag to push refs in batches (#173)

* feat: add --batch-size flag to push refs in batches

Add support for pushing refs in smaller batches to avoid server-side
limits and timeouts when syncing large repositories with many tags/branches.

- Add --batch-size flag (default 0 = no batching, original behavior)
- Add References() method to GitRepository interface
- Implement collectRefs() and pushRefsInBatches() helpers
- Add MinBatchSize validation (must be 0 or >= 10)

This addresses issues where repositories with 1000+ refs fail to sync
to GHES with 'command error on refs/heads/<branch>: failed' errors.

* test: add tests for batch-size flag and push batching functionality

* fix: pin tool dependencies to versions compatible with Go 1.21

* ci: fix docker compose v2 syntax and update setup-ruby action

* refactor: address PR review feedback

- Remove unused RefInfo struct from git.go
- Remove redundant pushedAny variable tracking in pushRefsInBatches
- Remove incomplete TestPushRefsInBatches_PartialUpToDate test (already covered by existing test case)

* docs: add --batch-size flag to README

v202404231422

Toggle v202404231422's commit message
Release a new version

v202404051308

Toggle v202404051308's commit message
Release a new version

v202401161759

Toggle v202401161759's commit message
Go 1.21 update

v202303192358

Toggle v202303192358's commit message
Release a new version

v202211070205

Toggle v202211070205's commit message
Release a new version

v202209261606

Toggle v202209261606's commit message
Release a new version