Add secret scanning, pre-commit guardrails, and security hardening#6
Draft
Add secret scanning, pre-commit guardrails, and security hardening#6
Conversation
…ITY.md, README update, and redact Cloudflare account ID Co-authored-by: aegntic <195048582+aegntic@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
cldcde | 88815e7 | Mar 01 2026, 10:50 AM |
Copilot
AI
changed the title
[WIP] Implement repo-wide protections for sensitive information
Add secret scanning, pre-commit guardrails, and security hardening
Mar 1, 2026
aegntic
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevents accidental commits of secrets and internal identifiers. Adds automated scanning in CI and local developer hooks. Redacts an existing Cloudflare account ID found in docs.
Changes
Remediation
PORKBUN-DNS.md: Replacedhttps://dash.cloudflare.com/<account-id>with the generic base URL — the account ID was the only concrete sensitive identifier found in the working treeCI Secret Scanning
.github/workflows/gitleaks.yml: Runsgitleaks/gitleaks-action@v2on all push/PR events; fails if any leak is detected.gitleaks.toml: Extends the default ruleset; allowlistsyour_*/<PLACEHOLDER>patterns and the.env.examplefiles to suppress expected false positivesLocal Guardrails
.pre-commit-config.yaml: Gitleaks hook (pinned tov8.21.2) — developers enable withpre-commit install.gitignoreHardeningAdded patterns for:
*.key,*.p12,*.pfx,*_rsa,*_ed25519, etc.*.tfstate,.terraform/,terraform.tfvars.env.local,.env.production,.env.staging, etc.Documentation
SECURITY.md(new): Private vulnerability reporting instructions, secrets management policy (GitHub Actions Secrets /wrangler secret put), pre-commit setup guideREADME.md: Added security section summarising the policy and linking toSECURITY.mdOriginal prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.