Skip to content
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

Megalinter refuses to run Plugins #2530

Closed
muandane opened this issue Apr 5, 2023 · 4 comments Β· Fixed by #2532
Closed

Megalinter refuses to run Plugins #2530

muandane opened this issue Apr 5, 2023 · 4 comments Β· Fixed by #2532
Labels
question Further information is requested

Comments

@muandane
Copy link
Contributor

muandane commented Apr 5, 2023

i've been having issues with loading custom Plugins in megalinter, tested multiple flavors

mega-linter:
  environment: dev-aks
  stage: Test πŸ› οΈ
  image: oxsecurity/megalinter-terraform:v6.22.2
  script: ["true"] # if script: ["true"] does not work, you may try ->  script: [ "/bin/bash /entrypoint.sh" ]
  variables:
    DEFAULT_WORKSPACE: ${CI_PROJECT_DIR}
    PRINT_ALPACA: "false"
    GITLAB_ACCESS_TOKEN_MEGALINTER: ${TF_VAR_GITLAB_ACCESS_TOKEN}
    PLUGINS: file://${CI_PROJECT_DIR}/mega-linter-plugin-kubescape/kubernetes.megalinter-descriptor.yml
    EXTENDS: .mega-linter.yml
  artifacts:
    when: always
    paths:
      - megalinter-reports
    expire_in: 1 week
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      allow_failure: true
MegaLinter flavor [terraform] does not contain linters KUBERNETES_KUBESCAPE,MAKEFILE_CHECKMAKE.
As they are not available in this docker image, they will not be processed
To solve this problem, please either: 
- use default flavor oxsecurity/megalinter
- add ignored linters in DISABLE or DISABLE_LINTERS variables in your .mega-linter.yml config file located in your root directory
- ignore this message by setting config variable FLAVOR_SUGGESTIONS to false
@muandane muandane added the question Further information is requested label Apr 5, 2023
@nvuillam
Copy link
Member

nvuillam commented Apr 6, 2023

I think it's a known issue that plugins don't work with flavors... to be solved, thanks for reporting :)

@nvuillam
Copy link
Member

nvuillam commented Apr 6, 2023

@muandane plz can you confirm that it's ok with beta version of flavors ? ( in a few minutes, the time they are built ^^ )

@muandane
Copy link
Contributor Author

muandane commented Apr 6, 2023

@nvuillam plugins work right now with the beta, now i can debug my branch

@nvuillam
Copy link
Member

nvuillam commented Apr 7, 2023

Great, thanks a lot for your feedback:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants