From 20cee5c4102eefb058e5b6ea7a82d0958a49680c Mon Sep 17 00:00:00 2001 From: Chiman Jain Date: Fri, 17 May 2024 12:19:47 +0530 Subject: [PATCH] add yaml lint action --- .github/workflows/actions.yml | 9 +++++++++ .yamllint | 31 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .yamllint diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 22e35d45f..35444a11c 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -88,6 +88,15 @@ jobs: with: directories: . options: -ri + yaml_lint_scan: + name: Yaml Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: yaml-lint + uses: ibiqlik/action-yamllint@v3 + with: + config_file: .yamllint.yml image_security_scan: name: Image Scanner runs-on: ubuntu-latest diff --git a/.yamllint b/.yamllint new file mode 100644 index 000000000..788957465 --- /dev/null +++ b/.yamllint @@ -0,0 +1,31 @@ +--- +yaml-files: + - "*.yaml" + - "*.yml" + - ".yamllint" + +rules: + braces: enable + brackets: enable + colons: enable + commas: enable + comments: + level: warning + comments-indentation: + level: warning + document-end: disable + document-start: disable + empty-lines: enable + empty-values: disable + hyphens: enable + indentation: enable + 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