mega-linter-runner
Version:
Local runner for MegaLinter
35 lines (28 loc) • 1.2 kB
YAML
# MegaLinter GitLab CI job configuration file
# More info at https://megalinter.io
mega-linter:
stage: test
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.io/latest/flavors/
image: <%= DOCKER_IMAGE_NAME %>:<%= DOCKER_IMAGE_VERSION %>
# if script: ["true"] does not work, you may try this instead:
# script: [ "/bin/bash /entrypoint.sh" ]
script: ["true"]
variables:
# All available variables are described in documentation
# https://megalinter.io/latest/config-file/
DEFAULT_WORKSPACE: $CI_PROJECT_DIR
# Disable LLM Advisor for bot MRs (merge-train, dependabot, renovate, etc.)
LLM_ADVISOR_ENABLED: >-
${CI_PIPELINE_SOURCE != 'merge_request_event' ||
(CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == CI_PROJECT_PATH &&
CI_MERGE_REQUEST_AUTHOR_LOGIN !~ /^(dependabot|renovate|github-actions)(\[bot\])?$/ &&
CI_MERGE_REQUEST_TITLE !~ /^(chore|fix|deps?|bump)(\(.*\))?: /)}
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml
# AT THE ROOT OF YOUR REPOSITORY
artifacts:
when: always
paths:
- report
expire_in: 1 week