Fix Artifacts session repo git auth - #213
Conversation
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR refactors Git authentication credential construction by introducing a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
🔎 Preview deployed: https://kody-pr-213.kentcdodds.workers.dev Worker: Mocks:
|
Summary
@cloudflare/shell'stokenoption on repo-session clone/pull/push pathsxwith the token secret as the passwordTesting
npx vitest run --project node-unit packages/worker/src/repo/artifacts.node.test.ts packages/worker/src/repo/repo-session-do.node.test.tsnpm run typecheckNotes
node_modules/@cloudflare/shell/dist/git/index.js) that passingtokentopush/pullrewrites auth tousername=<token>, password=x-oauth-basic, which is incompatible with Artifacts'x:<tokenSecret>auth shape and explains the 401s on session-repo pushes.CLOUDFLARE_ACCOUNT_ID,CLOUDFLARE_API_TOKEN, andCLOUDFLARE_API_BASE_URLare unset here.Summary by CodeRabbit
Release Notes
Tests
Refactor