From d9e1cda2014a488d31515419a16f91a2dda08417 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 28 Aug 2024 12:58:50 +0200 Subject: [PATCH] Upgrade super-linter to v7 --- .github/workflows/superlinter.yml | 9 ++++++++- Makefile | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superlinter.yml b/.github/workflows/superlinter.yml index c116847..5b20492 100644 --- a/.github/workflows/superlinter.yml +++ b/.github/workflows/superlinter.yml @@ -21,7 +21,7 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter/slim@v5 + uses: super-linter/super-linter/slim@v7 env: VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main @@ -29,12 +29,19 @@ jobs: # These are the validation we disable atm VALIDATE_ANSIBLE: false VALIDATE_BASH: false + VALIDATE_CHECKOV: false VALIDATE_DOCKERFILE_HADOLINT: false VALIDATE_JSCPD: false VALIDATE_KUBERNETES_KUBECONFORM: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_NATURAL_LANGUAGE: false VALIDATE_PYTHON_BLACK: false VALIDATE_PYTHON_FLAKE8: false VALIDATE_PYTHON_ISORT: false VALIDATE_PYTHON_MYPY: false + VALIDATE_PYTHON_PYINK: false VALIDATE_PYTHON_PYLINT: false + VALIDATE_PYTHON_RUFF: false + VALIDATE_SHELL_SHFMT: false VALIDATE_YAML: false + VALIDATE_YAML_PRETTIER: false diff --git a/Makefile b/Makefile index db1dd3d..f038a8a 100644 --- a/Makefile +++ b/Makefile @@ -10,19 +10,26 @@ super-linter: ## Runs super linter locally podman run -e RUN_LOCAL=true -e USE_FIND_ALGORITHM=true \ -e VALIDATE_ANSIBLE=false \ -e VALIDATE_BASH=false \ + -e VALIDATE_CHECKOV=false \ -e VALIDATE_DOCKERFILE_HADOLINT=false \ -e VALIDATE_JSCPD=false \ -e VALIDATE_KUBERNETES_KUBECONFORM=false \ + -e VALIDATE_MARKDOWN_PRETTIER=false \ + -e VALIDATE_NATURAL_LANGUAGE=false \ -e VALIDATE_PYTHON_BLACK=false \ -e VALIDATE_PYTHON_FLAKE8=false \ -e VALIDATE_PYTHON_ISORT=false \ -e VALIDATE_PYTHON_MYPY=false \ + -e VALIDATE_PYTHON_PYINK=false \ -e VALIDATE_PYTHON_PYLINT=false \ + -e VALIDATE_PYTHON_RUFF=false \ + -e VALIDATE_SHELL_SHFMT=false \ -e VALIDATE_YAML=false \ + -e VALIDATE_YAML_PRETTIER=false \ $(DISABLE_LINTERS) \ -v $(PWD):/tmp/lint:rw,z \ -w /tmp/lint \ - docker.io/github/super-linter:slim-v5 + ghcr.io/super-linter/super-linter:slim-v7 .PHONY: ansible-lint ansible-lint: ## run ansible lint on ansible/ folder