2021-09-08 16:23:37 -04:00
|
|
|
# GitHub Super-Linter Slim Image Action
|
|
|
|
|
|
|
|
The **GitHub Super-Linter** maintains `two` major images:
|
|
|
|
|
2023-08-17 11:12:11 -04:00
|
|
|
- `super-linter/super-linter:v5`
|
|
|
|
- `super-linter/super-linter:slim-v5`
|
2021-09-08 16:23:37 -04:00
|
|
|
|
|
|
|
In order to help users pull this image more naturally, the `action.yml` in this directory can help users pull the `slim image`.
|
|
|
|
|
|
|
|
## Slim Image
|
|
|
|
|
2023-08-17 11:12:11 -04:00
|
|
|
The slim `super-linter/super-linter:slim-v5` comes with all supported linters but removes the following:
|
2021-09-08 16:23:37 -04:00
|
|
|
|
|
|
|
- `rust` linters
|
|
|
|
- `dotenv` linters
|
|
|
|
- `armttk` linters
|
|
|
|
- `pwsh` linters
|
|
|
|
- `c#` linters
|
|
|
|
|
|
|
|
By removing these linters, we were able to bring the image size down by `2gb` and drastically speed up the build and download time.
|
|
|
|
The behavior will be the same for non-supported languages, and will skip languages at run time.
|
|
|
|
Example usage:
|
|
|
|
|
|
|
|
```yml
|
|
|
|
################################
|
|
|
|
# Run Linter against code base #
|
|
|
|
################################
|
|
|
|
- name: Lint Code Base
|
2023-08-17 11:12:11 -04:00
|
|
|
uses: super-linter/super-linter/slim@v5
|
2021-09-08 16:23:37 -04:00
|
|
|
env:
|
|
|
|
VALIDATE_ALL_CODEBASE: false
|
2021-10-01 15:57:26 -04:00
|
|
|
DEFAULT_BRANCH: main
|
2021-09-08 16:23:37 -04:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-04-12 04:48:41 -04:00
|
|
|
```
|