Skip to content

Linting & Formatting #680

Linting & Formatting

Linting & Formatting #680

---
name: Linting & Formatting
on:
merge_group:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
linter:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
pull-requests: write
security-events: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: oxsecurity/megalinter/flavors/documentation@7e042c726c68415475b05a65a686c612120a1232 # v7.7.0
env:
APPLY_FIXES: all
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: github/codeql-action/upload-sarif@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
if: ${{ success() || failure() }}
with:
sarif_file: megalinter-reports/megalinter-report.sarif
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
if: ${{ success() || failure() }}
with:
name: Linter Report
path: |
megalinter-reports
- uses: reviewdog/action-suggester@94877e550e6b522dc1d21231974b645ff2f084ce # v1.8.0
with:
tool_name: MegaLinter