Skip to content

Commit

Permalink
ci: replace super-linter with megalinter
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <bruce.becker@egi.eu>
  • Loading branch information
brucellino committed Feb 2, 2025
1 parent 25fa784 commit 3a2284e
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3a2284e

Please sign in to comment.