Skip to content

Commit

Permalink
Add trufflehog secret scanner (#2808)
Browse files Browse the repository at this point in the history
* Fix grype issue

* Trufflehog

* Truffle infos

* [automation] Auto-update linters version, help and documentation

* Install trufflehog with docker image

* cspell

* Downgrade grype

* mega-liter-runner ml config

* SARIF not available for truffleehog

* fix test cases

* [MegaLinter] Apply linters fixes

* cspell

* cli lint mode = project

* [MegaLinter] Apply linters fixes

* Trufflehog arguments

* cli help arg name

* trufflehog test case

* trufflehog args

* build

---------

Co-authored-by: nvuillam <nicolas.vuillamy@ox.security>
Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 15, 2023
1 parent f84e76f commit d491b4e
Show file tree
Hide file tree
Showing 45 changed files with 430 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .automation/generated/linter-links-previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@
"image": null,
"title": "Redirecting"
},
"trufflehog": {
"description": "Find and verify credentials. Contribute to trufflesecurity/trufflehog development by creating an account on GitHub.",
"image": "https://opengraph.githubassets.com/55d7b011372ebd97a601f51e0a882c04765952ec8a9de7f814746cc71a64face/trufflesecurity/trufflehog",
"title": "GitHub - trufflesecurity/trufflehog: Find and verify credentials"
},
"ts-standard": {
"description": "English \u2022 Espan\u0303ol (Latinoame\u0301rica) \u2022 Franc\u0327ais \u2022 Bahasa Indonesia \u2022 Italiano (Italian) \u2022 \u65e5\u672c\u8a9e (Japanese) \u2022 \u1112\u1161\u11ab\u1100\u116e\u11a8\u110b\u1165 (Korean) \u2022 Portugue\u0302s (Brasil) \u2022 \u7b80\u4f53\u4e2d\u6587 (Simplified Chinese) \u2022 \u7e41\u9ad4\u4e2d\u6587 (Taiwanese Mandarin).",
"image": null,
Expand Down
44 changes: 44 additions & 0 deletions .automation/test/gitleaks/bad/keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Basic auth:

https://admin:admin@the-internet.herokuapp.com/basic_auth

Private key:
-----BEGIN OPENSSH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k1pD0roGmtMzbujnURGxqRJ8gUmuIot4hpfyRSssvnRQQZ3lQCQCwHiE+HJxXWf5
c58zOMjW7o21tI8e13uUnbRoQVJM9XYqk1usPXIkYPYL9uOw3AW/Zn+cnDrsXvTK9ZxgGD
/90b1BNwVqMlUK+QggHNwl5qD8eoXK5cDvav66te+E+V7FYFQ06w3tytRVz8SjoaiChN02
muIjvl6G7Hoj1hObM2t/ZheN1EShS11z868hhS6Mx7GvIdtkXuvdiBYMiBLOshJQxB8Mzx
iug9W+Di3upLf0UMC1TqADGphsIHRU7RbmHQ8Rwp7dogswmDfpRSapPt9p0D+6Ad5VBzi3
f3BPXj76UBLMEJCrZR1P28vnAA7AyNHaLvMPlWDMG5v3V/UV+ugyFcoBAOyjiQgYST8F3e
Hx7UPVlTK8dyvk1Z+Yw0nrfNClI=
-----END OPENSSH PRIVATE KEY-----
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@
"TFLINT",
"THIRDPARTY",
"TIBANNA",
"TRUFFLEHOG",
"TSQL",
"TSQLLINT",
"TYPECHECK",
Expand Down Expand Up @@ -1370,6 +1371,8 @@
"trimstart",
"trivyignore",
"trollface",
"trufflehog",
"trufflesecurity",
"tsql",
"tsqllint",
"tsqllintrc",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-BETA-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:
"repository_syft",
"repository_trivy",
"repository_trivy_sbom",
"repository_trufflehog",
"rst_rst_lint",
"rst_rstcheck",
"rst_rstfmt",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-DEV-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ jobs:
"repository_syft",
"repository_trivy",
"repository_trivy_sbom",
"repository_trufflehog",
"rst_rst_lint",
"rst_rstcheck",
"rst_rstfmt",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-RELEASE-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
"repository_syft",
"repository_trivy",
"repository_trivy_sbom",
"repository_trufflehog",
"rst_rst_lint",
"rst_rstcheck",
"rst_rstfmt",
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN GOBIN=/usr/bin go install github.com/checkmarx/dustilock@v1.2.0

FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
FROM ghcr.io/terraform-linters/tflint:v0.47.0 as tflint
Expand Down Expand Up @@ -327,6 +328,7 @@ COPY --link --from=dustilock /usr/bin/dustilock /usr/bin/dustilock
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=kics /app/bin/kics /usr/bin/
COPY --from=kics /app/bin/assets /opt/kics/assets/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
COPY --link --from=tflint /usr/local/bin/tflint /usr/bin/
Expand Down Expand Up @@ -705,6 +707,9 @@ RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh |
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# sfdx-scanner-apex installation
&& sfdx plugins:install @salesforce/sfdx-scanner \
&& npm cache clean --force || true \
Expand Down
1 change: 1 addition & 0 deletions docs/standalone-linters.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
| REPOSITORY_SYFT | oxsecurity/megalinter-only-repository_syft:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-repository_syft/beta) |
| REPOSITORY_TRIVY | oxsecurity/megalinter-only-repository_trivy:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-repository_trivy/beta) |
| REPOSITORY_TRIVY_SBOM | oxsecurity/megalinter-only-repository_trivy_sbom:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-repository_trivy_sbom/beta) |
| REPOSITORY_TRUFFLEHOG | oxsecurity/megalinter-only-repository_trufflehog:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-repository_trufflehog/beta) |
| RST_RST_LINT | oxsecurity/megalinter-only-rst_rst_lint:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-rst_rst_lint/beta) |
| RST_RSTCHECK | oxsecurity/megalinter-only-rst_rstcheck:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-rst_rstcheck/beta) |
| RST_RSTFMT | oxsecurity/megalinter-only-rst_rstfmt:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-rst_rstfmt/beta) |
Expand Down
5 changes: 5 additions & 0 deletions flavors/ci_light/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ FROM mvdan/shfmt:latest-alpine as shfmt
FROM hadolint/hadolint:v2.12.0-alpine as hadolint
FROM mrtazz/checkmake:latest as checkmake
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
#FROM__END

##################
Expand Down Expand Up @@ -170,6 +171,7 @@ COPY --link --from=shfmt /bin/shfmt /usr/bin/
COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
#COPY__END

#############################################################################################
Expand Down Expand Up @@ -205,6 +207,9 @@ RUN wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/m
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

#OTHER__END

################################
Expand Down
1 change: 1 addition & 0 deletions flavors/ci_light/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"REPOSITORY_SECRETLINT",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"XML_XMLLINT",
"YAML_PRETTIER",
"YAML_YAMLLINT",
Expand Down
5 changes: 5 additions & 0 deletions flavors/cupcake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ FROM mrtazz/checkmake:latest as checkmake
FROM ghcr.io/phpstan/phpstan:latest-php8.1 as phpstan
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM lycheeverse/lychee:latest-alpine as lychee
FROM ghcr.io/terraform-linters/tflint:v0.47.0 as tflint
FROM tenable/terrascan:1.18.1 as terrascan
Expand Down Expand Up @@ -284,6 +285,7 @@ COPY --link --from=phpstan /composer/vendor/phpstan/phpstan/phpstan.phar /usr/bi
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=kics /app/bin/kics /usr/bin/
COPY --from=kics /app/bin/assets /opt/kics/assets/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
COPY --link --from=tflint /usr/local/bin/tflint /usr/bin/
COPY --link --from=terrascan /go/bin/terrascan /usr/bin/
Expand Down Expand Up @@ -477,6 +479,9 @@ RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# lychee installation
# Managed with COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/cupcake/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"RST_RST_LINT",
"RST_RSTCHECK",
"RST_RSTFMT",
Expand Down
5 changes: 5 additions & 0 deletions flavors/documentation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM mrtazz/checkmake:latest as checkmake
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -221,6 +222,7 @@ COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -286,6 +288,9 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
1 change: 1 addition & 0 deletions flavors/documentation/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"SNAKEMAKE_LINT",
"SNAKEMAKE_SNAKEFMT",
"SPELL_CSPELL",
Expand Down
5 changes: 5 additions & 0 deletions flavors/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM mrtazz/checkmake:latest as checkmake
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -240,6 +241,7 @@ COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -371,6 +373,9 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
1 change: 1 addition & 0 deletions flavors/dotnet/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"SNAKEMAKE_LINT",
"SNAKEMAKE_SNAKEFMT",
"SPELL_CSPELL",
Expand Down
5 changes: 5 additions & 0 deletions flavors/dotnetweb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM mrtazz/checkmake:latest as checkmake
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -260,6 +261,7 @@ COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -391,6 +393,9 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
1 change: 1 addition & 0 deletions flavors/dotnetweb/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"SNAKEMAKE_LINT",
"SNAKEMAKE_SNAKEFMT",
"SPELL_CSPELL",
Expand Down
5 changes: 5 additions & 0 deletions flavors/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM mrtazz/checkmake:latest as checkmake
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -229,6 +230,7 @@ COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -301,6 +303,9 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
1 change: 1 addition & 0 deletions flavors/go/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"SNAKEMAKE_LINT",
"SNAKEMAKE_SNAKEFMT",
"SPELL_CSPELL",
Expand Down
5 changes: 5 additions & 0 deletions flavors/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM mrtazz/checkmake:latest as checkmake
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -221,6 +222,7 @@ COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -362,6 +364,9 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
1 change: 1 addition & 0 deletions flavors/java/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"REPOSITORY_SEMGREP",
"REPOSITORY_TRIVY",
"REPOSITORY_TRIVY_SBOM",
"REPOSITORY_TRUFFLEHOG",
"SNAKEMAKE_LINT",
"SNAKEMAKE_SNAKEFMT",
"SPELL_CSPELL",
Expand Down
5 changes: 5 additions & 0 deletions flavors/javascript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FROM mstruebing/editorconfig-checker:2.7.0 as editorconfig-checker
FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
FROM yoheimuta/protolint:latest as protolint
FROM zricethezav/gitleaks:v8.17.0 as gitleaks
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
#FROM__END
Expand Down Expand Up @@ -241,6 +242,7 @@ COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checke
COPY --link --from=kubeconform /kubeconform /usr/bin/
COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/
COPY --link --from=vale /bin/vale /bin/vale
COPY --link --from=lychee /usr/local/bin/lychee /usr/bin/
#COPY__END
Expand Down Expand Up @@ -303,6 +305,9 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

# trufflehog installation
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# vale installation
# Managed with COPY --link --from=vale /bin/vale /bin/vale

Expand Down
Loading

0 comments on commit d491b4e

Please sign in to comment.