Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@
matchStrings: ['# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_VERSION="?(?<currentValue>[^@"]+?)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"?\\s'],
},
],
packageRules: [
{
matchPackageNames: ["ghcr.io/super-linter/super-linter"],
matchCurrentValue: "/^slim-/",
description: "Use regex versioning for slim Super-Linter tags (slim-v8.4.0)",
versioning: "regex:^slim-v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$",
},
],
}
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ controls which Super-Linter image is pulled. **Renovate**, via the
flint preset, opens PRs to bump both the flint script URL and the
`SUPER_LINTER_VERSION` value when new versions are available.

**Slim vs full image:** Super-Linter publishes a slim image
(`slim-v8.4.0`) that is ~2 GB smaller than the full image. The slim
image excludes Rust, .NET/C#, PowerShell, and ARM template linters.
Flint defaults to the slim image. To use the full image instead, set
`SUPER_LINTER_VERSION` to the non-prefixed tag (e.g.
`v8.4.0@sha256:...`) and update the Renovate `depName` comment
accordingly (drop the `versioning` override so Renovate uses standard
Docker versioning).

**Flags:**

| Flag | Description |
Expand All @@ -143,10 +152,10 @@ the env file before running Super-Linter.

<!-- editorconfig-checker-disable -->

| Variable | Default | Required | Description |
| ----------------------- | --------------------------------- | -------- | ------------------------------------------------- |
| `SUPER_LINTER_VERSION` | — | yes | Super-Linter image tag (e.g. `v8.4.0@sha256:...`) |
| `SUPER_LINTER_ENV_FILE` | `.github/config/super-linter.env` | no | Path to the Super-Linter env file |
| Variable | Default | Required | Description |
| ----------------------- | --------------------------------- | -------- | --------------------------------------------------------------------------------------------- |
| `SUPER_LINTER_VERSION` | — | yes | Super-Linter image tag (e.g. `slim-v8.4.0@sha256:...` for slim, `v8.4.0@sha256:...` for full) |
| `SUPER_LINTER_ENV_FILE` | `.github/config/super-linter.env` | no | Path to the Super-Linter env file |

<!-- editorconfig-checker-enable -->

Expand Down
6 changes: 6 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"matchPackageNames": ["renovate"],
"description": "Only update renovate once a week",
"schedule": ["before 6am on Monday"]
},
{
"matchPackageNames": ["ghcr.io/super-linter/super-linter"],
"matchCurrentValue": "/^slim-/",
"description": "Use regex versioning for slim Super-Linter tags (slim-v8.4.0)",
"versioning": "regex:^slim-v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$"
}
]
}
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ node = "24.13.1"
[env]
RENOVATE_TRACKED_DEPS_EXCLUDE="github-actions,github-runners"
# renovate: datasource=docker depName=ghcr.io/super-linter/super-linter
SUPER_LINTER_VERSION="v8.4.0@sha256:c5e3307932203ff9e1e8acfe7e92e894add6266605b5d7fb525fb371a59a26f4"
SUPER_LINTER_VERSION="slim-v8.4.0@sha256:8421cd4687937ac32a829539d03de51a147c164b42842cbfb20aada83ce1bb0c"

# Dogfood our own lint tasks - use local file paths
[tasks."lint:super-linter"]
Expand Down