Skip to content

Commit 5aa3203

Browse files
Install dotenv-linter deterministically (#6385)
* Install dotenv-linter deterministically * wip * [build-command] Update generated files * wip * [build-command] Update generated files * wip --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6a11400 commit 5aa3203

File tree

22 files changed

+78
-41
lines changed

22 files changed

+78
-41
lines changed

.automation/generated/linter-helps.json

Lines changed: 13 additions & 20 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devskim": "1.0.67",
2626
"djlint": "1.36.4",
2727
"dockerfilelint": "1.8.0",
28-
"dotenv-linter": "3.3.0",
28+
"dotenv-linter": "4.0.0",
2929
"dotnet-format": "9.0.110",
3030
"dustilock": "1.2.0",
3131
"editorconfig-checker": "3.4.1",

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
2020
- Media
2121

2222
- Linters enhancements
23+
- Install dotenv-linter deterministically, by @bdovaz in <https://github.com/oxsecurity/megalinter/pull/6385>
2324

2425
- Fixes
2526

@@ -64,6 +65,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
6465
- [syft](https://github.com/anchore/syft) from 1.33.0 to **1.34.1** on 2025-10-15
6566
- [grype](https://github.com/anchore/grype) from 0.100.0 to **0.101.0** on 2025-10-15
6667
- [trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.90.8 to **3.90.9** on 2025-10-15
68+
- [dotenv-linter](https://dotenv-linter.github.io/) from 3.3.0 to **4.0.0** on 2025-10-19
6769
<!-- linter-versions-end -->
6870

6971
## [v9.1.0] - 2025-10-07

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
168168
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
169169
# renovate: datasource=dart-version depName=dart
170170
ARG DART_VERSION='3.8.3'
171+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
172+
ARG DOTENV_LINTER_VERSION=4.0.0
171173
# renovate: datasource=npm depName=gherkin-lint
172174
ARG NPM_GHERKIN_LINT_VERSION=4.2.4
173175
# renovate: datasource=github-tags depName=golangci/golangci-lint
@@ -883,7 +885,7 @@ ENV PATH="/usr/lib/dart/bin:${PATH}"
883885
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
884886
#
885887
# dotenv-linter installation
886-
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s \
888+
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}" \
887889
#
888890
# gherkin-lint installation
889891
#

flavors/c_cpp/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ ARG NPM_STYLELINT_CONFIG_STANDARD_VERSION=39.0.1
103103
ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
104104
# renovate: datasource=npm depName=stylelint-scss
105105
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
106+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
107+
ARG DOTENV_LINTER_VERSION=4.0.0
106108
# renovate: datasource=npm depName=gherkin-lint
107109
ARG NPM_GHERKIN_LINT_VERSION=4.2.4
108110
# renovate: datasource=npm depName=graphql
@@ -399,7 +401,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
399401
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
400402
#
401403
# dotenv-linter installation
402-
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s
404+
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}"
403405
#
404406
# gherkin-lint installation
405407
#

flavors/ci_light/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ ARG CARGO_SARIF_FMT_VERSION=0.8.0
6868
ARG CARGO_SHELLCHECK_SARIF_VERSION=0.8.0
6969
# renovate: datasource=npm depName=jscpd
7070
ARG NPM_JSCPD_VERSION=4.0.5
71+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
72+
ARG DOTENV_LINTER_VERSION=4.0.0
7173
# renovate: datasource=npm depName=npm-groovy-lint
7274
ARG NPM_GROOVY_LINT_VERSION=15.2.2
7375
# renovate: datasource=npm depName=@prantlf/jsonlint
@@ -254,7 +256,7 @@ COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
254256
# Managed with COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
255257
#
256258
# dotenv-linter installation
257-
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s
259+
RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}"
258260
#
259261
# npm-groovy-lint installation
260262
ENV JAVA_HOME_17=/usr/lib/jvm/java-17-openjdk

flavors/cupcake/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ ARG NPM_STYLELINT_CONFIG_STANDARD_VERSION=39.0.1
128128
ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
129129
# renovate: datasource=npm depName=stylelint-scss
130130
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
131+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
132+
ARG DOTENV_LINTER_VERSION=4.0.0
131133
# renovate: datasource=github-tags depName=golangci/golangci-lint
132134
ARG GO_GOLANGCI_LINT_VERSION=2.5.0
133135
# renovate: datasource=npm depName=graphql
@@ -653,7 +655,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
653655
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
654656
#
655657
# dotenv-linter installation
656-
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s \
658+
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}" \
657659
#
658660
# golangci-lint installation
659661
&& wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "v${GO_GOLANGCI_LINT_VERSION}" \

flavors/documentation/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
103103
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
104104
# renovate: datasource=pypi depName=cpplint
105105
ARG PIP_CPPLINT_VERSION=2.0.2
106+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
107+
ARG DOTENV_LINTER_VERSION=4.0.0
106108
# renovate: datasource=npm depName=graphql
107109
ARG NPM_GRAPHQL_VERSION=16.11.0
108110
# renovate: datasource=npm depName=graphql-schema-linter
@@ -389,7 +391,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
389391
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
390392
#
391393
# dotenv-linter installation
392-
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s
394+
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}"
393395
#
394396
# graphql-schema-linter installation
395397
#

flavors/dotnet/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ ARG NPM_STYLELINT_CONFIG_STANDARD_VERSION=39.0.1
120120
ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
121121
# renovate: datasource=npm depName=stylelint-scss
122122
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
123+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
124+
ARG DOTENV_LINTER_VERSION=4.0.0
123125
# renovate: datasource=npm depName=gherkin-lint
124126
ARG NPM_GHERKIN_LINT_VERSION=4.2.4
125127
# renovate: datasource=npm depName=graphql
@@ -471,7 +473,7 @@ RUN curl --retry 5 --retry-delay 5 -sLO "https://github.com/Azure/arm-ttk/releas
471473
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
472474
#
473475
# dotenv-linter installation
474-
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s
476+
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}"
475477
#
476478
# gherkin-lint installation
477479
#

flavors/dotnetweb/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ ARG NPM_STYLELINT_CONFIG_STANDARD_VERSION=39.0.1
124124
ARG NPM_STYLELINT_CONFIG_SASS_GUIDELINES_VERSION=12.1.0
125125
# renovate: datasource=npm depName=stylelint-scss
126126
ARG NPM_STYLELINT_SCSS_VERSION=6.12.1
127+
# renovate: datasource=github-tags depName=dotenv-linter/dotenv-linter
128+
ARG DOTENV_LINTER_VERSION=4.0.0
127129
# renovate: datasource=npm depName=gherkin-lint
128130
ARG NPM_GHERKIN_LINT_VERSION=4.2.4
129131
# renovate: datasource=npm depName=graphql
@@ -541,7 +543,7 @@ RUN curl --retry 5 --retry-delay 5 -sLO "https://github.com/Azure/arm-ttk/releas
541543
# Managed with COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
542544
#
543545
# dotenv-linter installation
544-
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s
546+
&& wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s -- -b /usr/local/bin "v${DOTENV_LINTER_VERSION}"
545547
#
546548
# gherkin-lint installation
547549
#

0 commit comments

Comments
 (0)