Skip to content

chore: secret-scan + dev-scratch hygiene - #266

Merged
ChrisonSimtian merged 2 commits into
mainfrom
chore/repo-hygiene-secret-scan
May 28, 2026
Merged

chore: secret-scan + dev-scratch hygiene#266
ChrisonSimtian merged 2 commits into
mainfrom
chore/repo-hygiene-secret-scan

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Summary

Three small repo-hygiene fixes after the post-merge secret audit on #265.

  • Gitleaks workflow alongside GitHub's built-in Secret Scanning (already enabled + push protection on). Any push or PR that introduces a string matching one of the ~150 default detectors fails CI.
  • deploy/erp-deploy.json Host: `10.10.107.175` → `erp-lxc`. The committed config now references the SSH-config alias the README already requires (line 27), so the homelab IP no longer ships in the public repo. Code-side already supports this — RemoteOptions.Host accepts an alias OR a raw hostname (resolves via `ssh -G`).
  • Gitignore `factory_state.json`. Planner scratch snapshot — carries a Steam ID and a local save path, never meant to be committed.

Test plan

  • Gitleaks CI job passes on the first run. If it trips on a known-safe pattern (e.g. the winget `InstallerSha256`), follow up with a `.gitleaks.toml` allowlist.
  • Confirm `./build.sh Up` still resolves the deploy target through `erp-lxc` after this merge (no behaviour change expected — the alias path was already supported and documented).

🤖 Generated with Claude Code

ChrisonSimtian and others added 2 commits May 28, 2026 15:15
- Add gitleaks workflow alongside GitHub's built-in Secret Scanning (already
  enabled). Pre-commit-shaped defence: any push or PR that introduces a
  string matching one of the ~150 default detectors will fail CI before
  it can merge.
- Swap the hardcoded LXC IP in deploy/erp-deploy.json for the existing
  `erp-lxc` SSH-config alias. Same data, but the homelab address no longer
  ships in the public repo. README already documents the alias as a
  prerequisite.
- Gitignore factory_state.json (planner scratch snapshot — carries a Steam
  ID and a local save path; never meant to be committed).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The alias was already listed as a prerequisite, but never shown. A fresh
dev box (e.g. macOS) hits a "Could not resolve hostname erp-lxc" footgun
without it, now that the IP itself is gone from the committed config.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ChrisonSimtian
ChrisonSimtian merged commit 7553b57 into main May 28, 2026
13 checks passed
@ChrisonSimtian
ChrisonSimtian deleted the chore/repo-hygiene-secret-scan branch May 28, 2026 03:27
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.

1 participant