oxsecurity / megalinter

🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
https://megalinter.io
GNU Affero General Public License v3.0
1.93k stars 237 forks source link

Support for `.mega-linter.yml` Base Config File Re-location #1865

Closed comc closed 2 years ago

comc commented 2 years ago

The MEGALINTER_CONFIG environment variable should accept a relative path, e.g., .github/config/.mega-linter.yml, in order to re-locate the config file other than the project root, if so desired.

Currently, the variable only supports a standalone filename located in the repo root directory, or a remote URL.

nvuillam commented 2 years ago

@comc relative paths seems to work, several repos are using exactly what you want to do

Examples:

Is your repo public so i could check ?

comc commented 2 years ago

Thanks for the examples. It helped me identify my issue.

nvuillam commented 2 years ago

You're welcome :)