Chore: Add secret scan and lint checks #1

Merged
kasun merged 2 commits from chore/add-repo-guardrails into main 2026-11-23 05:13:37 +01:00

What changed

  • Replaces the generated Python .gitignore with focused rules. The template ignored folders such as downloads/, build/ and env/, which could hide real stacks, and it missed vault files and private keys.
  • Adds a Checks workflow that runs on PRs and on pushes to main:
    • Secret Scan: Betterleaks over the full git history, pinned by version and checksum.
    • Lint: yamllint --strict and ansible-lint on the production profile, using Python 3.14.
  • Pins the lint tools in requirements-dev.txt.

Why

This repo will deploy to live hosts, so the guardrails go in before any automation does. These jobs only read code and need no SSH access or secrets.

Verification

Run locally on Python 3.12: yamllint and ansible-lint passed, and Betterleaks found no leaks in the history at that point. Python 3.14 is first tested by this PR's CI run.

Deployment impact

None. Nothing in this PR touches a host.

## What changed - Replaces the generated Python `.gitignore` with focused rules. The template ignored folders such as `downloads/`, `build/` and `env/`, which could hide real stacks, and it missed vault files and private keys. - Adds a `Checks` workflow that runs on PRs and on pushes to `main`: - **Secret Scan:** Betterleaks over the full git history, pinned by version and checksum. - **Lint:** `yamllint --strict` and `ansible-lint` on the `production` profile, using Python 3.14. - Pins the lint tools in `requirements-dev.txt`. ## Why This repo will deploy to live hosts, so the guardrails go in before any automation does. These jobs only read code and need no SSH access or secrets. ## Verification Run locally on Python 3.12: `yamllint` and `ansible-lint` passed, and Betterleaks found no leaks in the history at that point. Python 3.14 is first tested by this PR's CI run. ## Deployment impact None. Nothing in this PR touches a host.
claude-bot Bot added 2 commits 2026-11-23 05:09:00 +01:00
chore(ci): add secret scan and lint checks
Checks / Secret Scan (pull_request) Successful in 5s
Checks / Lint (pull_request) Successful in 1m5s
8532e38151
kasun merged commit b56ea412de into main 2026-11-23 05:13:37 +01:00
kasun deleted branch chore/add-repo-guardrails 2026-11-25 20:22:31 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-ansible#1