Skip to content

Gitlab Comment Reporter

Posts MegaLinter results summary in the comments of the related Gitlab merge request (if existing)

Usage

Click on hyperlinks to access detailed logs (click on Download in Artifacts section at the left of a CI job page)

Screenshot

Configuration

config-gitlab-access-token

Variable Description Default value
GITLAB_COMMENT_REPORTER Activates/deactivates reporter true
GITLAB_ACCESS_TOKEN_MEGALINTER Must contain a Gitlab private access token defined with api access
GITLAB_CUSTOM_CERTIFICATE SSL certificate value to connect to Gitlab
GITLAB_CERTIFICATE_PATH Path to SSL certificate to connect to Gitlab (if SSL cert has been manually defined with PRE_COMMANDS)
REPORTERS_MARKDOWN_TYPE Set to simple to avoid external images in generated markdown advanced

Special Thanks

  • Special thanks to John Berkers for his assistance in making Gitlab reporter work with self-hosted gitlab instances secured by certificates :)