From 0e4757832962cbb8884ddc81983650c1a8e2bbc3 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Fri, 29 May 2026 09:40:45 +0200 Subject: [PATCH] Add yaml validation job --- .github/workflows/yaml-lint.yaml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/yaml-lint.yaml diff --git a/.github/workflows/yaml-lint.yaml b/.github/workflows/yaml-lint.yaml new file mode 100644 index 0000000..cd7d9e3 --- /dev/null +++ b/.github/workflows/yaml-lint.yaml @@ -0,0 +1,36 @@ +--- +name: Validate YAML + +on: + push: + paths: + - '.github/workflows/yaml-lint.yaml' + - 'catalog/**' + pull_request: + paths: + - '.github/workflows/yaml-lint.yaml' + - 'catalog/**' + +permissions: read-all # zizmor: ignore[excessive-permissions] + +jobs: + yaml_lint: + name: YAML lint + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 + with: + python-version: "3.11" + + - name: Install yamllint + run: pip install yamllint + + - name: Lint YAML files + run: yamllint -s -d '{extends: default, rules: {line-length: disable, document-start: disable}}' catalog/