Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

ci: shellcheck the entrypoint script too

Yudhi Armyndharisb1127e5ca201
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5491ff7fd..87bf75f80 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -251,7 +251,10 @@ jobs:
# Widened from the original three (#926) now that the rest are clean too. The narrow scope was
# not free: `smoke-test-non-root.sh` carried a UTF-8 BOM before its shebang for months, which
# shellcheck reports as SC1082 and which nothing else here would ever have caught.
- run: shellcheck scripts/*.sh
+ # `docker-entrypoint.sh` is named explicitly because it is the only shell script outside
+ # scripts/, and a `scripts/*.sh` glob silently excluded the one that runs as root, chowns the
+ # data volume and execs gosu — the most privilege-sensitive script in the repo.
+ run: shellcheck docker-entrypoint.sh scripts/*.sh
- name: Run backup/restore smoke test
run: ./scripts/smoke-test-backup-restore.sh