Code Conductor uses different token strategies depending on the context:
When you install Code Conductor in your project:
- Default: Uses GitHub Actions' built-in
${{ github.token }} - No setup required - Works out of the box!
- Limitations: Can't trigger other workflows, rate limited
- Optional upgrade: Create a PAT for enhanced features (see below)
Important: The workflows generated by setup.py are configured to use github.token by default. This is the recommended approach for most users.
The ryanmac/code-conductor repository itself uses:
- Token name:
CONDUCTOR_GITHUB_TOKEN - Type: Personal Access Token with enhanced permissions
- Purpose: Managing Code Conductor's own development
When you install Code Conductor in your project using:
bash <(curl -fsSL https://raw.githubusercontent.com/ryanmac/code-conductor/main/conductor-init.sh)The generated workflows will use GitHub's built-in token, which provides:
- ✅ Read/write access to issues, pull requests, and code
- ✅ Ability to create labels and manage project boards
- ✅ 1,000 API requests per hour per repository
You only need a PAT if you want:
- Higher API rate limits (5,000/hour instead of 1,000/hour)
- Ability to trigger other workflows
- Cross-repository access
- Access to private repositories
- Go to https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Give it a descriptive name like "Code Conductor Bot"
- Select the required scopes:
- ✅ repo (all sub-permissions)
- ✅ workflow (if triggering other workflows)
- Set expiration (90 days recommended)
- Click "Generate token" and copy it
- Go to your repository's Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
CONDUCTOR_GITHUB_TOKEN(or any name you prefer) - Value: Paste your token
- Click "Add secret"
Update the workflows in .github/workflows/ to use your token:
env:
GH_TOKEN: ${{ secrets.CONDUCTOR_GITHUB_TOKEN }}- Use built-in token when possible - Simpler and more secure
- Never commit tokens - Always use secrets
- Rotate PATs regularly - Set calendar reminders
- Use least privilege - Only grant needed permissions
- Revoke if compromised - Act immediately
- Using built-in token: Check workflow permissions in Settings → Actions
- Using PAT: Token may be expired, regenerate and update secret
- Built-in token has limited permissions
- Consider creating a PAT with
reposcope
- Built-in token: 1,000 requests/hour limit hit
- Solution: Create a PAT for 5,000 requests/hour
If you're contributing to the Code Conductor project itself:
- This repository uses
CONDUCTOR_GITHUB_TOKEN - It's a PAT with enhanced permissions for managing development
- Regular users don't need to worry about this!
- Most users: No token setup needed, built-in token works great
- Power users: Create a PAT for enhanced features
- Maintainers: Use CONDUCTOR_GITHUB_TOKEN for development
The scripts work with any token setup - they use whatever environment they're given!