Add a pre-commit hook that blocks staged secrets with Betterleaks.
Add a Secret Scan workflow that scans full Git history on PRs and pushes to main.
Ignore .env.* files, while still allowing .env.example.
Add .betterleaksignore for one old Gitea token in the deleted .env.local, confirmed revoked (API returned 401).
Limit 03, 04 and 05 push triggers to their own stack and workflow file.
Why
A secret stays readable in Git history after its file is deleted. The hook stops it before commit, and CI covers commits that never ran the hook. The trigger change stops unrelated workflow additions from running pulumi up.
Preview
No stack code changed. Live previews with refresh, run before this PR:
k8s-infra: 29 unchanged
k8s-apps: 7 unchanged
monitoring: 5 unchanged
Merging runs 03, 04 and 05 once because their own workflow files changed.
## What changed
- Add a pre-commit hook that blocks staged secrets with Betterleaks.
- Add a `Secret Scan` workflow that scans full Git history on PRs and pushes to `main`.
- Ignore `.env.*` files, while still allowing `.env.example`.
- Add `.betterleaksignore` for one old Gitea token in the deleted `.env.local`, confirmed revoked (API returned 401).
- Limit `03`, `04` and `05` push triggers to their own stack and workflow file.
## Why
A secret stays readable in Git history after its file is deleted. The hook stops it before commit, and CI covers commits that never ran the hook. The trigger change stops unrelated workflow additions from running `pulumi up`.
## Preview
No stack code changed. Live previews with refresh, run before this PR:
- `k8s-infra`: 29 unchanged
- `k8s-apps`: 7 unchanged
- `monitoring`: 5 unchanged
Merging runs `03`, `04` and `05` once because their own workflow files changed.
Any file under .gitea/workflows triggered pulumi up on 03, 04 and 05, so
adding an unrelated workflow would deploy all three. PR previews still
watch the whole folder.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What changed
Secret Scanworkflow that scans full Git history on PRs and pushes tomain..env.*files, while still allowing.env.example..betterleaksignorefor one old Gitea token in the deleted.env.local, confirmed revoked (API returned 401).03,04and05push triggers to their own stack and workflow file.Why
A secret stays readable in Git history after its file is deleted. The hook stops it before commit, and CI covers commits that never ran the hook. The trigger change stops unrelated workflow additions from running
pulumi up.Preview
No stack code changed. Live previews with refresh, run before this PR:
k8s-infra: 29 unchangedk8s-apps: 7 unchangedmonitoring: 5 unchangedMerging runs
03,04and05once because their own workflow files changed.