Skip to content

Commit e9d9f4b

Browse files
authored
pin super linter (#1814)
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent 68dd332 commit e9d9f4b

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ max_line_length = 120
1818
indent_size = 4
1919
max_line_length = 120
2020

21-
[{.mise/tasks/build-release.sh,.github/workflows/multi-version-test.yml}]
21+
[{.mise/tasks/build-release.sh,.mise/tasks/lint/super-linter.sh,.github/workflows/multi-version-test.yml}]
2222
max_line_length = 200

.github/renovate.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@
3939
depNameTemplate: "mise",
4040
matchStrings: ["jdx/mise-action.*\\n\\s*with:\\s*\\n\\s*version: [\"']?(?<currentValue>v[.\\d]+)[\"']?\\s*\\n\\s*sha256: [\"']?(?<currentDigest>\\w+)[\"']?"],
4141
},
42+
{
43+
customType: "regex",
44+
description: "update super-linter in mise tasks",
45+
fileMatch: ["^\\.mise/tasks/.+\\.sh$"],
46+
matchStrings: ['# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+\\S+_VERSION="(?<currentValue>v\\d+\\.\\d+\\.\\d+)@(?<currentDigest>sha256:[a-f0-9]+)"'],
47+
},
4248
],
4349
}

.github/super-linter.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FILTER_REGEX_EXCLUDE=mvnw|src/main/generated/.*|docs/themes/.*|keystore.pkcs12|.*.java|prometheus-metrics-exporter-opentelemetry-shaded/pom.xml|CODE_OF_CONDUCT.md
22
IGNORE_GITIGNORED_FILES=true
33
JAVA_FILE_NAME=google_checks.xml
4+
LOG_LEVEL=ERROR
45
# conflicts with prettier
56
VALIDATE_BIOME_FORMAT=false
67
# conflicts with prettier
@@ -38,4 +39,5 @@ FIX_MARKDOWN=true
3839
FIX_MARKDOWN_PRETTIER=true
3940
FIX_PYTHON_BLACK=true
4041
FIX_SHELL_SHFMT=true
42+
FIX_SPELL_CODESPELL=true
4143
FIX_YAML_PRETTIER=true

.mise/tasks/lint/super-linter.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
set -euo pipefail
66

7-
docker pull ghcr.io/super-linter/super-linter:latest
7+
# renovate: datasource=docker depName=ghcr.io/super-linter/super-linter
8+
SUPER_LINTER_VERSION="v8.3.2@sha256:e9d1895a1bdc1f9d9df41f688b27aa891743f23f9fae0f22a3e25eeda8f102db"
9+
10+
docker pull --platform linux/amd64 "ghcr.io/super-linter/super-linter:${SUPER_LINTER_VERSION}"
811

912
docker run --rm \
1013
-e RUN_LOCAL=true \
1114
-e DEFAULT_BRANCH=main \
1215
--env-file ".github/super-linter.env" \
1316
-v "$(pwd)":/tmp/lint \
14-
ghcr.io/super-linter/super-linter:latest
17+
"ghcr.io/super-linter/super-linter:${SUPER_LINTER_VERSION}"

0 commit comments

Comments
 (0)