diff --git a/.github/workflows/auto-update-linters.yml b/.github/workflows/auto-update-linters.yml index 9961015da3b..078f741f15f 100644 --- a/.github/workflows/auto-update-linters.yml +++ b/.github/workflows/auto-update-linters.yml @@ -108,7 +108,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() uses: actions/upload-artifact@v3 with: name: MegaLinter reports diff --git a/.github/workflows/deploy-DEV.yml b/.github/workflows/deploy-DEV.yml index da43564a99f..93f9fb3e74e 100644 --- a/.github/workflows/deploy-DEV.yml +++ b/.github/workflows/deploy-DEV.yml @@ -225,7 +225,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() uses: actions/upload-artifact@v3 with: name: MegaLinter reports @@ -236,7 +236,7 @@ jobs: linter-versions.json - name: debug - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() run: echo ${{ steps.docker_build.outcome }} # Clean disk space diff --git a/.github/workflows/mega-linter-for-runner.yml b/.github/workflows/mega-linter-for-runner.yml index 8fdd35751c5..13ebc7920f5 100644 --- a/.github/workflows/mega-linter-for-runner.yml +++ b/.github/workflows/mega-linter-for-runner.yml @@ -106,7 +106,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts uses: actions/upload-artifact@v3 - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() with: name: MegaLinter reports path: | diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index d7b2e1f9bdc..075187d7c79 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -106,7 +106,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts uses: actions/upload-artifact@v3 - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() with: name: MegaLinter reports path: | diff --git a/CHANGELOG.md b/CHANGELOG.md index d1a649db753..539f72ae80c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Update Pylint links to their current locations, by @echoix in [#3116](https://github.com/oxsecurity/megalinter/issues/3116) - Fix way to install powershell on Alpine linux image - Fix issue with VS Code devcontainer not building [#3114](https://github.com/oxsecurity/megalinter/issues/3114) + - Fix Default Workflow to handle latest ActionLint rules - CI - Upgrade pymdown-extensions and markdown, by @BryanQuigley in [#3053](https://github.com/oxsecurity/megalinter/pull/3053) diff --git a/README.md b/README.md index 7c45952d0da..1de323e1c34 100644 --- a/README.md +++ b/README.md @@ -480,7 +480,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() uses: actions/upload-artifact@v3 with: name: MegaLinter reports diff --git a/TEMPLATES/mega-linter.yml b/TEMPLATES/mega-linter.yml index 633cf78d25a..c37d9af669d 100644 --- a/TEMPLATES/mega-linter.yml +++ b/TEMPLATES/mega-linter.yml @@ -101,7 +101,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts uses: actions/upload-artifact@v3 - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() with: name: MegaLinter reports path: | diff --git a/docs/install-github.md b/docs/install-github.md index 1c225e2413a..b43164a11fa 100644 --- a/docs/install-github.md +++ b/docs/install-github.md @@ -82,7 +82,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() uses: actions/upload-artifact@v3 with: name: MegaLinter reports diff --git a/docs/reporters/SarifReporter.md b/docs/reporters/SarifReporter.md index 666fb073f49..679c777edc8 100644 --- a/docs/reporters/SarifReporter.md +++ b/docs/reporters/SarifReporter.md @@ -23,7 +23,7 @@ If you want GitHub to handle the SARIF file to display it in its UI, add the fol ```yaml - name: Upload MegaLinter scan results to GitHub Security tab -if: ${{ success() }} || ${{ failure() }} +if: success() || failure() uses: github/codeql-action/upload-sarif@v2 with: sarif_file: 'megalinter-reports/megalinter-report.sarif'