Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MegaLinter Custom Flavor: PracticalliZensical

Latest Release

This custom MegaLinter aims to have an optimized Docker image size.

It is built from official MegaLinter images, but is maintained on https://github.com/practicalli/megalinter-custom-flavor-zensical by Practicalli Engineering

Embedded linters

How to use the custom flavor

Follow MegaLinter installation guide, and replace related elements in the workflow.

  • GitHub Action: On MegaLinter step in .github/workflows/mega-linter.yml, define uses: practicalli/megalinter-custom-flavor-zensical@main
  • Docker image: Replace official MegaLinter image with ghcr.io/practicalli/megalinter-custom-flavor-zensical/megalinter-custom-flavor:latest

How the flavor is generated and updated

This custom flavor is automatically kept up to date with MegaLinter releases:

  1. Automatic version sync: The check-new-megalinter-version workflow runs daily, checks for new MegaLinter releases, and automatically creates matching releases in this repository.

  2. Automated builds: Each release triggers the megalinter-custom-flavor-builder workflow, which:

    • Builds a Docker image with only the selected linters
    • Publishes to GitHub Container Registry (ghcr.io)
    • Optionally publishes to Docker Hub (if credentials are configured)
  3. Available image tags:

    • Release tags (e.g., v9.0.0): Built from MegaLinter releases
    • beta tag: Built from non-main branch pushes for testing
    • latest tag: Points to the most recent release

Configuration requirements

Optional: Personal Access Token (use with care)

Security warning: Using a Personal Access Token (PAT) is not recommended. Open-source projects have been heavily targeted by supply-chain attacks in recent months, and a leaked or compromised PAT can give attackers broad write access to your repository — better safe than sorry! If you do not need fully automatic daily version sync, you can skip the PAT entirely and trigger the check-new-megalinter-version workflow manually whenever you want to upgrade.

If you decide automatic daily releases are worth the trade-off, configure a PAT_TOKEN secret as a repository-scoped fine-grained token with:

  • Repository access: Only select repositories (select this repository)
  • Repository permissions:
    • Contents: Read and write
    • Actions: Read and write

Rotate the token regularly.

See the Custom Flavors documentation for detailed setup instructions.

Optional: Docker Hub publishing

To publish to Docker Hub in addition to ghcr.io, configure:

  • DOCKERHUB_REPO variable (e.g., your Docker Hub username)
  • DOCKERHUB_USERNAME secret
  • DOCKERHUB_PASSWORD secret

How to generate the flavor manually

If you need to manually trigger a build:

  1. Create a GitHub release: Creates a versioned build matching the tag name (e.g., v9.0.0)
  2. Push to any branch (except main): Builds a beta tagged image for testing
  3. Manually run the workflow: Go to Actions > Build & Push MegaLinter Custom Flavor > Run workflow

See full Custom Flavors documentation.

How to use the custom flavor

Follow MegaLinter installation guide, and replace related elements in the workflow.

  • GitHub Action: On MegaLinter step in .github/workflows/mega-linter.yml, define uses: practicalli/megalinter-custom-flavor-zensical@main
  • Docker image: Replace official MegaLinter image with ghcr.io/practicalli/megalinter-custom-flavor-zensical/megalinter-custom-flavor:latest

MegaLinter is graciously provided by OX Security

About

Lint tools to support static site development with Zensical

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages