From ab25ae970d7be2d388cb1af082368340289458f5 Mon Sep 17 00:00:00 2001 From: reachableceo Date: Sat, 5 Sep 2026 06:09:24 -0500 Subject: [PATCH] [#784] add fleet CI workflow (shellcheck + secret scan + rule audit) https://projects.knownelement.com/issues/784 --- .gitea/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..a722b98 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,25 @@ +# OAM fleet CI [#784] — same gate as pre-commit: shellcheck + secret scan + rule audit. +# Uniform across KNEL OAM repos (single-branch main until dev/release split lands). +name: ci +on: + push: + branches: [main] + pull_request: +jobs: + audit: + runs-on: ultix + container: + image: node:20-bookworm + steps: + - uses: actions/checkout@v4 + - name: install shellcheck + run: apt-get update -qq >/dev/null && apt-get install -qq -y shellcheck git >/dev/null + - 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 .; then + echo "::error::secret material committed"; exit 1 + else + echo "secret scan clean" + fi + - name: rule audit (framework check-rules) + run: bash scripts/check-rules.sh --fast