Commit Graph

1 Commits

Author SHA1 Message Date
Alexander Whitestone
62925c294d ci: integrate hardcoded path linter into CI workflow (#865)
Some checks failed
Contributor Attribution Check / check-attribution (pull_request) Failing after 32s
Docker Build and Publish / build-and-push (pull_request) Has been skipped
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 24s
Tests / lint-paths (pull_request) Failing after 24s
Tests / e2e (pull_request) Successful in 2m14s
Tests / test (pull_request) Failing after 1h6m43s
PR #864 adds lint_hardcoded_paths.py but it's not in CI.

New scripts/lint_hardcoded_paths.py:
- Scans for 6 hardcoded ~/.hermes path patterns
- Skips hermes_constants.py (source of truth), comments, docs
- --json output, --fix suggestions
- Exit code 1 on findings (fails CI)

Updated .github/workflows/tests.yml:
- New lint-paths job runs on every push/PR to main
- Runs: python3 scripts/lint_hardcoded_paths.py
- Separate from test job for fast failure

Closes #865
2026-04-15 23:45:30 -04:00