Skip to content

Commit 521baf6

Browse files
authored
Add R2DevOps way to setup MegaLinter on Gitlab (#3129)
Fixes #3065
1 parent 55f2d6f commit 521baf6

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ _Github PR reporter_
8989
- [Which version to use ?](#which-version-to-use-)
9090
- [GitHub Action](#github-action)
9191
- [GitLab CI](#gitlab-ci)
92+
- [Manual Setup](#manual-setup)
93+
- [Using R2Devops](#using-r2devops)
9294
- [Azure Pipelines](#azure-pipelines)
9395
- [Bitbucket Pipelines](#bitbucket-pipelines)
9496
- [Jenkins](#jenkins)
@@ -528,6 +530,8 @@ description: Manual instructions to setup MegaLinter as a Gitlab Pipeline job
528530
-->
529531
### GitLab CI
530532
533+
#### Manual setup
534+
531535
Create or update `.gitlab-ci.yml` file at the root of your repository
532536

533537
```yaml
@@ -556,7 +560,15 @@ Create a Gitlab access token and define it in a variable **GITLAB_ACCESS_TOKEN_M
556560

557561
![config-gitlab-access-token](https://user-images.githubusercontent.com/17500430/151674446-1bcb1420-d9aa-4ae1-aaae-dcf51afb36ab.gif)
558562

559-
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/TextReporter_gitlab_1.jpg?raw=true>)
563+
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/TextReporter_gitlab_1.jpg?raw=true)
564+
565+
#### Using R2Devops
566+
567+
![R2Devops Logo](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/r2devops-logo.jpg?raw=true)
568+
569+
Out friends at [R2Devops](https://r2devops.io/) have packaged a [Gitlab-CI MegaLinter workflow](https://r2devops.io/marketplace/gitlab/r2devops/hub/mega_linter) on their [open-source templates marketplace](https://r2devops.io/marketplace), and it can post MegaLinter results in Gitlab Code Quality Reports !
570+
571+
[![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/r2devops-link.jpg?raw=true)](https://r2devops.io/marketplace/gitlab/r2devops/hub/mega_linter)
560572

561573
<!-- install-gitlab-section-end -->
562574
<!-- install-azure-section-start -->
@@ -1688,20 +1700,20 @@ MegaLinter can be run locally thanks to [mega-linter-runner](https://megalinter.
16881700

16891701
- [Console](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/ConsoleReporter.md)
16901702

1691-
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/ConsoleReporter.jpg?raw=true>)
1703+
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/ConsoleReporter.jpg?raw=true)
16921704

16931705
- [Text files](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/TextReporter.md)
16941706
- [GitHub Pull Request comments](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/GitHubCommentReporter.md)
16951707

1696-
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/GitHubCommentReporter.jpg?raw=true>)
1708+
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/GitHubCommentReporter.jpg?raw=true)
16971709

16981710
- [Gitlab Merge Request comments](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/GitlabCommentReporter.md)
16991711

1700-
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/GitlabCommentReporter.jpg?raw=true>)
1712+
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/GitlabCommentReporter.jpg?raw=true)
17011713

17021714
- [Azure Pull Request comments](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/AzureCommentReporter.md)
17031715

1704-
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/AzureCommentReporter.jpg?raw=true>)
1716+
![Screenshot](https://github.com/oxsecurity/megalinter/blob/main/docs/assets/images/AzureCommentReporter.jpg?raw=true)
17051717

17061718
- [Updated sources](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/UpdatedSourcesReporter.md)
17071719
- [Email](https://github.com/oxsecurity/megalinter/tree/main/docs/reporters/EmailReporter.md)

docs/assets/images/r2devops-link.jpg

26 KB
Loading

docs/assets/images/r2devops-logo.jpg

5.03 KB
Loading

0 commit comments

Comments
 (0)