Skip to content

Commit

Permalink
Quick fix mega-linter-runner --upgrade (#2693)
Browse files Browse the repository at this point in the history
- Dead link to configuration.md
  - Regex issue with megalinter-reports
  • Loading branch information
nvuillam committed May 27, 2023
1 parent 8c92ca3 commit 862fb04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `oxsecurity/megalinter:beta` docker image

- Quick Fix mega-linter-runner --upgrade
- Dead link to configuration.md
- Regex issue with megalinter-reports

- Linter versions upgrades
<!-- linter-versions-end -->

Expand Down
8 changes: 7 additions & 1 deletion mega-linter-runner/lib/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ jobs:
},
// GitHub Action report folder
{
regex: /Mega-Linter reports(.*)\n(.*)path:(.*)\n(.*)report/gm,
regex: /Mega-Linter reports(.*)\n(.*)path:(.*)\n(.*)report(?!s)/gm,
replacement: "Mega-Linter reports$1\n$2path:$3\n$4megalinter-reports",
test: ` name: Mega-Linter reports
path: |
Expand Down Expand Up @@ -347,6 +347,12 @@ jobs:
test: "https://oxsecurity.github.io/megalinter/configuration",
testRes: "https://megalinter.io/configuration",
},
{
regex: /https:\/\/megalinter.io\/configuration/gm,
replacement: "https://megalinter.io/config-file",
test: "https://megalinter.io/configuration/",
testRes: "https://megalinter.io/config-file/",
},
// Github actions flavors
{
regex: /oxsecurity\/megalinter\/flavors\/([a-z]*)@v6\.(.*)/gm,
Expand Down

0 comments on commit 862fb04

Please sign in to comment.