Skip to content

feat(linter): add mega linter #89

feat(linter): add mega linter

feat(linter): add mega linter #89

Workflow file for this run

name: MegaLinter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLY_FIXES: all
APPLY_FIXES_EVENT: commit
APPLY_FIXES_MODE: commit
on:
push:
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ env.GITHUB_TOKEN }}
- name: Run Mega-Linter
id: megalinter
uses: oxsecurity/megalinter@v8
- name: Commit and push applied linter fixes
if: steps.megalinter.outputs.has_updated_sources == 1
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref || github.ref }}
commit_message: "[MegaLinter] Apply linters fixes"
commit_user_name: megalinter-bot
commit_user_email: nicolas.vuillamy@ox.security