CybeDefend Configuration
| Field | Description | Example |
|---|---|---|
| GitHub Username | Your GitHub username or organization | myorg |
| Personal Access Token | GitHub PAT with read:packages scope | ghp_xxxxxxxxxxxx |
| Description | Optional description for the registry | Production GitHub Registry |
How to Create a Personal Access Token (PAT) in GitHub
1
Access GitHub Settings
Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
2
Generate New Token
Click Generate new token and select Generate new token (classic)
3
Select Scopes
Select the required scopes:
read:packages(read access)- or
write:packages(read/write access)
4
Copy Token
Copy the generated token and paste it in CybeDefend
Security Best Practices
Use Fine-Grained Tokens
Prefer fine-grained PATs over classic tokens when possible for better security.
Minimal Scopes
Only grant
read:packages scope for scanning operations.Set Expiration
Always set an expiration date for your tokens to limit exposure.
Rotate Tokens Regularly
Change your access tokens periodically to minimize security risks.
Troubleshooting
Authentication Failed
Authentication Failed
- Verify the PAT has
read:packagesscope - Check if the token has expired
- Ensure the username matches the token owner
Permission Denied
Permission Denied
- Verify you have access to the repository
- Check package visibility settings
- Ensure organization membership for private packages