diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 000000000..7619e72f6 --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,23 @@ +--- +# MegaLinter GitHub Action configuration file +# More info at https://oxsecurity.github.io/megalinter +name: mega-linter-yaml + +on: + pull_request: + +permissions: + contents: read + +jobs: + build: + name: mega-linter-yaml + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + with: + fetch-depth: 1 + + - name: yamllint + uses: oxsecurity/megalinter/flavors/ci_light@v7 diff --git a/.yaml-lint.yml b/.yaml-lint.yml new file mode 100644 index 000000000..1116b6507 --- /dev/null +++ b/.yaml-lint.yml @@ -0,0 +1,31 @@ +--- + +yaml-files: + - '*.yaml' + - '*.yml' + - '.yamllint' + +rules: + braces: enable + brackets: enable + colons: enable + commas: enable + comments: disable + comments-indentation: disable + document-end: disable + document-start: disable + empty-lines: enable + empty-values: disable + hyphens: enable + indentation: disable + key-duplicates: enable + key-ordering: disable + line-length: disable + new-line-at-end-of-file: enable + new-lines: enable + octal-values: disable + quoted-strings: disable + trailing-spaces: enable + truthy: + level: warning + check-keys: false