Files
openwaf/scripts
Pavlo Ratushnyi 9491f01b86 CI: lint the workflow and the shell that runs the gates
A gate that is only checked by eye is a gate that fails silently. Two additions
to ci.yml:

 * a lint job running actionlint 1.7.12 pinned by a checksum-verified tarball —
   not piped from a setup script, because a gate someone can move by
   republishing a tag is not a gate. actionlint also shellchecks the run: blocks
   it reads, including its own.
 * shellcheck over scripts/*.sh. Both smoke scripts are gates, so a broken one
   has to fail loudly rather than report a green run with zero assertions.

shellcheck found four real things in compose-smoke.sh: an unguarded cd, and
unquoted source IPs in the X-Forwarded-For helpers. Fixed; the script now passes
shellcheck and still reports 27/27 against the built image.

Verified, not assumed: actionlint exits 0 on this file locally (shellcheck
integration active), and the lint step's body — checksum, tar, actionlint — was
run on ubuntu:24.04, the family ubuntu-latest runs on, with the pinned digest
confirmed against the published artifact (sha256sum -c: OK). What is still not
verified is the workflow running on a GitHub runner: the repository has no
remote.
2026-10-01 11:47:48 +02:00
..