Pages repository synchronization
Canonical direction
- GitLab
chantinlongxthrx/i-steam.github.io, branchmain, is the canonical website source. - GitHub
I-Steam/I-steam.github.io, branchmain, is the published mirror. - GitHub Actions performs the recurring GitLab-to-GitHub synchronization. GitLab CI runners are not required for this mirror.
- The workflow is stored at
.github/workflows/main.ymland runs on GitHubmainpushes, manual dispatch, and every 15 minutes.
Authentication
The GitLab repository is publicly readable, so the mirror workflow needs no GitLab token or GitLab write access.
The built-in GitHub Actions GITHUB_TOKEN is not sufficient: GitHub explicitly rejected the mirror push because that token cannot update workflow files under .github/workflows/ without the special workflows permission. The observed failure was:
refusing to allow a GitHub App to create or update workflow ... without workflows permission
The workflow therefore uses a dedicated fine-grained personal access token stored as the GitHub repository Actions secret MIRROR_TOKEN.
Create a fine-grained token for only I-Steam/I-steam.github.io with:
- Contents: Read and write
- Workflows: Read and write
The token owner must have write access to the repository. Add it under GitHub repository Settings → Secrets and variables → Actions → New repository secret, with the exact name MIRROR_TOKEN. Never put the token in this repository, workflow YAML, README, or message board.
The workflow checks for the secret before doing any mirror work. It checks out the public GitHub repository using the built-in read-only GITHUB_TOKEN, then configures MIRROR_TOKEN only for the final push. This avoids making public checkout depend on the personal access token while retaining the Workflows permission needed for syncing workflow files.
Reconciliation behavior
- Fetch GitHub
mainand public GitLabmain. - If both refs match, finish without a commit.
- If GitLab is ahead, fast-forward the GitHub mirror.
- If GitHub has mirror-only commits and GitLab has no newer commits, leave GitHub unchanged.
- If both branches have new commits, merge GitLab into GitHub. On content conflicts, prefer GitLab because it is canonical.
- Push to GitHub using a normal, non-force push. If a merge or push cannot be completed safely, stop and report the failure.
The workflow never pushes to GitLab, never force-pushes, and never requires GitLab CI compute minutes.
One-time activation
The workflow must exist in the GitHub repository at .github/workflows/main.yml for GitHub Actions to execute it. Copy the canonical file from the GitLab repository to that exact path on GitHub once, then add the MIRROR_TOKEN repository secret. Open the GitHub Actions tab and manually run GitLab to GitHub Pages Mirror.
Validation and limitations
- The canonical workflow and this guide are committed in GitLab.
- A previous run proved that checkout, public GitLab fetch, and divergent-history merge all succeed. The push failed specifically because the token lacked
workflowspermission. - A successful mirror push with
MIRROR_TOKENis not yet verified. - A public GitLab repository is assumed. If its visibility changes, provide a read-only GitLab credential and adjust the fetch step.
- Conflicting files prefer GitLab; review future changes to this policy before adding GitHub-only website content.
Revalidation — 2026-11-10
The latest available GitHub Actions mirror run inspected during this review was:
- Run: https://github.com/I-Steam/I-steam.github.io/actions/runs/42434495593
- Run ID:
42434495593 - Job ID:
128590344406 - Commit on GitHub:
428a372743406a4e3f9c29ae5bb82ced4ac972fe - Result: failed at Push mirror update to GitHub.
- Checkout, GitLab fetch, and reconciliation/merge all succeeded.
- The exact rejection remains:
refusing to allow a GitHub App to create or update workflow '.github/workflows/main.yml' without 'workflows' permission.
The GitHub branch still contains the old workflow (blob SHA 7f79c8b7be522b5bcd98de01becf4f102ec3f778), not this canonical token-authenticated workflow. A direct GitHub file update attempt returned HTTP 403 Resource not accessible by integration. Therefore the GitLab-side change is prepared and committed, but GitHub activation and the secret are outstanding.
Local validation performed
- YAML parsing confirmed the quoted
"on"key and all three triggers (push,workflow_dispatch,schedule). - Embedded Bash scripts passed
bash -nsyntax validation. - A temporary local Git test repository exercised the three reconciliation cases:
- GitLab-ahead fast-forward: passed.
- GitHub-ahead preservation: passed.
- Diverged histories with a conflicting file: passed, with GitLab's content winning.
- These are logic/syntax tests, not a successful GitHub-hosted mirror run.
Remaining activation requirement
A repository owner with sufficient GitHub access must replace .github/workflows/main.yml with the canonical file and add the MIRROR_TOKEN Actions secret. The token must be scoped to this repository with Contents: Read and write and Workflows: Read and write. Afterward, manually run the workflow and verify the push step and branch contents. Do not mark synchronization fully operational before that end-to-end test passes.
Xthrx AltSource catalogue
- The source manifest is
tools/xthrx-alt-source/sources.jsonand currently contains 125 unique HTTP(S) candidate feeds. tools/xthrx-alt-source/build_xthrx_repo.pyfetches each candidate independently, accepts supported AltStore / SideStore / PAL JSON layouts, normalises version metadata, and deduplicates by exact bundle identifier.tools/xthrx-alt-source/test_build_xthrx_repo.pyprovides offline regression coverage. The updater runs these tests before making upstream requests.- GitHub Actions workflow:
.github/workflows/update-xthrx-alt-source.yml; it runs every six hours, on relevant source changes, or manually. - Generated catalogue:
altsource/Xthrx's repo.json. - Feed health report:
altsource/xthrx-source-report.json. - Public source URL after the GitHub Pages deployment and first successful catalogue run: https://akatsubaki-emu.github.io/altsource/Xthrx%27s%20repo.json
The 125 configured URLs are candidates, not a claim that all are online or compatible. The report records per-feed success/failure and valid/rejected app counts. If no compatible apps are found, the builder exits non-zero and does not replace the published catalogue with an empty file. SideStore-required version sizes are populated with the upstream size or zero when omitted.
The source generator and Pages files are committed in the GitLab canonical repository. The corresponding GitHub mirror must contain the same files before the GitHub Actions updater can run. A successful unit-test run does not prove that any particular upstream feed is live; the first hosted run is required to measure actual feed health.
AltSource workflow failure investigation — 2026-11-21
GitHub Actions run https://github.com/Akatsubaki-Emu/Akatsubaki-Emu.github.io/actions/runs/44933354834 failed at the Python setup step. The exact error was:
`No file ... matched to [**/requirements.txt or **/pyproject.toml]`
Cause: `actions/setup-python` had `cache: pip`, which requires a dependency manifest. This repository installs the single runtime dependency directly in the workflow and intentionally has no requirements.txt or pyproject.toml. The cache option has been removed; the install step now runs `pip check` after installing requests.
The separate mirror run https://github.com/Akatsubaki-Emu/Akatsubaki-Emu.github.io/actions/runs/44933354820 failed during checkout with `could not read Username for 'https://github.com': terminal prompts disabled`. The workflow had passed a personal token to checkout, but the checkout could not authenticate. The workflow now uses the built-in GITHUB_TOKEN for reading the public mirror and configures MIRROR_TOKEN as the GitHub HTTP extraheader only for the final push. The secret must still be a valid fine-grained token with repository Contents and Workflows read/write access.
Fix commits
- AltSource setup-python cache fix: https://gitlab.com/chantinlongx/i-steam.github.io/-/commit/12a7af88c2d02412a644b9ddfa29fc00eead3539
- Mirror checkout/push authentication change: https://gitlab.com/chantinlongx/i-steam.github.io/-/commit/71037dfaea631f6e263ac63b631e24a632dae843
- Correct GitHub Actions expression escaping in mirror workflow: see the subsequent mirror workflow fix commit on GitLab main.
These changes are committed to the GitLab canonical website repository. A subsequent GitHub Actions run is required to verify mirror authentication, the AltSource tests, live feed retrieval and catalogue publication. Do not treat the fix as end-to-end verified until both workflows pass.
Latest verified status — 2026-11-21
The previously outstanding GitHub activation and hosted validation have now completed.
- GitLab canonical website commit: 4c9f1ec8c68e63d820174da8b17682c2504f73dc.
- GitLab-to-GitHub mirror run: https://github.com/Akatsubaki-Emu/Akatsubaki-Emu.github.io/actions/runs/44935002476 — success; both refs matched at the canonical commit.
- AltSource updater run: https://github.com/Akatsubaki-Emu/Akatsubaki-Emu.github.io/actions/runs/44935002487 — success; six offline tests passed, all 125 candidate feeds were checked, and the catalogue plus report were committed.
- Pages build/deployment run: https://github.com/Akatsubaki-Emu/Akatsubaki-Emu.github.io/actions/runs/44935050937 — success, including the deploy step.
- Generated GitHub commit: c5e8128885b473cbae0b18db602c8c7794fc9b46.
- Latest feed report: 125 configured, 90 successful, 35 failed, 3,726 unique apps.
- The first generated catalogue was 87,350,472 bytes. The normaliser was tightened to whitelist supported metadata, discard arbitrary embedded payloads, cap descriptions, and retain at most 20 versions per app. The regenerated catalogue is 10,829,448 bytes.
- The Pages build and deploy workflow succeeded, and both generated files are present on GitHub main. The public Pages URL was not independently fetched by the web reader, so direct external HTTP retrieval is not separately claimed.
The original Python setup failure and mirror checkout failure are resolved. The mirror is synchronised, the updater and its six tests pass, and the latest Pages deployment completed successfully. The 35 failed feed candidates remain listed in the report with per-feed errors; they are not silently counted as working.