Environment Variables
This page documents all environment variables used in the Typper Figma Plugin Deploy action.Required Variables
FIGMA_EMAIL
The email address used to log in to your Figma account.
FIGMA_PASSWORD
Your Figma account password.
FIGMA_TOTP_SECRET
The TOTP secret key used for two-factor authentication.
Setting Up Environment Variables
In GitHub Secrets
- Navigate to your repository settings
- Go to Secrets and Variables > Actions
- Click “New repository secret”
- Add each required variable:
In Workflow File
Reference the secrets in your workflow file:Environment Protection
Using Protected Environments
Configure environment protection rules:Environment-Specific Variables
Use different variables for different environments:Security Best Practices
-
Secret Management
- Never log secret values
- Rotate secrets regularly
- Use environment protection rules
-
Access Control
- Limit access to secrets
- Audit secret usage
- Use separate accounts for different environments
-
Monitoring
- Monitor secret usage
- Review workflow logs
- Set up alerts for unauthorized access
Troubleshooting
Common Issues
Authentication Failures
Authentication Failures
- Verify email and password are correct - Check TOTP secret format - Ensure secrets are properly configured
Secret Access Issues
Secret Access Issues
- Check repository permissions - Verify environment access - Review secret scope
Environment Problems
Environment Problems
- Validate environment configuration - Check protection rules - Verify deployment conditions