gandalf#55, part 1 (no server changes needed).
- .gitea/workflows/ci.yml replaces lint.yml, test.yml and security.yml.
Jobs: Lint (Python) with the dash check, Lint (JS), Test, Security,
Scan (gitleaks over the full history, actionlint, shellcheck), Deploy
and Notify. Deploy needs every check, so failing tests or a bandit or
gitleaks finding no longer reach production.
- Pinned: actions/checkout to a full SHA, job images to digests (Python
3.13 on Debian 13 like CT 157, Node 22 for eslint), Python tools in the
new requirements-dev.txt, scanner downloads by SHA-256. No setup-python
(the runner's shared tool cache broke Pulse twice).
- Builds run on pull requests and on pushes to main only, plus a weekly
run on main; concurrency queues deploys and never cancels one.
- Deploy signs {"ref", "sha", "ts"} (unique per request), then waits up to
5 minutes until /health reports that commit for both processes, and only
then tags deploy-<date>-<run>.
- /health reports `sha` (version.py reads .git at startup, no subprocess)
and `monitor_sha` (the monitor writes it every cycle).
Part 2 (server side): the pinned deploy script that refuses stale or
replayed requests, deploys exactly that sha and rolls back.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
6 lines
159 B
Plaintext
6 lines
159 B
Plaintext
# Pinned tools for CI and local checks (gandalf#55). Runtime dependencies are in requirements.txt.
|
|
flake8==7.5.0
|
|
bandit==1.9.4
|
|
pytest==9.2.0
|
|
pytest-cov==7.1.0
|