GitHub flagged that API keys were visible in this public repository. Treat them as compromised until you rotate them.
- Open Google Cloud Console → project bamapickme.
- APIs & Services → Credentials:
- Restrict or delete the exposed Maps key (used in
secrets.properties). - Restrict or delete the exposed Firebase Android key (was in
google-services.json).
- Restrict or delete the exposed Maps key (used in
- Create new keys with:
- Application restrictions (Android app + package
com.example.bamapickme, or HTTP referrers for web). - API restrictions (only Maps SDK, Firebase APIs you use).
- Application restrictions (Android app + package
- In Firebase Console → Project settings → Your apps → download a new
google-services.jsonintoapp/(file is gitignored). - Put the new Maps key in local
secrets.propertiesand GitHub secretGOOGLE_MAPS_API_KEY(never commit the file).
# After you have a new google-services.json locally:
$json = Get-Content app\google-services.json -Raw
gh secret set GOOGLE_SERVICES_JSON --repo adab-tech/bama-pickme --body $json
gh secret set GOOGLE_MAPS_API_KEY --repo adab-tech/bama-pickme- OpportunityFinder: Google Custom Search (
GOOGLE_API_KEY/GOOGLE_CSE_ID) — Google Cloud Credentials. - Hausa AI / Desktop
.env: Gemini API keys — Google AI Studio → revoke old, create new.
secrets.properties and app/google-services.json are gitignored going forward; use the .example templates only in git.