Review repository access
List owners, collaborators and installed integrations. Confirm MFA and recovery procedures. Remove unused credentials and avoid sharing a single administrator login.
- Check GitHub application scopes.
- Review hosting and registrar roles.
- Identify who can approve production changes.
Inspect generated output
Build locally and inspect dist for environment files, internal notes, private customer data or source maps that you did not intend to publish. Use a secret-scanning tool in addition to manual inspection.
npm run build find dist -type f | sort
Review dependencies and browser scripts
Check dependency alerts and audit the scripts your visitors load. A vulnerability report needs investigation; a clean report is not proof of security. Remove unnecessary third-party integrations and test after updating.
Test the public endpoint
Check HTTPS, response headers, redirects and form behavior on a staging site. Verify that invalid inputs are rejected by the server-side handler and that logs do not store information you do not need.
Practice recovery
Retain a known good commit and an inventory of DNS records. Document how to restore a deployment and revoke access to an integration. If a credential was exposed, revoke or rotate it before relying on a rollback.
Common questions
Is a Lighthouse score a security audit?
No. It is a useful automated review of certain aspects of a page, not a complete security assessment.
Can I put a secret into an Astro environment variable?
Only if the implementation keeps it server-side. Inspect built output and avoid exposing privileged secrets through client-side code.
References
Provider interfaces and limits can change. Consult the original documentation before changing production settings.