Skip to content

Commit f225ebf

Browse files
committed
Merge remote-tracking branch 'origin/main' into alpha
2 parents 133ae59 + c84ddeb commit f225ebf

File tree

158 files changed

+1567
-1507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+1567
-1507
lines changed

.automation/generated/linter-helps.json

Lines changed: 332 additions & 327 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.automation/generated/linter-versions.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"actionlint": "1.7.0",
3-
"ansible-lint": "24.2.3",
3+
"ansible-lint": "24.5.0",
44
"arm-ttk": "0.0.0",
55
"bandit": "1.7.8",
66
"bash-exec": "5.2.21",
77
"bicep_linter": "0.27.1",
88
"black": "24.4.2",
9-
"cfn-lint": "0.87.2",
9+
"cfn-lint": "0.87.3",
1010
"checkmake": "0.2.0",
11-
"checkov": "3.2.90",
11+
"checkov": "3.2.95",
1212
"checkstyle": "10.16.0",
1313
"chktex": "1.7.8",
1414
"clang-format": "17.0.5",
@@ -25,14 +25,14 @@
2525
"djlint": "1.34.1",
2626
"dockerfilelint": "1.8.0",
2727
"dotenv-linter": "3.3.0",
28-
"dotnet-format": "8.0.104",
28+
"dotnet-format": "8.0.105",
2929
"dustilock": "1.2.0",
3030
"editorconfig-checker": "3.0.1",
3131
"eslint": "8.57.0",
3232
"eslint-plugin-jsonc": "2.15.1",
3333
"flake8": "7.0.0",
3434
"gherkin-lint": "0.0.0",
35-
"git_diff": "2.43.0",
35+
"git_diff": "2.43.4",
3636
"gitleaks": "8.18.2",
3737
"golangci-lint": "1.58.1",
3838
"goodcheck": "3.1.0",
@@ -49,10 +49,10 @@
4949
"kubeconform": "0.6.6",
5050
"kubescape": "2.9.0",
5151
"kubeval": "0.16.1",
52-
"lightning-flow-scanner": "2.24.0",
52+
"lightning-flow-scanner": "2.25.0",
5353
"lintr": "0.0.0",
5454
"luacheck": "1.1.2",
55-
"lychee": "0.15.0",
55+
"lychee": "0.15.1",
5656
"markdown-link-check": "3.12.1",
5757
"markdown-table-formatter": "1.6.0",
5858
"markdownlint": "0.40.0",
@@ -63,8 +63,8 @@
6363
"perlcritic": "1.152",
6464
"php": "7.4.26",
6565
"phpcs": "3.9.2",
66-
"phplint": "9.2.0",
67-
"phpstan": "1.10.67",
66+
"phplint": "9.3.1",
67+
"phpstan": "1.11.1",
6868
"pmd": "7.1.0",
6969
"powershell": "7.4.2",
7070
"powershell_formatter": "7.4.2",
@@ -73,8 +73,8 @@
7373
"protolint": "0.49.7",
7474
"psalm": "Psalm.5.24.0@",
7575
"puppet-lint": "4.2.4",
76-
"pylint": "3.1.0",
77-
"pyright": "1.1.362",
76+
"pylint": "3.2.1",
77+
"pyright": "1.1.363",
7878
"raku": "2020.10",
7979
"remark-lint": "14.0.2",
8080
"revive": "1.3.7",
@@ -95,7 +95,7 @@
9595
"shellcheck": "0.10.0",
9696
"shfmt": "3.8.0",
9797
"snakefmt": "0.10.2",
98-
"snakemake": "8.11.4",
98+
"snakemake": "8.11.6",
9999
"spectral": "6.11.1",
100100
"sql-lint": "1.0.0",
101101
"sqlfluff": "3.0.6",
@@ -105,16 +105,16 @@
105105
"syft": "1.4.1",
106106
"tekton-lint": "1.0.2",
107107
"terraform-fmt": "1.8.3",
108-
"terragrunt": "0.58.3",
108+
"terragrunt": "0.58.5",
109109
"terrascan": "1.18.11",
110110
"tflint": "0.51.0",
111111
"trivy": "0.51.1",
112112
"trivy-sbom": "0.51.1",
113-
"trufflehog": "3.75.1",
113+
"trufflehog": "3.76.3",
114114
"ts-standard": "12.0.2",
115115
"tsqllint": "1.15.3.0",
116116
"v8r": "3.0.0",
117117
"vale": "3.4.2",
118-
"xmllint": "21107",
118+
"xmllint": "21108",
119119
"yamllint": "1.35.1"
120120
}

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@
240240
"Cres",
241241
"Csrf",
242242
"C\u00e9dric",
243+
"codesniffer",
243244
"DARTANALYZER",
244245
"DEVSKIM",
245246
"DIRC",

CHANGELOG.md

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1818
- Linters
1919
- `API_SPECTRAL` was added as replacement for `OPENAPI_SPECTRAL` (deprecated), supporting AsyncAPI and OpenAPI by default. Uses Spectral's standard config file name `.spectral.yaml` instead of `.openapirc.yml` with a default config with rulesets for AsyncAPI and OpenAPI enabled. Fixes [#3387](https://github.com/oxsecurity/megalinter/issues/3387)
2020
- Disable SQL_TSQLLINT until security issues are solved. Related to <https://github.com/tsqllint/tsqllint/issues/333>
21+
- PHP linters (PHP_PHPCS, PHP_PHPLINT, PHP_PHPSTAN) add support to SARIF report output format with help of <https://github.com/llaville/sarif-php-sdk>
2122

2223
- Reporters
2324
- New ApiReporter (can be used to build Grafana dashboards)
@@ -101,24 +102,41 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
101102
- [sqlfluff](https://www.sqlfluff.com/) from 3.0.5 to **3.0.6** on 2024-05-06
102103
- [bicep_linter](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter) from 0.26.170 to **0.27.1** on 2024-05-07
103104
- [checkov](https://www.checkov.io/) from 3.2.82 to **3.2.84** on 2024-05-07
104-
- [actionlint](https://rhysd.github.io/actionlint/) from 1.6.27 to **1.7.0** on 2024-05-11
105-
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.87.1 to **0.87.2** on 2024-05-11
106-
- [roslynator](https://github.com/dotnet/Roslynator) from 0.8.7.0 to **0.8.8.0** on 2024-05-11
107-
- [golangci-lint](https://golangci-lint.run/) from 1.58.0 to **1.58.1** on 2024-05-11
108-
- [npm-groovy-lint](https://nvuillam.github.io/npm-groovy-lint/) from 14.5.0 to **14.6.0** on 2024-05-11
109-
- [kubeconform](https://github.com/yannh/kubeconform) from 0.6.4 to **0.6.6** on 2024-05-11
110-
- [pyright](https://github.com/Microsoft/pyright) from 1.1.361 to **1.1.362** on 2024-05-11
111-
- [ruff](https://github.com/astral-sh/ruff) from 0.4.3 to **0.4.4** on 2024-05-11
112-
- [checkov](https://www.checkov.io/) from 3.2.84 to **3.2.90** on 2024-05-11
113-
- [grype](https://github.com/anchore/grype) from 0.77.3 to **0.77.4** on 2024-05-11
114-
- [syft](https://github.com/anchore/syft) from 1.3.0 to **1.4.1** on 2024-05-11
115-
- [rubocop](https://rubocop.org/) from 1.63.4 to **1.63.5** on 2024-05-11
116-
- [lightning-flow-scanner](https://github.com/Lightning-Flow-Scanner) from 2.23.0 to **2.24.0** on 2024-05-11
117-
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.11.3 to **8.11.4** on 2024-05-11
118-
- [snakefmt](https://github.com/snakemake/snakefmt) from 0.10.1 to **0.10.2** on 2024-05-11
119-
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 8.8.0 to **8.8.1** on 2024-05-11
120-
- [terraform-fmt](https://developer.hashicorp.com/terraform/cli/commands/fmt) from 1.8.2 to **1.8.3** on 2024-05-11
121-
- [terragrunt](https://terragrunt.gruntwork.io) from 0.58.2 to **0.58.3** on 2024-05-11
105+
- [actionlint](https://rhysd.github.io/actionlint/) from 1.6.27 to **1.7.0** on 2024-05-12
106+
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.87.1 to **0.87.2** on 2024-05-12
107+
- [roslynator](https://github.com/dotnet/Roslynator) from 0.8.7.0 to **0.8.8.0** on 2024-05-12
108+
- [golangci-lint](https://golangci-lint.run/) from 1.58.0 to **1.58.1** on 2024-05-12
109+
- [npm-groovy-lint](https://nvuillam.github.io/npm-groovy-lint/) from 14.5.0 to **14.6.0** on 2024-05-12
110+
- [kubeconform](https://github.com/yannh/kubeconform) from 0.6.4 to **0.6.6** on 2024-05-12
111+
- [pyright](https://github.com/Microsoft/pyright) from 1.1.361 to **1.1.362** on 2024-05-12
112+
- [ruff](https://github.com/astral-sh/ruff) from 0.4.3 to **0.4.4** on 2024-05-12
113+
- [checkov](https://www.checkov.io/) from 3.2.84 to **3.2.91** on 2024-05-12
114+
- [grype](https://github.com/anchore/grype) from 0.77.3 to **0.77.4** on 2024-05-12
115+
- [syft](https://github.com/anchore/syft) from 1.3.0 to **1.4.1** on 2024-05-12
116+
- [rubocop](https://rubocop.org/) from 1.63.4 to **1.63.5** on 2024-05-12
117+
- [lightning-flow-scanner](https://github.com/Lightning-Flow-Scanner) from 2.23.0 to **2.24.0** on 2024-05-12
118+
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.11.3 to **8.11.4** on 2024-05-12
119+
- [snakefmt](https://github.com/snakemake/snakefmt) from 0.10.1 to **0.10.2** on 2024-05-12
120+
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 8.8.0 to **8.8.1** on 2024-05-12
121+
- [terraform-fmt](https://developer.hashicorp.com/terraform/cli/commands/fmt) from 1.8.2 to **1.8.3** on 2024-05-12
122+
- [terragrunt](https://terragrunt.gruntwork.io) from 0.58.2 to **0.58.4** on 2024-05-12
123+
- [phpstan](https://phpstan.org/) from 1.10.67 to **1.11.0** on 2024-05-13
124+
- [pylint](https://pylint.readthedocs.io) from 3.1.0 to **3.1.1** on 2024-05-13
125+
- [lychee](https://lychee.cli.rs) from 0.15.0 to **0.15.1** on 2024-05-13
126+
- [ansible-lint](https://ansible-lint.readthedocs.io/) from 24.2.3 to **24.5.0** on 2024-05-18
127+
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.87.2 to **0.87.3** on 2024-05-18
128+
- [dotnet-format](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-format) from 8.0.104 to **8.0.105** on 2024-05-18
129+
- [phplint](https://github.com/overtrue/phplint) from 9.2.0 to **9.3.1** on 2024-05-18
130+
- [phpstan](https://phpstan.org/) from 1.11.0 to **1.11.1** on 2024-05-18
131+
- [pylint](https://pylint.readthedocs.io) from 3.1.1 to **3.2.1** on 2024-05-18
132+
- [pyright](https://github.com/Microsoft/pyright) from 1.1.362 to **1.1.363** on 2024-05-18
133+
- [checkov](https://www.checkov.io/) from 3.2.91 to **3.2.95** on 2024-05-18
134+
- [git_diff](https://git-scm.com) from 2.43.0 to **2.43.4** on 2024-05-18
135+
- [trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.75.1 to **3.76.3** on 2024-05-18
136+
- [lightning-flow-scanner](https://github.com/Lightning-Flow-Scanner) from 2.24.0 to **2.25.0** on 2024-05-18
137+
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.11.4 to **8.11.6** on 2024-05-18
138+
- [terragrunt](https://terragrunt.gruntwork.io) from 0.58.4 to **0.58.5** on 2024-05-18
139+
- [xmllint](https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home) from 21107 to **21108** on 2024-05-18
122140
<!-- linter-versions-end -->
123141

124142
## [v7.11.1] - 2024-04-23

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ RUN GOBIN=/usr/bin go install github.com/mgechev/revive@latest
3535

3636
FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
3737
FROM ghcr.io/assignuser/chktex-alpine:latest as chktex
38-
FROM ghcr.io/phpstan/phpstan:latest-php8.3 as phpstan
3938
FROM yoheimuta/protolint:latest as protolint
4039
FROM golang:alpine as dustilock
4140
RUN GOBIN=/usr/bin go install github.com/checkmarx/[email protected]
@@ -112,6 +111,7 @@ RUN apk add --no-cache \
112111
php83-curl \
113112
php83-dom \
114113
php83-opcache \
114+
php83-openssl \
115115
php83-common \
116116
php83-simplexml \
117117
dpkg \
@@ -178,7 +178,7 @@ ENV PATH="/root/.cargo/bin:${PATH}"
178178

179179
#PIPVENV__START
180180
RUN PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir --upgrade pip virtualenv \
181-
&& mkdir -p "/venvs/ansible-lint" && cd "/venvs/ansible-lint" && virtualenv . && source bin/activate && PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir ansible-lint && deactivate && cd ./../.. \
181+
&& mkdir -p "/venvs/ansible-lint" && cd "/venvs/ansible-lint" && virtualenv . && source bin/activate && PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir ansible-lint=='24.2.3' && deactivate && cd ./../.. \
182182
&& mkdir -p "/venvs/cpplint" && cd "/venvs/cpplint" && virtualenv . && source bin/activate && PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir cpplint && deactivate && cd ./../.. \
183183
&& mkdir -p "/venvs/cfn-lint" && cd "/venvs/cfn-lint" && virtualenv . && source bin/activate && PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir cfn-lint && deactivate && cd ./../.. \
184184
&& mkdir -p "/venvs/djlint" && cd "/venvs/djlint" && virtualenv . && source bin/activate && PYTHONDONTWRITEBYTECODE=1 pip3 install --no-cache-dir djlint && deactivate && cd ./../.. \
@@ -311,6 +311,7 @@ RUN echo 'gem: --no-document' >> ~/.gemrc && \
311311
#############################################################################################
312312

313313
#COPY__START
314+
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
314315
COPY --link --from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
315316
# shellcheck is a dependency for actionlint
316317

@@ -323,7 +324,6 @@ COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checke
323324
COPY --link --from=revive /usr/bin/revive /usr/bin/revive
324325
COPY --link --from=kubeconform /kubeconform /usr/bin/
325326
COPY --link --from=chktex /usr/bin/chktex /usr/bin/
326-
COPY --link --from=phpstan /composer/vendor/phpstan/phpstan/phpstan.phar /usr/bin/phpstan
327327
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
328328
COPY --link --from=dustilock /usr/bin/dustilock /usr/bin/dustilock
329329
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
@@ -467,6 +467,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GI
467467
&& rm phive.phar.asc \
468468
&& update-alternatives --install /usr/bin/php php /usr/bin/php83 110
469469

470+
# Managed with COPY --from=composer/composer:2-bin /composer /usr/bin/composer
471+
ENV PATH="/root/.composer/vendor/bin:${PATH}"
470472

471473
# POWERSHELL installation
472474
RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz \
@@ -630,12 +632,11 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
630632

631633

632634
# phpcs installation
633-
RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192,95DE904AB800754A11D80B605E6DDE998AB73B8E
635+
RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require squizlabs/php_codesniffer bartlett/sarif-php-sdk
634636

635637

636638
# phpstan installation
637-
# Managed with COPY --link --from=phpstan /composer/vendor/phpstan/phpstan/phpstan.phar /usr/bin/phpstan
638-
RUN chmod +x /usr/bin/phpstan
639+
RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require phpstan/phpstan bartlett/sarif-php-sdk
639640

640641
# psalm installation
641642
RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && phive --no-progress install psalm -g --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5
@@ -726,7 +727,7 @@ RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh |
726727
# && rm -rf /root/.npm/_cacache
727728

728729
# lightning-flow-scanner installation
729-
&& echo y|sf plugins install lightning-flow-scanner \
730+
&& echo y|sf plugins install lightning-flow-scanner@2.24.0 \
730731
&& npm cache clean --force || true \
731732
&& rm -rf /root/.npm/_cacache \
732733

0 commit comments

Comments
 (0)