The lint job linted one workflow file while the repo has two

actionlint in ci.yml was invoked on .github/workflows/ci.yml only, so
geo-freshness.yml — the scheduled geo gate — was linted by whoever happened to
run it locally, not by the pipeline. A workflow added later would have been
unlinted by default, which is how a gate quietly stops covering the thing it is
for.

Fixed by globbing the workflows directory, so the step covers whatever is there
instead of a list someone has to remember.

Verified on this commit: actionlint 1.7.12 -no-color .github/workflows/*.yml
exits 0 with no findings over both files (ci.yml, geo-freshness.yml).
This commit is contained in:
Pavlo Ratushnyi
2026-10-01 21:25:28 +02:00
parent a6cc42065a
commit 5722d64529
+3 -1
View File
@@ -63,7 +63,9 @@ jobs:
"https://github.com/rhysd/actionlint/releases/download/v${VERSION}/actionlint_${VERSION}_linux_amd64.tar.gz"
echo "${SHA256} /tmp/actionlint.tar.gz" | sha256sum -c -
tar xzf /tmp/actionlint.tar.gz -C /tmp actionlint
/tmp/actionlint -no-color .github/workflows/ci.yml
# Both files, by glob: a workflow added later is linted by the same
# step without anyone remembering to add it to a list.
/tmp/actionlint -no-color .github/workflows/*.yml
# Both smoke scripts are gates, so a broken one has to fail loudly here
# rather than look like a passing run with zero assertions.