A simple bash script to demonstrate GitHub token format validation.
This script provides a basic demonstration of GitHub token format validation. It checks if a token follows the standard GitHub token format (starting with 'ghp_' or 'github_pat_').
- Validates GitHub token format
- Provides clear visual feedback on token validity
- Demonstrates basic token handling best practices
-
Make the script executable:
chmod +x connector/main.sh
-
Run the script:
./connector/main.sh
- Never store GitHub tokens in scripts or version control
- Use environment variables or secure secret management systems
- Follow GitHub's security best practices for token management
- Rotate tokens regularly
- Use the principle of least privilege when creating tokens
- Bash shell
- No additional dependencies required
This project is for educational purposes only.