11---
22# MegaLinter GitHub Action configuration file
3- # More info at https://oxsecurity.github.io/megalinter
3+ # More info at https://megalinter.io
44name : MegaLinter
55
66' on ' : [pull_request_target]
77
8+ permissions : {}
9+
810env :
911 # Apply linter fixes configuration
1012 APPLY_FIXES : all
@@ -15,19 +17,18 @@ concurrency:
1517 cancel-in-progress : true
1618
1719jobs :
18- build :
20+ megalinter :
1921 name : MegaLinter
2022 runs-on : ubuntu-latest
2123 steps :
2224 # Git Checkout
2325 - name : Checkout Code
24- uses : actions/checkout@v3
26+ uses : actions/checkout@v4
2527 with :
2628 # Checkout the HEAD of the PR instead of the merge commit.
27- # This may include unrelated files if the PR branch is not up to date with the upstream.
28- # ref: ${{ github.event.pull_request.head.sha }}
29- # Checkout the merge commit.
30- ref : refs/pull/${{ github.event.number }}/merge
29+ ref : ${{ github.event.pull_request.head.sha }}
30+ # Checkout the merge commit. (If a fixing PR is made, it will include also missing commits from upstream.)
31+ # ref: refs/pull/${{ github.event.number }}/merge
3132 fetch-depth : 0
3233 # So we can use secrets.ALIBUILD_GITHUB_TOKEN to push later.
3334 persist-credentials : false
@@ -36,11 +37,11 @@ jobs:
3637 - name : MegaLinter
3738 id : ml
3839 # You can override MegaLinter flavor used to have faster performances
39- # More info at https://oxsecurity.github.io/megalinter /flavors/
40- uses : oxsecurity/megalinter@v6
40+ # More info at https://megalinter.io /flavors/
41+ uses : oxsecurity/megalinter@v7
4142 env :
4243 # All available variables are described in documentation:
43- # https://oxsecurity.github.io/megalinter /configuration/
44+ # https://megalinter.io /configuration/
4445 # Validates all source when push on master, else just the diff with
4546 # master. Override with true if you always want to lint all sources.
4647 VALIDATE_ALL_CODEBASE : false
8182 yourself and update the pull request, or merge this PR in yours.
8283
8384 You can find how to run MegaLinter locally at
84- <https://oxsecurity.github.io/megalinter /latest/mega-linter-runner/>.
85+ <https://megalinter.io /latest/mega-linter-runner/>.
8586 # We do not create PRs if the branch is not there.
8687 continue-on-error : true
8788
0 commit comments