From 491a3a95aae17f4406092c99c0401c530d987445 Mon Sep 17 00:00:00 2001 From: somaz Date: Mon, 24 Jun 2024 12:12:00 +0900 Subject: [PATCH] add: super-linter --- .github/dependabot.yml | 21 ++++++++++++++++++++ .github/linters/.checkov.yml | 7 +++++++ .github/linters/.jscpd.json | 6 ++++++ .github/linters/.markdown-lint.yml | 23 +++++++++++++++++++++ .github/linters/.yaml-lint.yml | 10 ++++++++++ .github/workflows/linter.yml | 32 ++++++++++++++++++++++++++++++ README.md | 8 ++++++-- 7 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/linters/.checkov.yml create mode 100644 .github/linters/.jscpd.json create mode 100644 .github/linters/.markdown-lint.yml create mode 100644 .github/linters/.yaml-lint.yml create mode 100644 .github/workflows/linter.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9d98c2a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,21 @@ +version: 2 +updates: + - package-ecosystem: docker + directory: / + schedule: + interval: weekly + groups: + docker-minor: + update-types: + - minor + - patch + + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + actions-minor: + update-types: + - minor + - patch diff --git a/.github/linters/.checkov.yml b/.github/linters/.checkov.yml new file mode 100644 index 0000000..ea73ae4 --- /dev/null +++ b/.github/linters/.checkov.yml @@ -0,0 +1,7 @@ +quiet: true +skip-check: + # Ensure that HEALTHCHECK instructions have been added to container images + - CKV_DOCKER_2 + # Ensure that a user for the container has been created + - CKV_DOCKER_3 + - CKV_GHA_7 diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json new file mode 100644 index 0000000..d3c0c97 --- /dev/null +++ b/.github/linters/.jscpd.json @@ -0,0 +1,6 @@ +{ + "absolute": true, + "ignore": [ + ".github/workflows/*" + ] +} diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 0000000..ddddc0f --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,23 @@ +# Unordered list style +MD004: + style: dash + +MD013: + line_length: 100 + code_blocks: false + tables: false + +# Ordered list item prefix +MD029: + style: one + +# Spaces after list markers +MD030: + ul_single: 1 + ol_single: 1 + ul_multi: 1 + ol_multi: 1 + +# Code block style +MD046: + style: fenced diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml new file mode 100644 index 0000000..c975a33 --- /dev/null +++ b/.github/linters/.yaml-lint.yml @@ -0,0 +1,10 @@ +rules: + document-end: disable + document-start: + level: warning + present: false + line-length: + level: warning + max: 80 + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: true diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..ee98c64 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,32 @@ +name: Lint Codebase + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + packages: read + statuses: write + +jobs: + lint: + name: Lint Codebase + runs-on: ubuntu-latest + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Lint Codebase + id: super-linter + uses: super-linter/super-linter/slim@v6 + env: + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_ALL_CODEBASE: true diff --git a/README.md b/README.md index 2fca1c3..699483a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # 🛠ī¸ cicd-monitoring -A curated collection of CI/CD pipelines and instructions on how to install and set up the associated monitoring tools across various environments. +[![GitHub Super-Linter](https://github.com/actions/container-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter) + +A curated collection of CI/CD pipelines and instructions on how to install +and set up the associated monitoring tools across various environments.
@@ -8,7 +11,8 @@ A curated collection of CI/CD pipelines and instructions on how to install and s ### 🌩ī¸ AWS -The AWS directory contains configurations and instructions for deploying tools on the Amazon Web Services platform. +The AWS directory contains configurations and instructions +for deploying tools on the Amazon Web Services platform. 📁 `aws` - 🚀 `argocd`