diff --git a/CHANGELOG.md b/CHANGELOG.md index 868de3a1ed6..39c8c6d2db7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Deprecate misspell, as it is not maintained since 2018 - Jscpd: Do not output HTML reports if REPORT_OUTPUT_FOLDER is none - kubeconform: Simplify installation and get latest version + - Updated cases in console/log output to use ⚠ `Warning Sign (U+26A0)` instead of ◬ `White Up-Pointing Triangle with Dot (U+25EC)` - Reporters - Enhancements and fixes on Gitlab Comment Reporter @@ -59,6 +60,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Documentation - Apply many updates after the use of [Vale](https://vale.sh/) on MegaLinter own sources and docs - Remove ASCII characters from linters helps displayed in MegaLinter documentation + - Add instructions to install MegaLinter on Bitbucket Pipelines - Linter versions upgrades - [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.76.1 to **0.76.2** on 2023-04-04 diff --git a/README.md b/README.md index ec0eea70c0b..cb0187d791f 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ _Github PR reporter_ - [GitHub Action](#github-action) - [GitLab CI](#gitlab-ci) - [Azure Pipelines](#azure-pipelines) + - [Bitbucket Pipelines](#bitbucket-pipelines) - [Jenkins](#jenkins) - [Concourse](#concourse) - [Pipeline step](#pipeline-step) @@ -549,6 +550,27 @@ Add the following job in your `azure-pipelines.yaml` file To benefit from Pull Request comments, please follow [configuration instructions](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/AzureCommentReporter.md) +### Bitbucket Pipelines + +1. Create a `bitbucket-pipelines.yml` file on the root directory of your repository + +2. Copy and paste the following template or add the step to your existing pipeline. + +```yaml +image: atlassian/default-image:3 +pipelines: + default: + - parallel: + - step: + name: Run MegaLinter + image: oxsecurity/megalinter:v6 + script: + - export DEFAULT_WORKSPACE=$BITBUCKET_CLONE_DIR && bash /entrypoint.sh + artifacts: + - megalinter-reports/** +``` + + ### Jenkins Add the following stage in your Jenkinsfile diff --git a/docs/installation.md b/docs/installation.md index 8cbe4694f5c..99ee205545b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -338,6 +338,27 @@ resources: # VALIDATE_ALL_CODEBASE: true ``` +## Bitbucket Pipeline + +1. Create a `bitbucket-pipelines.yml` file on the root directory of your repository + +2. Copy and paste the following template or add the step to your existing pipeline. + +```yaml +image: atlassian/default-image:3 + +pipelines: + default: + - parallel: + - step: + name: Run MegaLinter + image: oxsecurity/megalinter + script: + - export DEFAULT_WORKSPACE=$BITBUCKET_CLONE_DIR && bash /entrypoint.sh + artifacts: + - megalinter-reports/** +``` + ## Drone CI **Warning: Drone CI support is experimental and is undergoing heavy modifications (see issue [#2047](https://github.com/oxsecurity/megalinter/issues/2047)).** diff --git a/megalinter/MegaLinter.py b/megalinter/MegaLinter.py index c07fa9bf1d5..524496d1bf5 100644 --- a/megalinter/MegaLinter.py +++ b/megalinter/MegaLinter.py @@ -856,7 +856,7 @@ def check_results(self): self.check_updated_sources_failure() elif self.status == "warning": logging.warning( - c.yellow("◬ Successfully linted all files, but with ignored errors") + c.yellow("⚠️ Successfully linted all files, but with ignored errors") ) config.delete(self.request_id) self.check_updated_sources_failure() diff --git a/megalinter/reporters/ConsoleReporter.py b/megalinter/reporters/ConsoleReporter.py index 8e82f85952d..3b91311b8c0 100644 --- a/megalinter/reporters/ConsoleReporter.py +++ b/megalinter/reporters/ConsoleReporter.py @@ -70,7 +70,7 @@ def produce_report(self): status = ( "✅" if linter.status == "success" and linter.return_code == 0 - else "◬" + else "⚠️" if linter.status != "success" and linter.return_code == 0 else "❌" )