megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

📢 MegaLinter v9 is out :)

Open nvuillam opened this issue 3 months ago • 16 comments

🚀 MegaLinter v9 has been released

Just run npx mega-linter-runner --upgrade to upgrade your current configuration to v9 🥳

Main features

  • Create your own Megalinter Custom Flavors to dramatically improve your performances

    • See documentation for usage
    • Use npx mega-linter-runner@beta --custom-flavor-setup to initialize repo
    • Suggest new flavors in reporters with a mega-linter-runner including the list of linters
  • New LLM Advisor: call external LLMs to get hints to solve linter errors, available in:

    • Console Reporter
    • Text Reporter
    • Git platforms PR/MR comments Reporter
  • Use ghcr.io docker images by default because of rate limits on docker.io

  • Update base image to python:3.13-alpine3.21 (also embeds go 1.24)

  • New default display for Pull Request comments, with expandable sections containing the first 1000 lines of the output log. Former display

  • 68 linters upgraded

See full release notes

Please post your feedback 🎤

nvuillam avatar Sep 20 '25 10:09 nvuillam

Just trying it (v9.0.1) PHP standard flavor and found some little issues. I'll open separate reports to details each one !

llaville avatar Sep 24 '25 14:09 llaville

I like uv to create virtual environment. It's now more easy to contribute and test it locally before pushing code to repo and wait for CI to give an answer (PASSED or FAILED)

llaville avatar Sep 25 '25 14:09 llaville

Hello, could you also package this new version as a Docker image? It seems that the latest one available on Docker Hub is v8.8.0, which is 4 months old.

Bigouden avatar Sep 29 '25 07:09 Bigouden

@nvuillam Documentation need to be update (see https://megalinter.io/latest/install-docker/)

@Bigouden Retrieve image from GitHub Registry now : docker pull ghcr.io/oxsecurity/megalinter-php:v9.0.1

llaville avatar Sep 29 '25 08:09 llaville

@nvuillam seems like v9 got pushed to docker hub as v8

v8.8.0 was pushed 4 months ago, v8 10 days ago.

And the image contains

86  ARG BUILD_DATE=2025-09-20T09:46:22Z
87  ARG BUILD_REVISION=ff177bfabd9088ff3ccaa7bc68f8ca3fd075ba5c
88  ARG BUILD_VERSION=v9.0.0

see https://hub.docker.com/layers/oxsecurity/megalinter-security/v8/images/sha256-c33028d35bfc6874c8df5937cd3476beaf3e02f6b3148a80cc4e7467f983d6d6

pjungermann avatar Sep 30 '25 16:09 pjungermann

@pjungermann it's a mistake from me when I released :/ It will be fixed soon, I suggest meanwhile you use v9 which is on ghcr.io -> ( ghcr.io/oxsecurity/megalinter:v9 ) https://github.com/oxsecurity/megalinter/pkgs/container/megalinter/521734347?tag=v9

nvuillam avatar Sep 30 '25 18:09 nvuillam

@Bigouden @llaville @pjungermann @echoix @bdovaz > 9.1.0 has been released, we are all good with v9 Docker Hub images :)

https://hub.docker.com/r/oxsecurity/megalinter/tags

nvuillam avatar Oct 07 '25 20:10 nvuillam

Those who already created custom flavors, I advise you to run npx mega-linter-runner@latest--custom-flavor-setup in the same repo again, we have added another job that checks every night if there is a new release, and automatically builds a new release for the custom flavor :)

nvuillam avatar Oct 07 '25 20:10 nvuillam

What is the option that display MegaLinter report into GH Actions workflows summary ?

For example : https://github.com/llaville/php-compatinfo-db/actions/runs/18367915944#summary-52324301133

llaville avatar Oct 09 '25 07:10 llaville

@llaville it's markdown summary reporter :)

https://megalinter.io/latest/reporters/MarkdownSummaryReporter/

nvuillam avatar Oct 09 '25 09:10 nvuillam

@nvuillam Thanks, I like is presence in GH Actions, even if I think it's news (I don't see it in same context before). Can you confirm it's a new ML v9 behaviour ?

llaville avatar Oct 09 '25 09:10 llaville

@nvuillam I've my answer : it's YES, implemented by commit https://github.com/oxsecurity/megalinter/commit/f9d62a26ed5fd849fe9a56460c37aa6405e494a3 since v9.0.0

llaville avatar Oct 09 '25 10:10 llaville

@llaville indeed 😊 Markdown summary reportee was here before, but its default post to Github is more recent :)

nvuillam avatar Oct 09 '25 10:10 nvuillam

@nvuillam Bug found in v9 ): Salesforce Admin here hoping to get this working for our org. I submitted the Issue my friend. Here is the link for your convenience https://github.com/oxsecurity/megalinter/issues/6556 great product, if we can get it to work it would be amazing! :)

jonathanr-sfdc avatar Nov 16 '25 06:11 jonathanr-sfdc

@JonathanR-SFDC thanks for reporting :) we are currently upgrading to latest code-analyzer plugin, code-scanner will be deprecated soon :) I'll keep you updated in the issue :)

nvuillam avatar Nov 16 '25 09:11 nvuillam

@nvuillam Thank you very much, my friend :) I wish you a lot of success in your business and in everything that you do, and may Christ himself be with you.

jonathanr-sfdc avatar Nov 16 '25 18:11 jonathanr-sfdc