Exposed git credentials file
A .git-credentials file is publicly served.
Why it matters
A .git-credentials file is publicly served. Git stores credentials in it as full URLs with the username and password (or access token) embedded, in plain text, so anyone who reads this file gets working logins to the repositories and services listed in it. Remove the file, and rotate every credential it contains — assume each one is already compromised.
How ShipReady detects it
Origin-scoped: every path here is a property of the deployment, not of a document, so it is probed once against the seed. All probes run concurrently in one client, and each finding is gated on a content signature.
Detection is deterministic. ShipReady reports this only when it observes the condition directly, and prefers to miss a real problem over inventing one. Rule version 1.0.0.
How to fix it
This is the prompt ShipReady puts in your report — written to be pasted straight into Cursor, Claude Code, or whichever assistant built the app.
Your .git-credentials file is publicly served. Git stores credentials in it as full URLs with the username and password or access token embedded in plain text, so anyone who reads it gets working logins. Remove the file from the web root immediately, then rotate EVERY credential it lists — assume each is compromised (revoke and reissue personal access tokens, change passwords). This file only reaches production when a developer's working directory is deployed instead of build output, so audit what else shipped: check for .git/, .env, and other dotfiles, and fix the deploy to publish only build artifacts.
Frequently asked questions
- What does "Exposed git credentials file" mean?
- A .git-credentials file is publicly served.
- How serious is it?
- ShipReady rates this critical. Fix before launch. On its own, this is enough to compromise the application.
- How do I fix it?
- Paste the fix prompt on this page into Cursor, Claude Code or your AI editor. It is the same prompt ShipReady puts in your report.
- Can I check my own site?
- Yes — ShipReady scans up to ten pages of any public site for free and reports this alongside every other check. The free report lists every issue it finds and shows full evidence and a fix prompt for the critical and high-severity ones; medium and low findings are counted and unlock on Pro.
Related checks
Run this check on your site
ShipReady checks this and 193 other things across up to ten pages of your site, with an AI-ready fix for each. Free, no signup.