Skip to content

Update .mega-linter.yml configuration #9

Update .mega-linter.yml configuration

Update .mega-linter.yml configuration #9

Workflow file for this run

---

Check failure on line 1 in .github/workflows/mega-linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/mega-linter.yml

Invalid workflow file

(Line: 13, Col: 3): Unexpected value 'pull_requests'
name: MegaLinter
# Trigger only on pull requests
on:
pull_request:
branches: [main, master]
# Permissions required to comment on PRs and push fixes
permissions:
contents: write
statuses: write
pull_requests: write
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
# MegaLinter Execution with auto-fixes enabled
- name: Run MegaLinter
uses: oxsecurity/megalinter@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
APPLY_FIXES: all
APPLY_FIXES_EVENT: all
# Push automated fixes back to your PR branch
- name: Commit Automated Fixes
if: success() || failure()
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.head_ref || github.ref_name }}
commit_message: "chore: automated code formatting fixes by MegaLinter"
commit_user_name: megalinter-bot
commit_user_email: megalinter-bot@ox.security