Skip to content

Commit 952f35c

Browse files
committed
Update MegaLinter
1 parent 2549c9b commit 952f35c

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/mega-linter.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
# MegaLinter GitHub Action configuration file
3-
# More info at https://oxsecurity.github.io/megalinter
3+
# More info at https://megalinter.io
44
name: MegaLinter
55

66
'on': [pull_request_target]
77

8+
permissions: {}
9+
810
env:
911
# Apply linter fixes configuration
1012
APPLY_FIXES: all
@@ -15,19 +17,18 @@ concurrency:
1517
cancel-in-progress: true
1618

1719
jobs:
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
@@ -81,7 +82,7 @@ jobs:
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

.mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MARKDOWN_MARKDOWNLINT_DISABLE_ERRORS: false
2424
SHOW_ELAPSED_TIME: true
2525
FILEIO_REPORTER: false
2626
GITHUB_COMMENT_REPORTER: false
27-
UPDATED_SOURCES_REPORTER: false
27+
UPDATED_SOURCES_REPORTER: true
2828
PRINT_ALPACA: false # Don't print ASCII alpaca in the log
2929
PRINT_ALL_FILES: true # Print all processed files
3030
FLAVOR_SUGGESTIONS: false # Don't show suggestions about different MegaLinter flavors

0 commit comments

Comments
 (0)