From 6266043d11e270a3d355ed9ed4b2663dfcaacb79 Mon Sep 17 00:00:00 2001 From: reachableceo Date: Fri, 4 Sep 2026 07:24:23 -0500 Subject: [PATCH] =?UTF-8?q?ci(gitea):=20workflow=20=E2=80=94=20yamllint=20?= =?UTF-8?q?+=20secret=20scan=20on=20dev/release=20[#784]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fleet CI standard; runner #784. Runs go green once the act_runner registers (token pending founder). https://projects.knownelement.com/issues/784 --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++++ .yamllint | 19 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .gitea/workflows/ci.yml create mode 100644 .yamllint diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..5b9afae --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,24 @@ +# pfv-bms CI [#784 #778] — fleet standard per Discourse "CI/CD: Gitea Actions". +# Runs on dev (pre-release gate) and release (final gate before live pull). +name: ci +on: + push: + branches: [dev, release] +jobs: + lint: + runs-on: ubuntu-latest + container: + image: node:20-bookworm + steps: + - uses: actions/checkout@v4 + - name: yamllint + run: | + pip install --quiet yamllint + yamllint -c .yamllint . + - 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 diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..418c3c2 --- /dev/null +++ b/.yamllint @@ -0,0 +1,19 @@ +# HA-config-aware yamllint [#784]: keep the checks that catch real bugs +# (duplicates, structure), relax the stylistic ones HA templates trip. +extends: default +ignore: | + docs/ +rules: + line-length: disable + comments: disable + comments-indentation: disable + document-start: disable + truthy: check-keys: false + indentation: + spaces: consistent + indent-sequences: consistent + key-duplicates: enable + new-line-at-end-of-file: disable + trailing-spaces: disable + empty-lines: + max-end: 2