From 92930b65975c045e1e36ef3534ba019ff0fb1810 Mon Sep 17 00:00:00 2001 From: reachableceo Date: Fri, 4 Sep 2026 07:43:49 -0500 Subject: [PATCH] =?UTF-8?q?ci(gitea):=20workflow=20=E2=80=94=20shellcheck?= =?UTF-8?q?=20+=20functional=20tests=20+=20secret=20scan=20[#784]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fleet CI standard adoption (Discourse t/333); 16 tests existed but nothing enforced them mechanically. https://projects.knownelement.com/issues/784 --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..28e9b1f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,24 @@ +# doorman CI [#784] — fleet standard per Discourse t/333. +# Badge-door code: shellcheck zero-warning + functional tests + secret scan. +name: ci +on: [push, pull_request] +jobs: + lint-and-test: + runs-on: ubuntu-latest + container: + image: node:20-bookworm + steps: + - uses: actions/checkout@v4 + - name: shellcheck (zero-warning) + run: | + apt-get update -qq && apt-get install -qq -y shellcheck >/dev/null + git ls-files '*.sh' | grep -v '^legacy/' | xargs -r shellcheck + - name: functional tests + run: bash tests/run-tests.sh + - name: secret scan + run: | + if grep -rInE "BEGIN (RSA |OPENSSH |EC |DSA )?PRIVATE KEY|aws_secret_access_key *=|AKIA[0-9A-Z]{16}" --exclude-dir=.git --exclude-dir=legacy .; then + echo "::error::secret material committed"; exit 1 + else + echo "secret scan clean" + fi