Skip to content

Commit

Permalink
Add shell script linters to ci_light flavor (#1299)
Browse files Browse the repository at this point in the history
* Add shell script linters to ci_light flavor

Use-case: many of my Docker-related projects have glue shell scripts (e.g., `/entrypoint.sh`) that are added to images (e.g., `COPY entrypoint.sh /`) that are run when the image is run (e.g., `ENTRYPOINT ["/entrypoint.sh"]`) and I would like to have them scanned without having to pull down the full scanner.

* Add sh linters to ci_light flavor + build

Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com>
  • Loading branch information
wesley-dean and nvuillam committed Feb 25, 2022
1 parent 285af5f commit 749eb15
Show file tree
Hide file tree
Showing 25 changed files with 129 additions and 95 deletions.
58 changes: 29 additions & 29 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@
2455759
],
[
"2022-02-25T01:45:09",
2459929
"2022-02-25T14:55:27",
2460500
]
],
"ci_light": [
Expand Down Expand Up @@ -1183,8 +1183,8 @@
7535
],
[
"2022-02-25T01:45:09",
7755
"2022-02-25T14:55:27",
7806
]
],
"dart": [
Expand Down Expand Up @@ -1777,8 +1777,8 @@
2329
],
[
"2022-02-25T01:45:09",
2347
"2022-02-25T14:55:27",
2353
]
],
"documentation": [
Expand Down Expand Up @@ -2371,8 +2371,8 @@
41770
],
[
"2022-02-25T01:45:09",
43218
"2022-02-25T14:55:27",
43398
]
],
"dotnet": [
Expand Down Expand Up @@ -2965,8 +2965,8 @@
284818
],
[
"2022-02-25T01:45:09",
286563
"2022-02-25T14:55:27",
286911
]
],
"go": [
Expand Down Expand Up @@ -3559,8 +3559,8 @@
8226
],
[
"2022-02-25T01:45:09",
8395
"2022-02-25T14:55:27",
8403
]
],
"java": [
Expand Down Expand Up @@ -4153,8 +4153,8 @@
59978
],
[
"2022-02-25T01:45:09",
61580
"2022-02-25T14:55:27",
61689
]
],
"javascript": [
Expand Down Expand Up @@ -4747,8 +4747,8 @@
91521
],
[
"2022-02-25T01:45:09",
93476
"2022-02-25T14:55:27",
93678
]
],
"php": [
Expand Down Expand Up @@ -5341,8 +5341,8 @@
4183
],
[
"2022-02-25T01:45:09",
4282
"2022-02-25T14:55:27",
4318
]
],
"python": [
Expand Down Expand Up @@ -5935,8 +5935,8 @@
60302
],
[
"2022-02-25T01:45:09",
61549
"2022-02-25T14:55:27",
61754
]
],
"ruby": [
Expand Down Expand Up @@ -6525,7 +6525,7 @@
1903
],
[
"2022-02-25T01:45:09",
"2022-02-25T14:55:27",
1904
]
],
Expand Down Expand Up @@ -7115,8 +7115,8 @@
1712
],
[
"2022-02-25T01:45:09",
2072
"2022-02-25T14:55:27",
2125
]
],
"salesforce": [
Expand Down Expand Up @@ -7709,8 +7709,8 @@
10886
],
[
"2022-02-25T01:45:09",
11042
"2022-02-25T14:55:27",
11058
]
],
"scala": [
Expand Down Expand Up @@ -8299,7 +8299,7 @@
1454
],
[
"2022-02-25T01:45:09",
"2022-02-25T14:55:27",
1455
]
],
Expand Down Expand Up @@ -8889,7 +8889,7 @@
1495
],
[
"2022-02-25T01:45:09",
"2022-02-25T14:55:27",
1496
]
],
Expand Down Expand Up @@ -9483,8 +9483,8 @@
40177
],
[
"2022-02-25T01:45:09",
41476
"2022-02-25T14:55:27",
41630
]
]
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `megalinter/megalinter:beta` docker image

- Flavors
- Add shell linters to ci_light flavor ([#1298](https://github.com/megalinter/megalinter/issues/1298))

- Fixes
- Use latest version of npm
- Generate JSON Schema HTML Documentation when building documentation ([#1287](https://github.com/megalinter/megalinter/issues/1287))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ _The following table does not display docker pulls from [MegaLinter v4 images](h
| <!-- --> | Flavor | Description | Embedded linters | Info |
|:--------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|:----------------:|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/images/mega-linter-square.png" alt="" height="32px" class="megalinter-icon"></a> | [all](https://megalinter.github.io/supported-linters/) | Default MegaLinter Flavor | 97 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter) |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/ci_light.ico" alt="" height="32px" class="megalinter-icon"></a> | [ci_light](https://github.com/megalinter/megalinter/tree/main/docs/flavors/ci_light.md#readme) | Optimized for CI items (Dockerfile, Jenkinsfile, JSON/YAML schemas,XML | 13 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter-ci_light/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter-ci_light) |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/ci_light.ico" alt="" height="32px" class="megalinter-icon"></a> | [ci_light](https://github.com/megalinter/megalinter/tree/main/docs/flavors/ci_light.md#readme) | Optimized for CI items (Dockerfile, Jenkinsfile, JSON/YAML schemas,XML | 16 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter-ci_light/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter-ci_light) |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/dart.ico" alt="" height="32px" class="megalinter-icon"></a> | [dart](https://github.com/megalinter/megalinter/tree/main/docs/flavors/dart.md#readme) | Optimized for DART based projects | 41 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter-dart/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter-dart) |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/documentation.ico" alt="" height="32px" class="megalinter-icon"></a> | [documentation](https://github.com/megalinter/megalinter/tree/main/docs/flavors/documentation.md#readme) | MegaLinter for documentation projects | 40 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter-documentation/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter-documentation) |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/dotnet.ico" alt="" height="32px" class="megalinter-icon"></a> | [dotnet](https://github.com/megalinter/megalinter/tree/main/docs/flavors/dotnet.md#readme) | Optimized for C, C++, C# or VB based projects | 47 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/megalinter/megalinter-dotnet/v5) ![Docker Pulls](https://img.shields.io/docker/pulls/megalinter/megalinter-dotnet) |
Expand Down

0 comments on commit 749eb15

Please sign in to comment.