CI: scan job for secrets (gitleaks), workflows (actionlint) and shell (shellcheck)
CI / Test (jest) (push) Successful in 16s
CI / Lint (eslint) (push) Successful in 17s
CI / Security (npm audit) (push) Successful in 10s
CI / Scan (secrets, workflows, shell) (push) Successful in 13s
CI / Integration (api) (push) Successful in 1m28s
CI / Lint (eslint) (pull_request) Successful in 13s
CI / Test (jest) (pull_request) Successful in 19s
CI / UI (playwright) (push) Successful in 1m43s
CI / Deploy (push) Skipped
CI / Security (npm audit) (pull_request) Successful in 8s
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 18s
CI / Integration (api) (pull_request) Successful in 1m30s
CI / UI (playwright) (pull_request) Successful in 1m48s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Test (jest) (push) Successful in 16s
CI / Lint (eslint) (push) Successful in 17s
CI / Security (npm audit) (push) Successful in 10s
CI / Scan (secrets, workflows, shell) (push) Successful in 13s
CI / Integration (api) (push) Successful in 1m28s
CI / Lint (eslint) (pull_request) Successful in 13s
CI / Test (jest) (pull_request) Successful in 19s
CI / UI (playwright) (push) Successful in 1m43s
CI / Deploy (push) Skipped
CI / Security (npm audit) (pull_request) Successful in 8s
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 18s
CI / Integration (api) (pull_request) Successful in 1m30s
CI / UI (playwright) (pull_request) Successful in 1m48s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
All three pass on main today: gitleaks found no leaks in 88 commits, and actionlint's one warning (an unused loop variable in the deploy health check) is fixed here. Tool downloads are pinned to a version and verified by SHA-256. Deploy now also waits for the scan. Part of #45 phase 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f32bd1363
commit
1f75a4a63a
2 files changed
+35
-7
No files matched your search
@@ -589,13 +589,15 @@ Everything runs from `.gitea/workflows/ci.yml`:
|
||||
| `Lint (eslint)` | `npm run lint`, plus a check that fails on em or en dashes in Pulse-owned files | Every push and PR |
|
||||
| `Test (jest)` | `npm test`: unit tests for `lib/` and the deploy-script sandbox tests | Every push and PR |
|
||||
| `Security (npm audit)` | `npm audit --audit-level=high` | Every push and PR, and weekly (Monday 06:00) |
|
||||
| `Scan (secrets, workflows, shell)` | gitleaks over the whole git history, actionlint on the workflow files (with shellcheck on their scripts), and shellcheck on every `*.sh` | Every push and PR |
|
||||
| `Integration (api)` | Starts the real server and three workers on Node 20 against MariaDB, then runs `tests/integration/` over HTTP and WebSocket: the Gandalf API contract, HTTP and WebSocket auth, and execution reliability (worker crash, capacity, abort) | Every push and PR |
|
||||
| `UI (playwright)` | Starts the real server and three workers against a MariaDB service container, then runs the Playwright tests in `tests/ui/` (desktop and phone) | Every push and PR |
|
||||
| `Deploy` | Calls the `pulse-deploy` webhook on CT 122, waits until `/healthz` reports the tested commit, then tags it `deploy-*` | Push to `main`, only after all five checks pass |
|
||||
| `Deploy` | Calls the `pulse-deploy` webhook on CT 122, waits until `/healthz` reports the tested commit, then tags it `deploy-*` | Push to `main`, only after all six checks pass |
|
||||
| `Notify` | Matrix alert on any failure on `main` or in the weekly audit, and on every deploy | As needed |
|
||||
|
||||
Branch protection on `main` requires `CI / Lint (eslint) (push)`, `CI / Test (jest) (push)`,
|
||||
`CI / Security (npm audit) (push)`, `CI / Integration (api) (push)` and `CI / UI (playwright) (push)`. Actions are pinned to commit
|
||||
`CI / Security (npm audit) (push)`, `CI / Scan (secrets, workflows, shell) (push)`,
|
||||
`CI / Integration (api) (push)` and `CI / UI (playwright) (push)`. Actions are pinned to commit
|
||||
SHAs and builds use `npm ci`. The plan for the rest of the pipeline is tracked in #45.
|
||||
|
||||
### Integration tests
|
||||
|
||||
Reference in new issue
Block a user