Skip to main content
← Back to workflows

How to Use MegaLinter to Enhance Code Quality in Your Projects?

oxsecurity-megalinter -
GitHub Action
v7.11.1
1,895
Contributors
Contributor - nvuillamContributor - bdovaz
CICUBE ANALYTICS INSIGHTS
Engineering Velocity: 25% Team Time Lost to CI Issues
View Platform →
3.5h
Time Saved/Dev/Week
40%
Faster Releases
Click for next insight
Usage
name: 'Usage of MegaLinter GitHub Action'
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: MegaLinter
id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.io/flavors/
uses: oxsecurity/megalinter@v7
env:
# All available variables are described in documentation
# https://megalinter.io/configuration/
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

megalinter logo

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.


What is MegaLinter?

It checks code, infrastructure as code (IAC), configuration, and scripts in over 50 languages and 22 formats, including copy-paste, spelling, and security issues. It is integrable with our projects by using GitHub Actions, other CI tools, or even on your laptop.

MegaLinter is powered by OX Security, ensuring our project sources remain consistent and clean despite the used IDE or toolbox by developers. It supports 60 languages and 24 formats and is very user-friendly.

Highly customizable for every set-up, free for all use, and out-of-the-box ready for every GitHub Action or CI system. This tool could be a game changer in maintaining high-quality code standards with this level of ease.