fix(ci): avoid persisted credentials for public submodules#2535
Conversation
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughWorkflow-level ChangesCI workflow updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@graycyrus @senamakel Ready for review. This PR is green on
The new run confirms the fix path: Build Tauri, Test, E2E, and Coverage all passed with the workflow changes, and there are no unresolved review threads. |
|
Status update: this CI infrastructure fix is now the blocker for several otherwise-ready PRs. The current failures on #2533/#2544 come from checkout/fetch or vendored submodule auth before tests run, and #2534's E2E failure stops at GHCR job-container login with no secrets. This PR is green and CodeRabbit-approved, so merging it first should unblock reruns for those PRs without duplicating workflow changes into each feature branch. |
|
Updated this branch with latest upstream/main to satisfy the up-to-date branch-protection path. The PR diff is still limited to the CI workflow credential/package-read changes, and checks are rerunning now. |
|
@graycyrus @senamakel Required checks are all green now, and there are no unresolved review threads. The remaining non-required Windows secrets ACL job is marked cancelled after successful checkout/submodule setup and passing test output in the log. Please review/merge this CI fix first so #2534/#2544 can be updated and rerun on the fixed workflows. |
Summary
packages: readto PR-facing workflows that use the shared GHCR CI image.Problem
actions/checkout@v5andsubmodules: recursive.https://github.com/*.tinyhumansai/tauri-cefandtinyhumansai/tauri-plugin-notificationfailed before build/test code ran withfatal: could not read Username for 'https://github.com': terminal prompts disabled.ghcr.ioto pullghcr.io/tinyhumansai/openhuman_ci:latestfrom a fork PR token with no package scope.Solution
persist-credentials: falseon recursive submodule checkout steps in PR-facing build/test workflows.packages: readto workflows that use the shared GHCR CI image.git ls-remoteworks for both public submodules; a bad GitHub extraheader reproduces failure exit 128.Submission Checklist
diff-cover) meet the gate enforced by.github/workflows/coverage.yml. N/A: workflow-only change; CI gate will still run.docs/TEST-COVERAGE-MATRIX.mdreflect this change. N/A: CI infrastructure only.## Related. N/A: no feature ID changed.docs/RELEASE-MANUAL-SMOKE.md). N/A: PR CI checkout only; release workflows left unchanged.Closes #NNNin the## Relatedsection. N/A: no dedicated issue exists; discovered while babysitting PR CI.Impact
ghcr.io/tinyhumansai/openhuman_ci:*receive explicit package read permission.Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
fix/ci-public-submodule-checkout88ae50ffValidation Run
pnpm --filter openhuman-app format:check— N/A: no app/source formatting changed.pnpm typecheck— N/A: no TypeScript changed.git ls-remoteanonymous vs bad-extraheader repro fortinyhumansai/tauri-cefandtinyhumansai/tauri-plugin-notification;docker manifest inspect ghcr.io/tinyhumansai/openhuman_ci:latestValidation Blocked
command:N/Aerror:N/Aimpact:N/ABehavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit