export-session

command
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command export-session logs into GitHub via Playwright and exports the browser session (cookies + localStorage) as a Playwright storageState JSON file. This is used to generate pre-authenticated sessions for e2e tests that run in CI where password login is blocked.

Required environment variables:

  • E2E_GITHUB_USERNAME: GitHub username
  • E2E_GITHUB_PASSWORD: GitHub password (use `pass` or similar)

Optional environment variables:

  • E2E_GITHUB_TOTP_SECRET: Base32-encoded TOTP secret for 2FA accounts

Output is written to E2E_GITHUB_SESSION_FILE (default: .playwright/session.json).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL