Skip to content

Commit

Permalink
Merge pull request #256 from vkucera/megalinter
Browse files Browse the repository at this point in the history
Update MegaLinter
  • Loading branch information
ddobrigk authored May 16, 2024
2 parents 2549c9b + 952f35c commit ffedb2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
# MegaLinter GitHub Action configuration file
# More info at https://oxsecurity.github.io/megalinter
# More info at https://megalinter.io
name: MegaLinter

'on': [pull_request_target]

permissions: {}

env:
# Apply linter fixes configuration
APPLY_FIXES: all
Expand All @@ -15,19 +17,18 @@ concurrency:
cancel-in-progress: true

jobs:
build:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Checkout the HEAD of the PR instead of the merge commit.
# This may include unrelated files if the PR branch is not up to date with the upstream.
# ref: ${{ github.event.pull_request.head.sha }}
# Checkout the merge commit.
ref: refs/pull/${{ github.event.number }}/merge
ref: ${{ github.event.pull_request.head.sha }}
# Checkout the merge commit. (If a fixing PR is made, it will include also missing commits from upstream.)
# ref: refs/pull/${{ github.event.number }}/merge
fetch-depth: 0
# So we can use secrets.ALIBUILD_GITHUB_TOKEN to push later.
persist-credentials: false
Expand All @@ -36,11 +37,11 @@ jobs:
- name: MegaLinter
id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://oxsecurity.github.io/megalinter/flavors/
uses: oxsecurity/megalinter@v6
# More info at https://megalinter.io/flavors/
uses: oxsecurity/megalinter@v7
env:
# All available variables are described in documentation:
# https://oxsecurity.github.io/megalinter/configuration/
# https://megalinter.io/configuration/
# Validates all source when push on master, else just the diff with
# master. Override with true if you always want to lint all sources.
VALIDATE_ALL_CODEBASE: false
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:
yourself and update the pull request, or merge this PR in yours.
You can find how to run MegaLinter locally at
<https://oxsecurity.github.io/megalinter/latest/mega-linter-runner/>.
<https://megalinter.io/latest/mega-linter-runner/>.
# We do not create PRs if the branch is not there.
continue-on-error: true

Expand Down
2 changes: 1 addition & 1 deletion .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MARKDOWN_MARKDOWNLINT_DISABLE_ERRORS: false
SHOW_ELAPSED_TIME: true
FILEIO_REPORTER: false
GITHUB_COMMENT_REPORTER: false
UPDATED_SOURCES_REPORTER: false
UPDATED_SOURCES_REPORTER: true
PRINT_ALPACA: false # Don't print ASCII alpaca in the log
PRINT_ALL_FILES: true # Print all processed files
FLAVOR_SUGGESTIONS: false # Don't show suggestions about different MegaLinter flavors

0 comments on commit ffedb2c

Please sign in to comment.