-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid storing copies of files in layer for kubeval, shellcheck, and misspell #1229
Conversation
@echoix wow, what an analysis, thanks ! :) Some installation instructions already have "cleanup" script lines, but having them on all linters could dramatically enhance performances ^^ But to apply changes in descriptors to Dockerfiles, you need to run |
Oh, I missed that, but I figured out that these were the source of the changes. I thought that the Dockerfiles were generated by themselves since it says to not edit them everywhere. I'm not sure I have a working Linux installation that is ready to run that build script though, I'm on Windows. Docker I'm fine, but the closest I have is WSL2 or msys2, both which I don't think they're constant enough. It'll be for mother day. |
@echoix i'm on windows too, just use Git bash (installed with git for windows) and it will work fine :) |
Codecov Report
@@ Coverage Diff @@
## main #1229 +/- ##
==========================================
+ Coverage 84.49% 84.52% +0.02%
==========================================
Files 142 142
Lines 3470 3470
==========================================
+ Hits 2932 2933 +1
+ Misses 538 537 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great, thanks a lot for your contribution :)
- plz add "MLDL" in .cspell.json to cspell check passes :)
Did you have a better idea of folder structure for the downloads? And following this, a better idea for the Megalinter download variable? It was just a draft. For the build procedure, it makes senses, but afterwards, it's where the "license" files are kept to try to be compliant with the majority of licenses, and its not that obvious.. |
Oh, and instead of changing the folder name each time, is there a way to reuse the linter_name of the yaml in the commands edited, or theres no way out of manually specifying it? |
I think you can also remove the license files, as all of them are replicated in MegaLinter documentation :) |
I'm not shocked if we have to specify manually in descriptor files, but maybe there is a repeating pattern of find/replace within RUN instructions that could be applied in build.py ? Something like when we detect Example before: RUN wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv -C {{ML_DOWNLOAD_DIR}} \
&& mv "{{ML_DOWNLOAD_DIR}}/shellcheck-stable/shellcheck" /usr/bin/ \
&& shellcheck --version Example after: RUN mkdir -p /download/shellcheck \
&& wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv -C /download/shellcheck \
&& mv "/download/shellcheck/shellcheck-stable/shellcheck" /usr/bin/ \
&& shellcheck --version \
&& find /download/shellcheck -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \ |
In that case,
Hmm... I'm not sure adding another layer of abstraction is really advantageous here. At some place we need a build recipe, and none of the software are the same neither. Maybe something that we can understand and debug when changes need to be made can worth more than trying to uniformize too much. All these commands come from an adaptation of the author's original instructions, so changing less (and not hiding what is done) is good. And for the licences, if we don't need, then the commands could be simplified to removing the folder completely (on a case by case verification that everything is copied elsewhere). But I'm reading if to fully respect some of the licenses that say that when we distribute, we must include the present file, if that means in the container. |
You're probably right about licenses :) So if no additional level of abstraction, let's keep your way by defining things manually :) |
Oh, I think this should be usefull https://developers.redhat.com/articles/2021/11/11/best-practices-building-images-pass-red-hat-container-certification#best_practice__7__embed_license_information_inside_your_image On second thought, only leaving the licence files should do it. |
The copies are removed in the layer by immediatly deleting the files in the same `RUN` command. The LICENSE files are kept.
bd4776e
to
31c3573
Compare
After the CI passes, it's going to be ok to merge ;) |
@echoix so it passed :) |
Of course, it's a start! |
* PHP version switch (#1083) * fixe issue #1060 * fix hadolint error DL3059 * [automation] Auto-update linters version, help and documentation (#1088) * [automation] Auto-update linters version, help and documentation * Increase trivy timeout * [automation] Auto-update linters version, help and documentation (#1091) * Release MegaLinter v5.3.0 * [automation] Auto-update linters version, help and documentation (#1097) * Fix CHANGELOG * [automation] Auto-update linters version, help and documentation (#1098) * [automation] Auto-update linters version, help and documentation (#1100) * [automation] Auto-update linters version, help and documentation (#1101) * [automation] Auto-update linters version, help and documentation (#1104) * [automation] Auto-update linters version, help and documentation (#1107) * [automation] Auto-update linters version, help and documentation (#1109) * [automation] Auto-update linters version, help and documentation (#1113) * [automation] Auto-update linters version, help and documentation (#1114) * [automation] Auto-update linters version, help and documentation (#1116) * [automation] Auto-update linters version, help and documentation (#1117) * [automation] Auto-update linters version, help and documentation (#1118) * [automation] Auto-update linters version, help and documentation (#1121) * Release MegaLinter v5.4.0 * [automation] Auto-update linters version, help and documentation (#1122) * [automation] Auto-update linters version, help and documentation (#1123) * [automation] Auto-update linters version, help and documentation (#1124) * [automation] Auto-update linters version, help and documentation (#1129) * [clj-kondo] update docs and version to 2021.12.19 (#1126) Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * fix "MegaLinter vs Super-Linter" link in README (#1130) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1131) * [automation] Auto-update linters version, help and documentation (#1135) * [automation] Auto-update linters version, help and documentation (#1138) * [automation] Auto-update linters version, help and documentation (#1141) * [automation] Auto-update linters version, help and documentation (#1142) * Release MegaLinter v5.5.0 * Increase node.js --max-old-space-size to 8192 (#1149) * Increase node.js --max-old-space-size to 8192 * Build * [automation] Auto-update linters version, help and documentation (#1144) * trivy * [automation] Auto-update linters version, help and documentation (#1151) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1155) * [automation] Auto-update linters version, help and documentation (#1156) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1159) * [automation] Auto-update linters version, help and documentation (#1161) * Upgrade clj-kondo (#1165) * [automation] Auto-update linters version, help and documentation (#1164) * [automation] Auto-update linters version, help and documentation (#1167) * [automation] Auto-update linters version, help and documentation (#1170) * Retrieve licenses for documentation + fix config file + env issue (#1168) * [automation] Auto-update linters version, help and documentation * Disable Github Status reporter * Breaking change: GITHUB_STATUS_REPORTER disabled by default * Breaking change: set PRINT_ALL_FILES default to false * Deploy V6 image (#1035) * QuickFix CI job * New flavor Security (#1036) * Java PMD v0 * Java Pmd v0.01 * Working Java + pmd :) * changelog + doc * Genedate doc + manage offline mode * changelog * Bring back referring linters * Fix build * Automate update of changelog when new release (v0) * Do not create commit & tag with npm version * Move markdown formatting * .md * PMD install commands * More pmd descriptor infos + build * Fix megalinter errors * Fix PMD install commands + build * [MegaLinter] Apply linters fixes * Hardcode some licenses * [MegaLinter] Apply linters fixes * Add gitleaks * Build with gitleaks * Gitleaks fixes * changelog * New descriptor: repository TODO: deprecate git and credentials * New descriptor "repository" * Add Goodcheck Goodcheck updates * Fix PMD * Fix PMD * [MegaLinter] Apply linters fixes * Fix pmd installation * Typo * wget --quiet * Add trivy * Build v6-alpha flavors * Remove git & credentials descriptors + upgrade python base image * Upgrade python * New flavor Security v0 * Fix ansible-lint install * Deploy v6-alpha documentation * Fix test class quick build * Disable java pmd * Downgrade python version * SARIF v0 * Update descriptor JSON schema + retries for sgerrand url * Add SARIF output for checkov * Add SARIF output for eslint * [automation] Auto-update linters version, help and documentation (#1038) * Fix gitleaks * Build * Do not skip build if failed * Do not test SARIF when SARIF is not active on a linter * Update ansible install * Fix goodcheck tests * Fix markdown-table-formatter * Fix trivy command * Fix checkov test case + manage default sarif output file * use MegaLinter beta for now * Update CI for new default report folder + Manage {{REPORT_FOLDER}} in CLI variables * Exit code 1 for trivy * Fix replace_vars definition * Do not run test mega-linter-runner when docker build failed * Fix replace_vars * Downgrade v8r version * Fix arm test case * build * Fix again arm test case * Fix makedirs for report folder * Rename default report folder into megalinter-reports * Fix gitleaks * Try again gitleaks * Fix last errors * Fix internal lint errors Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * v6-alpha for github action * Adapt CI for v6-alpha. (#1062) * Fix own MegaLinter errors (#1063) * Fix own MegaLinter errors * Do not use secretlint on report folder * Fix gitleaks own config * Use regexes in gitleaks toml config file * grmblmblm * try with paths * Regex to gather gitleaks errors * Make gitleaks non blocking * Update gitleaks descriptor * Debug gitleaks (#1068) * Debug gitleaks * Remove LinkedIn ID gitleaks check * Ignore .gitleaks.toml files * Update security flavor + toml gitleaks update to use regexes * Try again... * Fix gitleaks config (use regexes in paths) * Update default .gitleaks.toml files * Clean dev variables * Build * Retrofit latest v5 updates into v6 (#1070) * [automation] Auto-update linters version, help and documentation (#1038) * Implement new linter PHPLint (#1037) * add new phplint linter (see #1031) * use composer global install for overture/phplint * update changelog * fix feature #1043 (#1044) * Add @babel/eslint-parser as dependency for eslint (#1045) * [automation] Auto-update linters version, help and documentation (#1046) * [automation] Auto-update linters version, help and documentation + @babel-core * Add @babel-core dependency * Use node.js LTS and not nodejs-current * Downgrade v8r version * Fix arm test case * Fix again arm test case * [automation] Auto-update linters version, help and documentation * Build * [automation] Auto-update linters version, help and documentation (#1050) * [automation] Auto-update linters version, help and documentation (#1052) * [automation] Auto-update linters version, help and documentation * Update doc for gitlab MegaLinter config * Bandit default config file (#1051) * remove default parameters * add default bandit configfile built with bandit-config-generator command * update changelog * update bandit doc page Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Try again ktlint auto-upgrade (#976) * [automation] Auto-update linters version, help and documentation (#1055) * [automation] Auto-update linters version, help and documentation (#1056) * Docs & links (#1058) * Update stale config * Fix getting linter version of npm plugin. (#804) * [automation] Auto-update linters version, help and documentation (#1059) * Fix doc * [automation] Auto-update linters version, help and documentation (#1065) * [automation] Auto-update linters version, help and documentation (#1067) * build Co-authored-by: Laurent Laville <laurent.laville@gmail.com> * SARIF for gitleaks (#1069) * SARIF for gitleaks * Sarif python test class v0 * Lint fix + changelog * Generate security flavor * SARIF support for trivy (#1071) * [automation] Auto-update linters version, help and documentation (#1038) * Implement new linter PHPLint (#1037) * add new phplint linter (see #1031) * use composer global install for overture/phplint * update changelog * fix feature #1043 (#1044) * Add @babel/eslint-parser as dependency for eslint (#1045) * [automation] Auto-update linters version, help and documentation (#1046) * [automation] Auto-update linters version, help and documentation + @babel-core * Add @babel-core dependency * Use node.js LTS and not nodejs-current * Downgrade v8r version * Fix arm test case * Fix again arm test case * [automation] Auto-update linters version, help and documentation * Build * [automation] Auto-update linters version, help and documentation (#1050) * [automation] Auto-update linters version, help and documentation (#1052) * [automation] Auto-update linters version, help and documentation * Update doc for gitlab MegaLinter config * Bandit default config file (#1051) * remove default parameters * add default bandit configfile built with bandit-config-generator command * update changelog * update bandit doc page Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Try again ktlint auto-upgrade (#976) * [automation] Auto-update linters version, help and documentation (#1055) * [automation] Auto-update linters version, help and documentation (#1056) * Docs & links (#1058) * Update stale config * Fix getting linter version of npm plugin. (#804) * [automation] Auto-update linters version, help and documentation (#1059) * Fix doc * [automation] Auto-update linters version, help and documentation (#1065) * [automation] Auto-update linters version, help and documentation (#1067) * SARIF for gitleaks * Sarif python test class v0 * Lint fix + changelog * SARIF support for trivy * Accelerate and fix internal tests * Fix SARIF files * Fix trivy sarif args * [automation] Auto-update linters version, help and documentation (#1072) * Fix SarifReporter * Better handling of SARIF error management * Fix SARIF default file name use quick build * Fix sarif reporter exception management * Variabilize default release * Improve runtime perfs when FLAVOR_SUGGESTIONS: false (#1073) * Improve runtime perfs when FLAVOR_SUGGESTIONS: false * [MegaLinter] Apply linters fixes * Fix how to get MEGALINTER_FLAVOR * Fix ignore flavor suggestion test class Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Build Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * V6/popularity - Display github stars in all linters documentation (#1075) * Add popularity * Update descriptors to add linter_repo when missing * FLAVOR_SUGGESTIONS:false to improve perfs * Build * Enhance documentation (#1078) * Popularity column in all tables * More badges in linters list doc * cspell * Fix sarif test case (#1079) * Fix sarif test case * Fix hardcoded reporter folder name in test case * Remove dockerfilelint (#1080) * Remove dockerfilelint * changelog * Upgrade to AWS cfn-lint (#1085) * Upgrade to AWS cfn-lint * Build * Add SARIF management for cfn-lint * Add cfn-lint example SARIF output file * SARIF management for Hadolint (#1089) * SARIF management for Hadolint * Update .gitleaks.toml to ignore .mypy_cache folder * Catch SARIF error * Upgrade hadolint to 2.8.0-alpine * SARIF for checkstyle (#1093) * SARIF for ktlint (#1095) * SARIF for all eslint uses (#1094) * SARIF management for go revive (#1092) * SARIF management for go revive * fix descriptor quick build * SARIF Management for PHP PSALM (#1096) * Build doc * More SARIF examples * V6/docker standalone linters (#1099) * Build unique linters dockerfiles * Dockerfiles for unique linters + Improve perfs * CI to build standalone images * Fix CI * Matrix jobs: do not fail other jobs if one fails * Manage docker build --squash * Add test cases to "only" docker images * No codecov call when not running all tests * Create output sarif folder when SARIF is from stdout * Remove useless python packages for ML runtime * Remove pytest-cov pytest-timeout from runtime image * Optimize Until dotenv linter * gcc in all dockerfiles + go for actionlint * Add libffi-dev in all Docker images * Add make * add bash * add musl-dev * Fix linters install * gnugpg for php * Automate node & ruby-dev installation if packages are used in install * Fix dotnet install * More preset variables on single-linter docker images * typo * typo2 * Add ruby-bundler for gem packages * Remove PHP_BUILTIN as it has been replaced by PHP_PHPLINT * Fix descriptors and test class * Improve CI perfs for only-linters build * More fixes * Fix kotlin install * Fix raku install * Fix R * Fix scala * Fix TSX * Fix Vb .NET * Build * Linters page * rollback raku * Fix terraform_fmt & rollback raku * Try fix rakudo * Fix duplicate ARG and FROM in dockerfile * Fix python lint err * Disable lint_all_other_linters_files=true if in SINGLE_LINTER mode * lint fix * Reduce docker layers * Reduce again the list of docker build steps * Do not keep text logs if not wanted + linter delete SARIF files * Fix CI * Fix SARIF test case * Disable deprecated test case * Terrascan SARIF management (#1103) * Terrascan SARIF management * tflint SARIF management * Fix terrascan args * cspell * MegaLinter server (#1106) * PHP version switch (#1083) * fixe issue #1060 * fix hadolint error DL3059 * [automation] Auto-update linters version, help and documentation (#1088) * [automation] Auto-update linters version, help and documentation * Increase trivy timeout * [automation] Auto-update linters version, help and documentation (#1091) * Release MegaLinter v5.3.0 * [automation] Auto-update linters version, help and documentation (#1097) * Fix CHANGELOG * [automation] Auto-update linters version, help and documentation (#1098) * [automation] Auto-update linters version, help and documentation (#1100) * [automation] Auto-update linters version, help and documentation (#1101) * [automation] Auto-update linters version, help and documentation (#1104) * KEEP_ALIVE_MEGALINTER v0 * openssh * Build standalone linters only for linters managing SARIF * Entrypoint * Entrypoint: exit when test cases called * Add openrc * Try another way https://github.com/danielguerra69/alpine-sshd * Startup lines at the end * Test simple case with password * rhaaaa * Remove ssh stuff as we loose env variables * Server v0 * Server v0 * Add workspace argument * Expose on port 80 * Manage running processes * try debug flask * debug mode for server * v0 ? * Fix server for report file name * SARIF in http response * [automation] Auto-update linters version, help and documentation (#1107) * [automation] Auto-update linters version, help and documentation (#1109) * [automation] Auto-update linters version, help and documentation (#1113) * Bring back ssh * Set env variables for all users * [automation] Auto-update linters version, help and documentation (#1114) * [automation] Auto-update linters version, help and documentation (#1116) * [automation] Auto-update linters version, help and documentation (#1117) * new SSH way with tmux * Build * Allow PWD auth for testing * [automation] Auto-update linters version, help and documentation (#1118) * [automation] Auto-update linters version, help and documentation (#1121) * Release MegaLinter v5.4.0 * [automation] Auto-update linters version, help and documentation (#1122) * [automation] Auto-update linters version, help and documentation (#1123) * [automation] Auto-update linters version, help and documentation (#1124) * [automation] Auto-update linters version, help and documentation (#1129) * [clj-kondo] update docs and version to 2021.12.19 (#1126) Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * fix "MegaLinter vs Super-Linter" link in README (#1130) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Move ssh management to entrypoint * QuickFix * try again * Stop docker container if entrypoint fails * Sh in container * alias for megalinger when running in server mode (#1133) makes running megalinter in server mode easier * aliases * Build * tmux_exec * Build ! * [automation] Auto-update linters version, help and documentation (#1131) * gha * motd * build * -input and -output v0 * Use argparse * Use parse_known_args * config.set * [automation] Auto-update linters version, help and documentation (#1135) * DOCKER_DEFAULT_WORKSPACE_DIR & absolue path for --input argument * introduce shell script to convenience running from ssh (#1137) * Create megalinter_tmux * Update build.py * Build Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Use --input * Fix --input + CI * CI for Inbar (create branch named v6_inbar ) * [automation] Auto-update linters version, help and documentation (#1138) * [automation] Auto-update linters version, help and documentation (#1141) * [automation] Auto-update linters version, help and documentation (#1142) * Release MegaLinter v5.5.0 * V6 inbar (#1143) * capture std is optional capture std is optional * improve megalinter_tmux script add verbosity as an optional flag, improve some messages, add comments, fix script name in examples * Bash file as executable * Fix shellcheck issue https://github.com/koalaman/shellcheck/wiki/SC2124 * Python & Dockerfiles lint errors * cspell * Build * Ignore tmux_exec for bash controlling * pylint err * cspell Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> * V6 semgrep (#1147) * Add semgrep * Manage cli_config_default_value * Manage case when SARIF output is only the last sdout line * Add python test files for semgrep * semgrep --error * use regex to extract json * Use find / rfind instead of regex * fix * fix crash * reverse does not have a return value * Fix sarif_default_output_file process * Check SARIF consistency in test classes * Fix position to extract JSON from stdout * position again * Remove SARIF file from previous runs * Stupid typo + remove aggregate SARIF if pre-existing ^^ * changelog * Fix lint errors + descriptor json schema * Build doc * Automatically select security rulesets for semgrep (#1148) * Automatically select security rulesets for semgrep * Test classes for semgrep security rulesets * Do not overwrite test class if already existing * semgrep check failure * Any v6- and v6_ branch generates standalone linters * lint fixes * document additional megalinter semgrep config vars * build * SARIF enhancements (and trivy failed attempts) (#1150) * More general info in sarif * Fix trivy install for SARIF * Build * Force sarif template path + upgrade trivy version * fix wget call * try chmod on sarif template * typo * trivy * Add devskim (#1152) * devskim v0 * devskim bad example * Fix number of errors count * fix & Build doc * changelog * cspell * Fix CI * cspell * Fix trivy ? * fix trivy ? (2) * Try fix gitleaks (#1157) * Try fix gitleaks * trivy * Workaround until next version of trivy * build * Revert "Try fix gitleaks" This reverts commit e7c1be65c9dadc585cdea4c1302d75146d3acf8e. * Remove default gitleaks use + --no-git * --no-git back * SARIF for npm-groovy-lint (#1158) * SARIF for npm-groovy-lint * Fix GroovyLinter custom class * Factorize * Manage dynamic --no-git presence for gitleaks (#1162) * Manage dynamic --no-git presence for gitleaks * lint fix * Test upload SARIF to github * Retrieve licenses * Fix mixed config file + env variables config * Link to licenses * Update links to licenses * Fixes * fix lint err * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1171) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1174) * Fix call to npm-groovy-lint (#1177) * Fix npm-groovy-lint call https://github.com/megalinter/megalinter/issues/1176 * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * lint fix * lint fix (2) * Make python linters play nice with each other (#1182) * Make Flake8 play nice with Black * Change black comment example * Make pylint play nice with Black * Make flake8 pass Co-authored-by: Sam Chorlton <> * Upgrade clj-kondo (#1181) * Bump cljkondo/clj-kondo from 2022.01.13-alpine to 2022.01.15-alpine Bumps cljkondo/clj-kondo from 2022.01.13-alpine to 2022.01.15-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * upgrade clj-kondo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix wrong status in reports when DISABLE_ERRORS is used (#1184) * Bump peter-evans/create-pull-request from 3.11.0 to 3.12.0 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.11.0 to 3.12.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.11.0...v3.12.0) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.4.1 to 2.5.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 2.5.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.4.1...v2.5.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump shelljs from 0.8.4 to 0.8.5 in /mega-linter-runner Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Fix wrong status in reports when DISABLE_ERRORS is used * [automation] Auto-update linters version, help and documentation * Fix wrong status in reports when DISABLE_ERRORS is used * Test cases fixes * fix test class * [MegaLinter] Apply linters fixes quick build * Fix test class quick build * Fix test class quick build * Update checkov & kics tests quick build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * CHANGELOG * Release MegaLinter v5.6.0 * Fix v5 doc deployment (#1192) https://github.com/megalinter/megalinter/issues/1190 * Bump node-fetch from 2.6.6 to 2.6.7 in /mega-linter-runner (#1193) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7) --- updated-dependencies: - dependency-name: node-fetch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * QuickFix doc generation * QuickFix doc generation (2) * [automation] Auto-update linters version, help and documentation (#1194) * Gitlab comment reporter (#732) * Gitlab comment reporter * remove pip requests package downgrade * typo * lint fixes * Build * Build * Use CI_SERVER_URL * Use more constant variables * Retrofit upgrades from v5 * Alternative way to find merge request id * Update reporters * Debug traces * Fixes * fix log * Manage MEGALINTER_ACCESS_TOKEN quick build * Quick build push step quick build push * Update doc & var name quick build push * Remove development logs * Update doc * Update & build doc * Doc & build * CI job instead of CI Action * Lint fixes * [automation] Auto-update linters version, help and documentation (#1195) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * QuickFix Gitlab comments reporter quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix Gitlab comment reporter when MR not found (#1197) * QuickFix Gitlab Comments reporter for self-hosted instances * [automation] Auto-update linters version, help and documentation (#1198) * [automation] Auto-update linters version, help and documentation * QuickFix lint * [automation] Auto-update linters version, help and documentation (#1201) * [automation] Auto-update linters version, help and documentation * Fix sqlfluff bug * Add configuration file option for SQLFluff (#1200) * Add configuration file for SQLFluff * Correct config file name * Update megalinter/descriptors/sql.megalinter-descriptor.yml Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Fix Github auth on Azure Pipelines (#1202) * Fix Github auth on Azure Pipelines Fix issue when using `VALIDATE_ALL_CODEBASE: false` on Azure Pipelines by defining auth header in CI env variable GIT_AUTHORIZATION_BEARER ([#1125](https://github.com/megalinter/megalinter/issues/1125)) * [MegaLinter] Apply linters fixes * Update doc for Azure Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add compatibility for prettier (#1209) Co-authored-by: Sam Chorlton <> * [automation] Auto-update linters version, help and documentation (#1203) * [automation] Auto-update linters version, help and documentation * Remove downgrade of sqlfluff https://github.com/megalinter/megalinter/pull/1200 * Use .gitignore as .secretlintignore when necessary (#1210) * Use .gitignore as .secretlintignore when necessary * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix tflint initialization (#1204) * Fix tflint initialization Fix tflint initialization so it uses configuration file when defined ([#1134](https://github.com/megalinter/megalinter/issues/1134)) * changelog * Fix python lint errors * [automation] Auto-update linters version, help and documentation (#1211) * Undo rubocop downgrade (#1214) * Fix Gitlab comment reporter (#1215) * Fix Gitlab comment reporter * Update Gitlab documentation with gif tutorial * Lint fix * Improve linter perfs & logs (#1217) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * HTMLHint config to count errors + test method * Use list_of_files mode with htmlhint * changelog * ShellCheck: cli_lint_mode: list_of_files to improve perfs * shfmt ci_lint_mode: list_of_files + regex count quick build push * Update test case for markdown-link-check quick build push * test (TODO: remove after) * Fix lint error quick build push * cpplint: Display correct number of errors in logs quick build push * Count actionlint errors quick build push * Count errors perlcritic quick build push * Count chktex errors quick build push * Enhance test class error message quick build push * Let's not test TAP anymore * Update test case files quick build push * Fix perlcritic test case quick build push * Fix python test cases quick build push * Fix perlcritic regex count quick build push * Fix SF test cases quick build push * Fix shell test case quick build push * Bash exec doc * Fix doc Fixes https://github.com/megalinter/megalinter/issues/1212 * Fix salesforce config quick build push * Fix mypy test case quick build push * Update mypy ref url quick build push * Revert "test (TODO: remove after)" This reverts commit 2dfd39edd1666e85ed28373f36475df5c5c63ccf. * Build quick build * [MegaLinter] Apply linters fixes quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Use apk to install shfmt * Downgrade snakemake * Downgrade snakemake (#1218) * Downgrade snakemake * Downgrade snakefmt * [automation] Auto-update linters version, help and documentation (#1219) * [automation] Auto-update linters version, help and documentation * Update GHA template * Change snakemake install method then Build * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1222) * Order changelog * Release MegaLinter v5.7.0 * Update .cspell default config (#1226) * Improve performances (#1227) * stylelint: list_of_files * standard: list_of_files * markdown-link-check: list_of_files * Upgrade link ref * [automation] Auto-update linters version, help and documentation (#1225) * [automation] Auto-update linters version, help and documentation (#1230) * Manage before_exit() & clean git repo (#1232) Fixes https://github.com/megalinter/megalinter/issues/1125 quick build push * [automation] Auto-update linters version, help and documentation (#1233) * [automation] Auto-update linters version, help and documentation (#1235) * [automation] Auto-update linters version, help and documentation (#1238) * Auto-upgrade pip + temporary disable snakemake + fix gitlab error message (#1236) * Auto-upgrade pip * Manage disable linter + disable snakefmt * Undowngrade snakemake + build * Fix upgrade pip & lint fix * Lint fix * [MegaLinter] Apply linters fixes * Fix build * [MegaLinter] Apply linters fixes * Fix gitlab token error labels * Disable snakemake test. Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1240) * Release MegaLinter v5.7.1 * Animated gif for assisted configuration * [automation] Auto-update linters version, help and documentation (#1241) * [automation] Auto-update linters version, help and documentation (#1242) * [automation] Auto-update linters version, help and documentation (#1243) * Fix GitlabCommentReporter raise unhandled exception if no merge request has been found (#1247) * [automation] Auto-update linters version, help and documentation (#1245) * Doc images (#1251) * Bump peter-evans/create-pull-request from 3.12.0 to 3.12.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.12.0 to 3.12.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.12.0...v3.12.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * cspell + sample ML users * animated gifs * Build. * changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add publish artifact task in azure pipeline doc * [automation] Auto-update linters version, help and documentation (#1250) * [automation] Auto-update linters version, help and documentation * cspell * Manage Gitlab certificate (#1249) * Manage gitlab certificate * Build * Manage GITLAB_CUSTOM_CERTIFICATE quick build push * Fix python issue quick build push * Error msg doc * [MegaLinter] Apply linters fixes * Update config json schema quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Allow Eslint with config in package.json #1205 (#1206) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1253) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Gitlab reporter doc * cspell * Avoid storing copies of files in layer for kubeval, shellcheck, and misspell (#1229) * Avoid storing copy in layer for kubeval, shellcheck, misspell The copies are removed in the layer by immediatly deleting the files in the same `RUN` command. The LICENSE files are kept. * Apply changes in descriptors to Dockerfiles * Improve call of ansible-lint (#1255) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix * Fix ansible-lint test cases quick build push * [MegaLinter] Apply linters fixes * Fix ansible test cases (2) * Fix ansible test cases (2) quick build push * Fix call to ansible-lint * Build * Install ansible-lint using pip * Update ansible-lint test cases * Count errors & update ansible-lint test cases * [MegaLinter] Apply linters fixes * Move .ansible-lint at the good location Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * changelog * [automation] Auto-update linters version, help and documentation (#1257) * Fix suggestion to use proper variable name (#1261) * Fix suggestion to use proper variable name * Update CHANGELOG.md * [automation] Auto-update linters version, help and documentation (#1260) * [automation] Auto-update linters version, help and documentation (#1263) * Update mkdocs.yml * [automation] Auto-update linters version, help and documentation (#1271) * [automation] Auto-update linters version, help and documentation (#1272) * [automation] Auto-update linters version, help and documentation * more users * Terrascan: cli_lint_mode = project (#1274) * Terrascan: cli_lint_mode = project * terrascan: config arg name & config file name * trivy * [automation] Auto-update linters version, help and documentation (#1273) * [automation] Auto-update linters version, help and documentation (#1278) * [automation] Auto-update linters version, help and documentation (#1280) * Release MegaLinter v5.8.0 * trivy * [automation] Auto-update linters version, help and documentation (#1284) * [automation] Auto-update linters version, help and documentation * trivy * Use latest npm version (#1276) * Use latest npm * Build * WORKDIR / * trivy * Generate JSON schema HTML doc when bash build.sh --doc is called (#1289) * Generate JSON schema HTML doc when bash build.sh --doc is called * changelog * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine (#1281) * more users * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine * rubocop: remove `--force-exclusion` from auto-added parameters (#1290) Fixes https://github.com/megalinter/megalinter/issues/302 * New linter: kubeconform (#1285) * New linter: kubeconform * kubeconform: Fix launch cmd * kubeconform: fix spelling * kubeconform: fix error count * kubeconform: fix regex * kubeconfirm: adding bad files to test counts * Force rebuild * Rollback license update ! * Remove JSON schema HTML doc from build.py * Recommended extensions for MegaLinter contribution (#1291) * Bump actions/github-script from 5 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Add recommended VsCode extensions for MegaLinter development Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1294) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trivy Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1295) * [automation] Auto-update linters version, help and documentation * lint * Add shell script linters to ci_light flavor (#1299) * 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> * [automation] Auto-update linters version, help and documentation (#1300) * [automation] Auto-update linters version, help and documentation (#1302) * [automation] Auto-update linters version, help and documentation (#1303) * Switch from jdk8 to jdk11 (#1309) * Terrascan init as pre-command (#1311) * [automation] Auto-update linters version, help and documentation * terrascan init as pre-command * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Reactivate snakefmt (#1312) * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1315) * [automation] Auto-update linters version, help and documentation (#1318) * [automation] Auto-update linters version, help and documentation (#1319) * [automation] Auto-update linters version, help and documentation (#1320) * [automation] Auto-update linters version, help and documentation (#1322) * [automation] Auto-update linters version, help and documentation (#1323) * [automation] Auto-update linters version, help and documentation (#1325) * [automation] Auto-update linters version, help and documentation (#1326) * [automation] Auto-update linters version, help and documentation * Users & fix * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1327) * [automation] Auto-update linters version, help and documentation (#1328) * [automation] Auto-update linters version, help and documentation (#1329) * Update SQLFluff default config with latest options (#1331) * Update SQLFluff default config for 0.11.0 * Sync with latest * [automation] Auto-update linters version, help and documentation (#1330) * [automation] Auto-update linters version, help and documentation (#1332) * [automation] Auto-update linters version, help and documentation (#1333) * [automation] Auto-update linters version, help and documentation * Fix ansible-lint test case * [automation] Auto-update linters version, help and documentation (#1335) * [automation] Auto-update linters version, help and documentation (#1336) * Upgrade hadolint (#1338) * Upgrade hadolint * hadolint config * [automation] Auto-update linters version, help and documentation (#1339) * Add article * Doc * doc * [automation] Auto-update linters version, help and documentation (#1342) * Release MegaLinter v5.10.0 * [automation] Auto-update linters version, help and documentation (#1343) * [automation] Auto-update linters version, help and documentation (#1344) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1346) * [automation] Auto-update linters version, help and documentation (#1349) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1351) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * pylint * Github Comment Reporter: Use a html comment to mark the comment (#1356) This replaces the old method, which looked for the "see error details" link, but that link was not always present in comments. The comment records the current workflow and jobid, so multiple mega-linters can comment on the same PR without colliding. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [MegaLinter] Apply linters fixes (#1357) quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Display plugin url in MegaLinter output logs + quick fixes (#1358) * Display plugin url in MegaLinter output logs * [MegaLinter] Apply linters fixes * Add tflint-aws plugin installation to match new version of tflint * Fix glibc public key download * downgrade tflint * fix sgerrand url Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Improve the comment marker format (#1359) Instead of just joining the workflow name and jobid without spacing, encapsulate both in quotes and give them a `workflow=` and `jobid=` prefix to aid debugging. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1362) * Doc: jenkins script to upload artifacts (#1363) * Doc: jenkins script to upload artifacts * changelog * [automation] Auto-update linters version, help and documentation (#1366) * Bump minimist from 1.2.5 to 1.2.6 in /mega-linter-runner Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * fix mypy test case * [automation] Auto-update linters version, help and documentation Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade hadolint (#1370) * Bump hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine Bumps hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine. --- updated-dependencies: - dependency-name: hadolint/hadolint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade hadolint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * markdown-links-check: allow 203 as valid return code (#1369) * [automation] Auto-update linters version, help and documentation (#1371) * [automation] Auto-update linters version, help and documentation (#1375) * User stats (#1377) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * Order MegaLinter users * pylint * Updated github users * All users page generation * Articles section * build doc * More users * More users * cspell config * [automation] Auto-update linters version, help and documentation (#1381) * Update doc * [automation] Auto-update linters version, help and documentation (#1382) * [automation] Auto-update linters version, help and documentation (#1384) * Fix `no override and no default toolchain set` when lint rust with clippy via github-action (#1385) FIX #975 * [automation] Auto-update linters version, help and documentation (#1387) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1388) * Manage dependencies & upgrade clj-kondo & hadolint (#1396) * Bump actions/setup-python from 2 to 3.1.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.1.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine Bumps cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/checkout from 2.4.0 to 3.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/stale from 4 to 5 Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo and hadolint, + fix sqlfluff test case * Fix clj-kondo test case for new version Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1391) * [automation] Auto-update linters version, help and documentation (#1400) * create cspell report dirs if required (#1399) * fix(cspell): Create config dirs if missing If a cspell config is located in some directory we need to create the same tree under the `report` dir * docs(CHANGELOG): added fix note Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1401) * Release MegaLinter v5.11.0 * [automation] Auto-update linters version, help and documentation (#1405) * Manage FAIL_IF_UPDATED_SOURCES option (#1410) * Bump actions/setup-python from 3.1.1 to 3.1.2 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Manage FAIL_IF_UPDATED_SOURCES option * [MegaLinter] Apply linters fixes * Bump actions/checkout from 3.0.0 to 3.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix git issue Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix * Try fix Git CVE issue for own linting (#1415) * Try fix Git CVE issue * Try again fix git issue * Fix CI * Allow git generic safe directory As we are supposed to trust the machine and repo we use MegaLinter on * Dynamic add git safe.directory (#1417) * Dynamic add git safe.directory quick build * Test auto-update too * [automation] Auto-update linters version, help and documentation * Quickfix json schema FAIL_IF_UPDATED_SOURCES * Upgrade multiple dependencies (#1419) * Bump pascalgn/automerge-action from 0.14.3 to 0.15.2 Bumps [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) from 0.14.3 to 0.15.2. - [Release notes](https://github.com/pascalgn/automerge-action/releases) - [Commits](https://github.com/pascalgn/automerge-action/compare/v0.14.3...v0.15.2) --- updated-dependencies: - dependency-name: pascalgn/automerge-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump peter-evans/create-pull-request from 3 to 4.0.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.0.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4.0.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-linters/tflint from v0.34.1 to v0.35.0 Bumps terraform-linters/tflint from v0.34.1 to v0.35.0. --- updated-dependencies: - dependency-name: terraform-linters/tflint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.5.1 to 3.1.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.1 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.5.1...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * upgrade tflint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1424) * [automation] Auto-update linters version, help and documentation (#1429) * [automation] Auto-update linters version, help and documentation * Update .trivyignore * [automation] Auto-update linters version, help and documentation (#1431) * [automation] Auto-update linters version, help and documentation (#1432) * Release MegaLinter v5.12.0 * Fixes * fixes * git safe.directory in ox called SH * test cases * Fix JS * Fixes Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> Co-authored-by: Sam Chorlton <10245822+schorlton@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> Co-authored-by: IM <91187869+1vm0@users.noreply.github.com> Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com> Co-authored-by: Benoît Bleuzé <benoit.bleuze@gmail.com> Co-authored-by: Yann Jouanique <yann.jouanique@oneacrefund.org> Co-authored-by: Wes Dean <wesley-dean@users.noreply.github.com> Co-authored-by: Martijn Pieters <github.com@zopatista.com> Co-authored-by: Martijn Pieters <mj@zopatista.com> Co-authored-by: David Bernard <davidB@users.noreply.github.com> Co-authored-by: Andrew Sheridan <38504307+andrewasheridan@users.noreply.github.com>
* Fix Gitlab comment reporter when MR not found (#1197) * QuickFix Gitlab Comments reporter for self-hosted instances * [automation] Auto-update linters version, help and documentation (#1198) * [automation] Auto-update linters version, help and documentation * QuickFix lint * [automation] Auto-update linters version, help and documentation (#1201) * [automation] Auto-update linters version, help and documentation * Fix sqlfluff bug * Add configuration file option for SQLFluff (#1200) * Add configuration file for SQLFluff * Correct config file name * Update megalinter/descriptors/sql.megalinter-descriptor.yml Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Fix Github auth on Azure Pipelines (#1202) * Fix Github auth on Azure Pipelines Fix issue when using `VALIDATE_ALL_CODEBASE: false` on Azure Pipelines by defining auth header in CI env variable GIT_AUTHORIZATION_BEARER ([#1125](#1125)) * [MegaLinter] Apply linters fixes * Update doc for Azure Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add compatibility for prettier (#1209) Co-authored-by: Sam Chorlton <> * [automation] Auto-update linters version, help and documentation (#1203) * [automation] Auto-update linters version, help and documentation * Remove downgrade of sqlfluff #1200 * Use .gitignore as .secretlintignore when necessary (#1210) * Use .gitignore as .secretlintignore when necessary * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix tflint initialization (#1204) * Fix tflint initialization Fix tflint initialization so it uses configuration file when defined ([#1134](#1134)) * changelog * Fix python lint errors * [automation] Auto-update linters version, help and documentation (#1211) * Undo rubocop downgrade (#1214) * Fix Gitlab comment reporter (#1215) * Fix Gitlab comment reporter * Update Gitlab documentation with gif tutorial * Lint fix * Improve linter perfs & logs (#1217) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * HTMLHint config to count errors + test method * Use list_of_files mode with htmlhint * changelog * ShellCheck: cli_lint_mode: list_of_files to improve perfs * shfmt ci_lint_mode: list_of_files + regex count quick build push * Update test case for markdown-link-check quick build push * test (TODO: remove after) * Fix lint error quick build push * cpplint: Display correct number of errors in logs quick build push * Count actionlint errors quick build push * Count errors perlcritic quick build push * Count chktex errors quick build push * Enhance test class error message quick build push * Let's not test TAP anymore * Update test case files quick build push * Fix perlcritic test case quick build push * Fix python test cases quick build push * Fix perlcritic regex count quick build push * Fix SF test cases quick build push * Fix shell test case quick build push * Bash exec doc * Fix doc Fixes #1212 * Fix salesforce config quick build push * Fix mypy test case quick build push * Update mypy ref url quick build push * Revert "test (TODO: remove after)" This reverts commit 2dfd39e. * Build quick build * [MegaLinter] Apply linters fixes quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Use apk to install shfmt * Downgrade snakemake * Downgrade snakemake (#1218) * Downgrade snakemake * Downgrade snakefmt * [automation] Auto-update linters version, help and documentation (#1219) * [automation] Auto-update linters version, help and documentation * Update GHA template * Change snakemake install method then Build * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1222) * Order changelog * Release MegaLinter v5.7.0 * Update .cspell default config (#1226) * Improve performances (#1227) * stylelint: list_of_files * standard: list_of_files * markdown-link-check: list_of_files * Upgrade link ref * [automation] Auto-update linters version, help and documentation (#1225) * [automation] Auto-update linters version, help and documentation (#1230) * Manage before_exit() & clean git repo (#1232) Fixes #1125 quick build push * [automation] Auto-update linters version, help and documentation (#1233) * [automation] Auto-update linters version, help and documentation (#1235) * [automation] Auto-update linters version, help and documentation (#1238) * Auto-upgrade pip + temporary disable snakemake + fix gitlab error message (#1236) * Auto-upgrade pip * Manage disable linter + disable snakefmt * Undowngrade snakemake + build * Fix upgrade pip & lint fix * Lint fix * [MegaLinter] Apply linters fixes * Fix build * [MegaLinter] Apply linters fixes * Fix gitlab token error labels * Disable snakemake test. Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1240) * Release MegaLinter v5.7.1 * Animated gif for assisted configuration * [automation] Auto-update linters version, help and documentation (#1241) * [automation] Auto-update linters version, help and documentation (#1242) * [automation] Auto-update linters version, help and documentation (#1243) * Fix GitlabCommentReporter raise unhandled exception if no merge request has been found (#1247) * [automation] Auto-update linters version, help and documentation (#1245) * Doc images (#1251) * Bump peter-evans/create-pull-request from 3.12.0 to 3.12.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.12.0 to 3.12.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3.12.0...v3.12.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * cspell + sample ML users * animated gifs * Build. * changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add publish artifact task in azure pipeline doc * [automation] Auto-update linters version, help and documentation (#1250) * [automation] Auto-update linters version, help and documentation * cspell * Manage Gitlab certificate (#1249) * Manage gitlab certificate * Build * Manage GITLAB_CUSTOM_CERTIFICATE quick build push * Fix python issue quick build push * Error msg doc * [MegaLinter] Apply linters fixes * Update config json schema quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Allow Eslint with config in package.json #1205 (#1206) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1253) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Gitlab reporter doc * cspell * Avoid storing copies of files in layer for kubeval, shellcheck, and misspell (#1229) * Avoid storing copy in layer for kubeval, shellcheck, misspell The copies are removed in the layer by immediatly deleting the files in the same `RUN` command. The LICENSE files are kept. * Apply changes in descriptors to Dockerfiles * Improve call of ansible-lint (#1255) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix * Fix ansible-lint test cases quick build push * [MegaLinter] Apply linters fixes * Fix ansible test cases (2) * Fix ansible test cases (2) quick build push * Fix call to ansible-lint * Build * Install ansible-lint using pip * Update ansible-lint test cases * Count errors & update ansible-lint test cases * [MegaLinter] Apply linters fixes * Move .ansible-lint at the good location Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * changelog * [automation] Auto-update linters version, help and documentation (#1257) * Fix suggestion to use proper variable name (#1261) * Fix suggestion to use proper variable name * Update CHANGELOG.md * [automation] Auto-update linters version, help and documentation (#1260) * [automation] Auto-update linters version, help and documentation (#1263) * Update mkdocs.yml * [automation] Auto-update linters version, help and documentation (#1271) * [automation] Auto-update linters version, help and documentation (#1272) * [automation] Auto-update linters version, help and documentation * more users * Terrascan: cli_lint_mode = project (#1274) * Terrascan: cli_lint_mode = project * terrascan: config arg name & config file name * trivy * [automation] Auto-update linters version, help and documentation (#1273) * [automation] Auto-update linters version, help and documentation (#1278) * [automation] Auto-update linters version, help and documentation (#1280) * Release MegaLinter v5.8.0 * trivy * [automation] Auto-update linters version, help and documentation (#1284) * [automation] Auto-update linters version, help and documentation * trivy * Use latest npm version (#1276) * Use latest npm * Build * WORKDIR / * trivy * Generate JSON schema HTML doc when bash build.sh --doc is called (#1289) * Generate JSON schema HTML doc when bash build.sh --doc is called * changelog * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine (#1281) * more users * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine * rubocop: remove `--force-exclusion` from auto-added parameters (#1290) Fixes #302 * New linter: kubeconform (#1285) * New linter: kubeconform * kubeconform: Fix launch cmd * kubeconform: fix spelling * kubeconform: fix error count * kubeconform: fix regex * kubeconfirm: adding bad files to test counts * Force rebuild * Rollback license update ! * Remove JSON schema HTML doc from build.py * Recommended extensions for MegaLinter contribution (#1291) * Bump actions/github-script from 5 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](actions/github-script@v5...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Add recommended VsCode extensions for MegaLinter development Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1294) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trivy Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1295) * [automation] Auto-update linters version, help and documentation * lint * Add shell script linters to ci_light flavor (#1299) * 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> * [automation] Auto-update linters version, help and documentation (#1300) * [automation] Auto-update linters version, help and documentation (#1302) * [automation] Auto-update linters version, help and documentation (#1303) * Switch from jdk8 to jdk11 (#1309) * Terrascan init as pre-command (#1311) * [automation] Auto-update linters version, help and documentation * terrascan init as pre-command * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Reactivate snakefmt (#1312) * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1315) * [automation] Auto-update linters version, help and documentation (#1318) * [automation] Auto-update linters version, help and documentation (#1319) * [automation] Auto-update linters version, help and documentation (#1320) * [automation] Auto-update linters version, help and documentation (#1322) * [automation] Auto-update linters version, help and documentation (#1323) * [automation] Auto-update linters version, help and documentation (#1325) * [automation] Auto-update linters version, help and documentation (#1326) * [automation] Auto-update linters version, help and documentation * Users & fix * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1327) * [automation] Auto-update linters version, help and documentation (#1328) * [automation] Auto-update linters version, help and documentation (#1329) * Update SQLFluff default config with latest options (#1331) * Update SQLFluff default config for 0.11.0 * Sync with latest * [automation] Auto-update linters version, help and documentation (#1330) * [automation] Auto-update linters version, help and documentation (#1332) * [automation] Auto-update linters version, help and documentation (#1333) * [automation] Auto-update linters version, help and documentation * Fix ansible-lint test case * [automation] Auto-update linters version, help and documentation (#1335) * [automation] Auto-update linters version, help and documentation (#1336) * Upgrade hadolint (#1338) * Upgrade hadolint * hadolint config * [automation] Auto-update linters version, help and documentation (#1339) * Add article * Doc * doc * [automation] Auto-update linters version, help and documentation (#1342) * Release MegaLinter v5.10.0 * [automation] Auto-update linters version, help and documentation (#1343) * [automation] Auto-update linters version, help and documentation (#1344) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1346) * [automation] Auto-update linters version, help and documentation (#1349) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1351) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * pylint * Github Comment Reporter: Use a html comment to mark the comment (#1356) This replaces the old method, which looked for the "see error details" link, but that link was not always present in comments. The comment records the current workflow and jobid, so multiple mega-linters can comment on the same PR without colliding. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [MegaLinter] Apply linters fixes (#1357) quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Display plugin url in MegaLinter output logs + quick fixes (#1358) * Display plugin url in MegaLinter output logs * [MegaLinter] Apply linters fixes * Add tflint-aws plugin installation to match new version of tflint * Fix glibc public key download * downgrade tflint * fix sgerrand url Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Improve the comment marker format (#1359) Instead of just joining the workflow name and jobid without spacing, encapsulate both in quotes and give them a `workflow=` and `jobid=` prefix to aid debugging. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1362) * Doc: jenkins script to upload artifacts (#1363) * Doc: jenkins script to upload artifacts * changelog * [automation] Auto-update linters version, help and documentation (#1366) * Bump minimist from 1.2.5 to 1.2.6 in /mega-linter-runner Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * fix mypy test case * [automation] Auto-update linters version, help and documentation Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade hadolint (#1370) * Bump hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine Bumps hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine. --- updated-dependencies: - dependency-name: hadolint/hadolint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade hadolint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * markdown-links-check: allow 203 as valid return code (#1369) * [automation] Auto-update linters version, help and documentation (#1371) * [automation] Auto-update linters version, help and documentation (#1375) * User stats (#1377) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * Order MegaLinter users * pylint * Updated github users * All users page generation * Articles section * build doc * More users * More users * cspell config * [automation] Auto-update linters version, help and documentation (#1381) * Update doc * [automation] Auto-update linters version, help and documentation (#1382) * [automation] Auto-update linters version, help and documentation (#1384) * Fix `no override and no default toolchain set` when lint rust with clippy via github-action (#1385) FIX #975 * [automation] Auto-update linters version, help and documentation (#1387) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1388) * Manage dependencies & upgrade clj-kondo & hadolint (#1396) * Bump actions/setup-python from 2 to 3.1.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.1.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine Bumps cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/checkout from 2.4.0 to 3.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2.4.0...v3.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/stale from 4 to 5 Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo and hadolint, + fix sqlfluff test case * Fix clj-kondo test case for new version Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1391) * [automation] Auto-update linters version, help and documentation (#1400) * create cspell report dirs if required (#1399) * fix(cspell): Create config dirs if missing If a cspell config is located in some directory we need to create the same tree under the `report` dir * docs(CHANGELOG): added fix note Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1401) * Release MegaLinter v5.11.0 * [automation] Auto-update linters version, help and documentation (#1405) * Manage FAIL_IF_UPDATED_SOURCES option (#1410) * Bump actions/setup-python from 3.1.1 to 3.1.2 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Manage FAIL_IF_UPDATED_SOURCES option * [MegaLinter] Apply linters fixes * Bump actions/checkout from 3.0.0 to 3.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix git issue Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix * Try fix Git CVE issue for own linting (#1415) * Try fix Git CVE issue * Try again fix git issue * Fix CI * Allow git generic safe directory As we are supposed to trust the machine and repo we use MegaLinter on * Dynamic add git safe.directory (#1417) * Dynamic add git safe.directory quick build * Test auto-update too * [automation] Auto-update linters version, help and documentation * Quickfix json schema FAIL_IF_UPDATED_SOURCES * Upgrade multiple dependencies (#1419) * Bump pascalgn/automerge-action from 0.14.3 to 0.15.2 Bumps [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) from 0.14.3 to 0.15.2. - [Release notes](https://github.com/pascalgn/automerge-action/releases) - [Commits](pascalgn/automerge-action@v0.14.3...v0.15.2) --- updated-dependencies: - dependency-name: pascalgn/automerge-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump peter-evans/create-pull-request from 3 to 4.0.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.0.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3...v4.0.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-linters/tflint from v0.34.1 to v0.35.0 Bumps terraform-linters/tflint from v0.34.1 to v0.35.0. --- updated-dependencies: - dependency-name: terraform-linters/tflint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.5.1 to 3.1.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.1 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v2.5.1...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * upgrade tflint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1424) * [automation] Auto-update linters version, help and documentation (#1429) * [automation] Auto-update linters version, help and documentation * Update .trivyignore * [automation] Auto-update linters version, help and documentation (#1431) * [automation] Auto-update linters version, help and documentation (#1432) * Release MegaLinter v5.12.0 * [automation] Auto-update linters version, help and documentation (#1434) * Add gherkin-lint in dotnet flavor (#1436) * [automation] Auto-update linters version, help and documentation (#1437) * [automation] Auto-update linters version, help and documentation (#1442) * Define pre-commit hooks. (#1438) * Make minor grammatical corrections to README. * Define pre-commit hooks. The pre-commit framework allows users to run MegaLinter locally as a Git pre-commit hook. While it does have built-in support for Node.js hooks, it doesn't support monorepos, because the package.json must be in the root directory. While it does have built-in support for Docker hooks, the user experience of overriding arguments to mega-linter-runner is nicer than that for the Docker image. Hence, hand-roll system hooks instead, and leverage npx to execute (and, if necessary, download) mega-linter-runner. * [automation] Auto-update linters version, help and documentation (#1443) * [automation] Auto-update linters version, help and documentation (#1444) * [automation] Auto-update linters version, help and documentation (#1448) * [automation] Auto-update linters version, help and documentation (#1449) * [automation] Auto-update linters version, help and documentation (#1450) * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo * [automation] Auto-update linters version, help and documentation (#1451) * [automation] Auto-update linters version, help and documentation (#1452) * [automation] Auto-update linters version, help and documentation (#1453) * [automation] Auto-update linters version, help and documentation (#1454) * [automation] Auto-update linters version, help and documentation (#1455) * Typo in doc (#1457) * [automation] Auto-update linters version, help and documentation (#1456) * [automation] Auto-update linters version, help and documentation (#1459) * [automation] Auto-update linters version, help and documentation (#1463) * [automation] Auto-update linters version, help and documentation * Update GraphQL installation commands * [automation] Auto-update linters version, help and documentation (#1464) * Update sqlfluff descriptor to enable error count (#1462) * Adding regex to sqlfluff descriptor to enable proper error count * Fixing broken escape character * Update sql.megalinter-descriptor.yml * Add a second bad test case to verify count regex Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1465) * [automation] Auto-update linters version, help and documentation (#1466) * Pin ansible-lint to 6.0.2 (#1471) * Fix typo in bash-exec description * Pin ansible-lint to 6.0.2 (#1470) ansible-lint 6.1.0 adds a dependency on jsonschema==4.5.1, which conflicts with cfn-lint's pre-existing dependency on jsonschema~=3.0. Also remove extras community and yamllint since they are no longer provided by ansible-lint. * [automation] Auto-update linters version, help and documentation (#1467) * Add nitpick plugin (#1476) * Add nitpick plugin * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add users * Use go installer for editorconfig-checker (#1475) * Use go installer for editorconfig-checker * Fix install * remove @latest * go get * Use docker image * [automation] Auto-update linters version, help and documentation (#1477) * [automation] Auto-update linters version, help and documentation (#1478) * Release MegaLinter v5.13.0 * [automation] Auto-update linters version, help and documentation (#1481) * [automation] Auto-update linters version, help and documentation (#1483) * [automation] Auto-update linters version, help and documentation (#1486) * [automation] Auto-update linters version, help and documentation (#1487) * [automation] Auto-update linters version, help and documentation (#1488) * [automation] Auto-update linters version, help and documentation (#1490) * [automation] Auto-update linters version, help and documentation (#1491) * [automation] Auto-update linters version, help and documentation (#1492) * [automation] Auto-update linters version, help and documentation (#1495) * [automation] Auto-update linters version, help and documentation (#1496) * [automation] Auto-update linters version, help and documentation (#1498) * [automation] Auto-update linters version, help and documentation (#1501) * [automation] Auto-update linters version, help and documentation (#1503) * [automation] Auto-update linters version, help and documentation (#1504) * [automation] Auto-update linters version, help and documentation (#1505) * [automation] Auto-update linters version, help and documentation (#1509) * update toc (#1511) * [automation] Auto-update linters version, help and documentation (#1510) * [automation] Auto-update linters version, help and documentation * Update rstcheck help argument * [Docs] update urls about R lintr (#1512) * update urls about lintr * Build (updates must be performed only in YML descriptor, the rest is generated automatically) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1518) * [automation] Auto-update linters version, help and documentation (#1519) * [automation] Auto-update linters version, help and documentation (#1520) * [automation] Auto-update linters version, help and documentation (#1521) * [automation] Auto-update linters version, help and documentation (#1522) * Local plugin support/documentation (#1508) * Local plugin support/documentation * Fixed linting error, added test * Added tests, refactored file access * Do not break README markdown indentation * jscpd * Fixed testing framework * linting Co-authored-by: Jack Heuberger <t-jheuberger@microsoft.com> Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1523) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Release MegaLinter v5.14.0 * Build * Build doc * Linter version within docker variable STANDALONE_LINTER_VERSION * [automation] Auto-update linters version, help and documentation (#1524) * [automation] Auto-update linters version, help and documentation (#1528) * [automation] Auto-update linters version, help and documentation (#1530) * [automation] Auto-update linters version, help and documentation (#1532) * [automation] Auto-update linters version, help and documentation (#1533) * [automation] Auto-update linters version, help and documentation (#1536) * [automation] Auto-update linters version, help and documentation * Fix kotlin test cases * [automation] Auto-update linters version, help and documentation (#1537) * [automation] Auto-update linters version, help and documentation (#1543) * Ox branding (#1547) * Ox branding * resize * REsize * More updates about branding * archi slide * Update index * More variables in README to arrange ox website * Ready ? :) * Hide home * Fixes * cspell * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix branding * QuickFix branding * Update logo size * Release MegaLinter v5.15.0 * Release MegaLinter v5.15.0 * [automation] Auto-update linters version, help and documentation (#1546) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1551) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * Quick design update * QuickFix Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1552) * [automation] Auto-update linters version, help and documentation (#1554) * [automation] Auto-update linters version, help and documentation * Update deploy-DEV.yml * Update .trivyignore * Allow naming of `megalinter` docker container (#1558) * added support for named docker container * Update .cspell.json Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1559) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add last commit badges (#1565) * Add last commit badges * Add last commit badges * Remove print * Add last commit badges (#1566) * Add last commit badges * Add last commit badges * Remove print * Fix lint errors * WIP * Fix linter version error * [automation] Auto-update linters version, help and documentation (#1564) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * fixed a bug that caused `--containername` to not work (#1561) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Release MegaLinter v5.16.0 * Build doc * ML fixes * Update CI config * mega-linter-runner installer and upgrader applicable to V6 * Parallelize test cases quick build * Disable gitleaks quick build * Remove parallel pytest + increase timeout * Fix linter test cases Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Sam Chorlton <10245822+schorlton@users.noreply.github.com> Co-authored-by: IM <91187869+1vm0@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com> Co-authored-by: Benoît Bleuzé <benoit.bleuze@gmail.com> Co-authored-by: Yann Jouanique <yann.jouanique@oneacrefund.org> Co-authored-by: Wes Dean <wesley-dean@users.noreply.github.com> Co-authored-by: Martijn Pieters <github.com@zopatista.com> Co-authored-by: Martijn Pieters <mj@zopatista.com> Co-authored-by: David Bernard <davidB@users.noreply.github.com> Co-authored-by: Andrew Sheridan <38504307+andrewasheridan@users.noreply.github.com> Co-authored-by: Kurt von Laven <Kurt-von-Laven@users.noreply.github.com> Co-authored-by: nv35 <76777923+nv35@users.noreply.github.com> Co-authored-by: Tom Stark <56162721+tdstark@users.noreply.github.com> Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com> Co-authored-by: jackheuberger <7830838+jackheuberger@users.noreply.github.com> Co-authored-by: Jack Heuberger <t-jheuberger@microsoft.com> Co-authored-by: Dmitri Trofimov <46350232+dmitri-trofimov@users.noreply.github.com> Co-authored-by: bdovaz <iam.n3uro@gmail.com> Co-authored-by: bdovaz <borja.dominguez@hotmail.com>
I logged into an interactive shell of the container to be able to see where the disk space was taken.
$ docker run -it --entrypoint /bin/bash megalinter/megalinter:v5
We can see that at the root, there are extra files
I made my PR by testing with the terraform flavor, since it was smaller than all, and contained the kubeval tool.
But I continued to explore what else could take space.
To drill down where the space is taken, we can use
ncdu
Expand screenshots of disk usage
Here is something problematic
There seems to be a python 3.8 install, but we are already in an python:3.9.7-alpine3.13 image.
Expand screenshots of disk usage - python3.8 and next
__pycache__
can be safely deleted since it is where the .pyc files (compiled versions) for the interpreter are stored (they are made when running a .py file).Here, are we sure we need FSharp? We could also take a look at the dotnet images to make sure we really need the full SDK https://hub.docker.com/_/microsoft-dotnet or we can make a published version of the tools we use, and thus only need a runtime base to run a .dll https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-6.0
What is this
false
folder? It seems like a boolean value was used as a string and made a folder instead of ignoring it.Go cache to clear
/tmp
might be to clear at each layer:R
:Proposed Changes
Readiness Checklist
Author/Contributor
Reviewing Maintainer
breaking
if this is a large fundamental changeautomation
,bug
,documentation
,enhancement
,infrastructure
, orperformance