Skip to content

🔍 MegaLinter - main #23

🔍 MegaLinter - main

🔍 MegaLinter - main #23

Workflow file for this run

name: mega-linter
run-name: '🔍 MegaLinter - ${{ github.ref_name }}'
# Trigger mega-linter at every push. Action will also be visible from
# Pull Requests to main
on:
# Comment this line to trigger action only on pull-requests
# (not recommended if you don't pay for GH Actions)
push:
branches:
- main
pull_request_target:
branches:
- main
types:
- opened
- reopened
- synchronize
paths-ignore:
- 'assets/**'
- 'docs/**'
permissions:
contents: read
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
# Give the default GITHUB_TOKEN write permission to commit and push, comment
# issues, and post new Pull Requests; remove the ones you do not need
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout 💻
uses: actions/[email protected]
- name: MegaLinter 🔍
uses: oxsecurity/megalinter/flavors/[email protected]
id: ml
# All available variables are described in documentation
# https://megalinter.io/latest/config-file/
env:
# Validates all source when push on main, else just the git diff with
# main. Override with true if you always want to lint all sources
#
# To validate the entire codebase, set to:
# VALIDATE_ALL_CODEBASE: true
#
# To validate only diff with main, set to:
# VALIDATE_ALL_CODEBASE: >-
# ${{
# github.event_name == 'push' &&
# github.ref == 'refs/heads/main'
# }}
VALIDATE_ALL_CODEBASE: true
DEFAULT_WORKSPACE: ${{ github.workspace }}
REPORT_OUTPUT_FOLDER: ${{ github.workspace }}/.ml-reports
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload MegaLinter artifacts
- name: Archive production artifacts
uses: actions/[email protected]
if: ${{ success() || failure() }}
with:
name: MegaLinter reports
path: |
.ml-reports/
mega-linter.log