Skip to content

Migrate auth from local cookie files to GitHub Secrets#6

Closed
admincoderii wants to merge 1 commit into
mainfrom
migrate-auth-to-github-secrets
Closed

Migrate auth from local cookie files to GitHub Secrets#6
admincoderii wants to merge 1 commit into
mainfrom
migrate-auth-to-github-secrets

Conversation

@admincoderii
Copy link
Copy Markdown
Collaborator

Summary

  • Remove setup.py — posting auth moved to ii-social-media-poster-internal
  • export-grok-cookies.py now pushes GROK_STORAGE_STATE to GitHub Secrets via gh CLI
  • Add ensureGrokStorageState() helper that auto-decodes from env var when auth/grok-storage-state.json doesn't exist on disk
  • Remove all local cookie file writes from posting scripts
  • CI workflow runs on self-hosted runner, Grok-only secrets
  • Remove cookies/ and auth/ directories (.gitkeep files)
  • Remove stale cookies/x_cookies.json fallback from Grok generation scripts
  • Add test-grok-auth.js integration test
  • Update docs (CLAUDE.md, README.md, INSTALLATION.md)

Test plan

  • npm run test:overlay passes
  • GROK_STORAGE_STATE=<b64> npm run test:grok:auth passes — verifies authenticated Grok session from env var
  • ensureGrokStorageState() correctly creates auth/grok-storage-state.json from env var when file missing
  • CI workflow runs on self-hosted runner with GROK_STORAGE_STATE secret

🤖 Generated with Claude Code

- Remove setup.py (posting auth belongs in ii-social-media-poster-internal)
- export-grok-cookies.py now pushes GROK_STORAGE_STATE to GitHub Secrets via gh CLI
- CI workflow runs on self-hosted runner, decodes GROK_STORAGE_STATE at runtime
- Add ensureGrokStorageState() helper that auto-decodes from env var when file missing
- Remove all local cookie file writes from posting scripts (now no-ops)
- Remove cookies/.gitkeep and auth/.gitkeep
- Add test-grok-auth.js to verify Grok session from secrets
- Update CLAUDE.md, README.md, INSTALLATION.md to reflect new auth flow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@admincoderii admincoderii deleted the migrate-auth-to-github-secrets branch April 10, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant