Skip to content

security: add free credential protection (Gitleaks) - #29

Merged
Avithegod2010 merged 3 commits into
stablefrom
security/gitleaks-protection
Nov 30, 2026
Merged

Avithegod2010 merged 3 commits into
stablefrom
security/gitleaks-protection

Conversation

@Avithegod2010

Copy link
Copy Markdown
Owner

Summary

Adds permanent, free credential protection. No paid GitHub features, no external
services, no credit card.

Change Purpose
.github/workflows/secret-scan.yml Gitleaks over the full git history (all branches and tags) and the working tree, on push, PR, weekly and on demand
.gitleaks.toml Upstream defaults plus project rules: Telegram bot tokens/�pi_hash/session strings, research-provider keys (Perplexity, Firecrawl, Exa, Tavily, Anthropic, Brave, Serper), Android keystore passwords and JKS blobs, SSH/ADB private keys, local-only config
.gitleaksignore Reviewed exceptions only — each line is a confirmed false positive with its reason recorded
.github/workflows/release-artifact-scan.yml + scripts/scan-release-artifacts.sh Unpacks published APK/AAB/ZIP assets and greps binaries for credential shapes before they reach users
.githooks/pre-commit + scripts/install-git-hooks.* + SECURITY-SCANNING.md Opt-in local scanning, actually installed and documented

Safety properties: pinned Gitleaks 8.30.1 with SHA-256 verification against the release checksums, permissions: contents: read, persist-credentials: false, all output redacted, no reports uploaded, no PR comments with findings.

Historical scan results

No findings in full history or working tree.

Verification

  • gitleaks git --log-opts="--all" → 0 findings
  • gitleaks dir . → 0 findings
  • Pre-commit hook confirmed to block a synthetic Telegram token (exit 1)

Deliberately not done

No history rewriting, no credential rotation, no force-push, no signing-identity
change, and no merge. Those need explicit approval.

Avithegod2010 and others added 3 commits December 1, 2026 01:49
Adds permanent, free secret scanning to this repository:

- Gitleaks in CI over the full git history (all branches and tags) and the
  working tree, using a pinned release verified against published checksums,
  read-only permissions and redacted output.
- Project-specific rules for Telegram credentials, research-provider API keys,
  Android signing material, SSH/ADB keys and local-only configuration.
- Reviewed exceptions in .gitleaksignore, one line per confirmed false
  positive, each with its reason.
- Release-artifact scanning for published APK/AAB/ZIP assets.
- Optional, documented pre-commit hook (scripts/install-git-hooks.sh).
checkout with fetch-depth: 0 already fetches every branch and tag, and the
extra `git fetch --all` failed on private repositories because
persist-credentials: false leaves no credentials behind. Adds a ref-coverage
report so the full-history guarantee stays visible in the logs.
@Avithegod2010
Avithegod2010 merged commit 72ee74d into stable Nov 30, 2026
4 checks passed
@Avithegod2010
Avithegod2010 deleted the security/gitleaks-protection branch November 30, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants