Compare commits

...

5 Commits

Author SHA1 Message Date
e8f2ecd2ea fix(ci): use script file instead of inline Python in playbook-schema
Some checks failed
PR Checklist / pr-checklist (pull_request) Successful in 1m8s
Validate Config / YAML Lint (pull_request) Failing after 7s
Validate Config / JSON Validate (pull_request) Successful in 7s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 7s
Validate Config / Shell Script Lint (pull_request) Successful in 20s
Validate Config / Cron Syntax Check (pull_request) Successful in 5s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 5s
Validate Config / Playbook Schema Validation (pull_request) Successful in 9s
Architecture Lint / Lint Repository (pull_request) Failing after 7s
Architecture Lint / Linter Tests (pull_request) Successful in 9s
Inline Python code with f-strings and set literals caused YAML parsing
errors. Replaced with reference to scripts/validate_playbook_schema.py.

Refs: #461
2026-04-11 00:21:09 +00:00
941cb25cbe fix(ci): extract inline Python to script for validate-config workflow
The inline Python in playbook-schema job had YAML parsing issues.
Extracted to scripts/validate_playbook_schema.py.

Refs: #461
2026-04-11 00:21:03 +00:00
05e9c1bf51 security: .gitignore secret cleanup
Some checks failed
Architecture Lint / Linter Tests (push) Successful in 9s
Architecture Lint / Lint Repository (push) Failing after 9s
2026-04-10 23:38:39 +00:00
186d5f8056 Merge pull request 'Backup: all 35 cron jobs paused, state preserved' (#457) from burn/cron-backup into main
Some checks failed
Architecture Lint / Linter Tests (push) Successful in 11s
Architecture Lint / Lint Repository (push) Failing after 7s
Auto-merged by Timmy
2026-04-10 21:02:00 +00:00
b84b97fb6f Backup: all 35 cron jobs paused, state preserved
Some checks failed
Architecture Lint / Linter Tests (push) Successful in 10s
Architecture Lint / Lint Repository (push) Failing after 7s
2026-04-10 19:07:06 +00:00
3 changed files with 52 additions and 19 deletions

View File

@@ -112,23 +112,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PyYAML
run: pip install pyyaml
- name: Validate playbook structure
run: |
python3 -c "
import yaml, sys, glob
required_keys = {'name', 'description'}
for f in glob.glob('playbooks/*.yaml'):
with open(f) as fh:
try:
data = yaml.safe_load(fh)
if not isinstance(data, dict):
print(f'ERROR: {f} is not a YAML mapping')
sys.exit(1)
missing = required_keys - set(data.keys())
if missing:
print(f'WARNING: {f} missing keys: {missing}')
print(f'OK: {f}')
except yaml.YAMLError as e:
print(f'ERROR: {f}: {e}')
sys.exit(1)
"
run: python3 scripts/validate_playbook_schema.py

24
.gitignore vendored
View File

@@ -10,3 +10,27 @@ __pycache__/
# Generated audit reports
reports/
# Secrets and credentials
.bash_history
.git-credentials
.gitea_token
.ssh/id_*
.ssh/known_hosts
.viminfo
.wget-hsts
.profile
.bashrc
.bash_logout
.python_history
.lesshst
.selected_editor
.sudo_as_admin_successful
.config/telegram/
.hermes/.env
.hermes/auth.json
*.pem
*.key
.env
.env.*
!.env.example

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
"""Validate playbook YAML files have required keys."""
import yaml
import sys
import glob
required_keys = {'name', 'description'}
for f in glob.glob('playbooks/*.yaml'):
with open(f) as fh:
try:
data = yaml.safe_load(fh)
if not isinstance(data, dict):
print(f'ERROR: {f} is not a YAML mapping')
sys.exit(1)
missing = required_keys - set(data.keys())
if missing:
print(f'WARNING: {f} missing keys: {missing}')
print(f'OK: {f}')
except yaml.YAMLError as e:
print(f'ERROR: {f}: {e}')
sys.exit(1)