How to Set Up GitHub for PairSec
Complete guide to creating a GitHub account and connecting it to Replit and Lovable for seamless PairSec integration
Why GitHub?
GitHub integration allows PairSec to securely scan your repositories for API keys, credentials, and security vulnerabilities. Both Replit and Lovable can connect to GitHub, making it the ideal platform for seamless development and security scanning.
Create a GitHub Account
If you don't have a GitHub account:
- Go to github.com
- Click the "Sign up" button in the top-right corner
- Enter your email address, create a password, and choose a username
- Verify your email address when prompted
- Complete the setup process and choose your plan (free is fine for most users)
Already have a GitHub account? Great! You can skip to step 2.
Connect Replit to GitHub
Enable GitHub Integration in Replit:
- Log into your Replit account
- Click on your profile icon in the top-right corner
- Select "Account" from the dropdown menu
- Navigate to the "Connected services" section
- Click "Connect" next to GitHub
- Authorize Replit to access your GitHub account
- Choose which repositories you want to give Replit access to (recommended: select specific repositories for security)
Import or Create Projects from GitHub:
- From your Replit dashboard, click "Create Repl"
- Select "Import from GitHub"
- Choose the repository you want to work with
- Your GitHub repository will now be synced with Replit
- Any changes you make in Replit can be pushed back to GitHub
Connect Lovable to GitHub
Set up GitHub Integration in Lovable:
- Log into your Lovable account
- Go to your project dashboard
- Click on "Settings" or "Integrations"
- Find the "GitHub" integration option
- Click "Connect to GitHub"
- Authorize Lovable to access your GitHub account
- Select the repositories you want to sync with Lovable
Deploy Projects to GitHub:
- In your Lovable project, look for the "Deploy" or "Export" option
- Choose "Deploy to GitHub"
- Select an existing repository or create a new one
- Your Lovable project will be pushed to GitHub automatically
- Future updates can be synced between Lovable and GitHub
Connect to PairSec
Now you're ready for PairSec:
- Sign in to PairSec using your GitHub account
- Grant PairSec permission to access your repositories
- Add your repositories to your PairSec dashboard
- Run security scans on your code to detect API keys, credentials, and vulnerabilities
- Review findings and get AI-powered fix suggestions
Security Best Practices
Do
- • Use environment variables for sensitive data
- • Review repository permissions carefully
- • Enable two-factor authentication on GitHub
- • Regularly scan your repositories with PairSec
- • Keep your repositories private when possible
Don't
- • Commit API keys or passwords to repositories
- • Grant unnecessary permissions to third-party apps
- • Share sensitive repositories publicly
- • Ignore security warnings or scan results
- • Use the same password across multiple platforms
Troubleshooting
Can't connect Replit to GitHub?
Make sure you're logged into both accounts and that you've authorized the connection. If you're still having issues, try disconnecting and reconnecting the integration.
Lovable not syncing with GitHub?
Check your repository permissions and ensure Lovable has access to the specific repository. You may need to reinstall the GitHub app for Lovable.
PairSec can't access my repositories?
During the GitHub OAuth flow, make sure you grant PairSec access to the repositories you want to scan. You can modify these permissions later in your GitHub settings under Applications.
Ready to secure your code?
Now that you have GitHub connected to both Replit and Lovable, you can start using PairSec to scan your repositories for security vulnerabilities.