From 1dd3bef623437e9a6ee1e82fec89e90288320e98 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 18 Feb 2024 12:33:16 +0000 Subject: [PATCH] Update super-linter/super-linter action to v6 Change-Id: Ie9803ce230beb4736b2458b671e14599b08443e8 Signed-off-by: Joakim Roubert --- .github/super-linter.env | 1 + .github/workflows/super-linter.yml | 2 +- LINT.md | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/super-linter.env b/.github/super-linter.env index e92b53a..3f242c6 100644 --- a/.github/super-linter.env +++ b/.github/super-linter.env @@ -1,3 +1,4 @@ +DEFAULT_BRANCH=main LINTER_RULES_PATH=/ VALIDATE_ALL_CODEBASE=true IGNORE_GITIGNORED_FILES=true diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 2c0c4ea..2060517 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -17,7 +17,7 @@ jobs: run: cat .github/super-linter.env >> "$GITHUB_ENV" - name: Lint Code Base - uses: super-linter/super-linter/slim@v5 + uses: super-linter/super-linter/slim@v6 env: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/LINT.md b/LINT.md index e2bc76c..3a615d4 100644 --- a/LINT.md +++ b/LINT.md @@ -22,7 +22,7 @@ docker run --rm \ -v "$PWD":/tmp/lint \ -e RUN_LOCAL=true \ --env-file .github/super-linter.env \ - ghcr.io/super-linter/super-linter:slim-v5 + ghcr.io/super-linter/super-linter:slim-v6 ``` ## Run super-linter interactively @@ -36,7 +36,7 @@ docker run -it --rm \ -w /tmp/lint \ --env-file .github/super-linter.env \ --entrypoint /bin/bash \ - ghcr.io/super-linter/super-linter:slim-v5 + ghcr.io/super-linter/super-linter:slim-v6 ``` Then from the container terminal, the following commands can lint the the code @@ -47,10 +47,10 @@ base for different file types: find "$PWD" \( -iname \*.c -or -iname \*.h \) -exec clang-format --dry-run --Werror --verbose {} + # Lint Dockerfile files -hadolint $(find -type f -name Dockerfile*) +hadolint $(find -type f -name Dockerfile\*) # Lint Dockerfile files (alternative command) -find -type f -name Dockerfile* -exec hadolint {} + +find -type f -name Dockerfile\* -exec hadolint {} + # Lint JSON files eslint --no-eslintrc -c /action/lib/.automation/.eslintrc.yml --ext .json .