diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 308316b..0f57edd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,12 +17,30 @@ jobs: fetch-depth: 0 # Runs the Super-Linter action - - name: Run Super-Linter on new changes - uses: docker://ghcr.io/github/super-linter:slim-v4 + # - name: Run Super-Linter on new changes + # uses: docker://ghcr.io/github/super-linter:slim-v4 + # env: + # DEFAULT_BRANCH: main + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # # Only check new or edited files + # VALIDATE_ALL_CODEBASE: false + # # Fail on errors + # DISABLE_ERRORS: false + - name: MegaLinter + id: ml + uses: oxsecurity/megalinter@v8.4.2 env: - DEFAULT_BRANCH: main + # All available variables are described in documentation + # https://megalinter.io/configuration/ + VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Only check new or edited files - VALIDATE_ALL_CODEBASE: false - # Fail on errors - DISABLE_ERRORS: false + + # Upload MegaLinter artifacts + - name: Archive production artifacts + if: success() || failure() + uses: actions/upload-artifact@v4.6.0 + with: + name: MegaLinter reports + path: | + megalinter-reports + mega-linter.log