mega-linter-runner 8.8.1-beta202507271215.0 → 8.8.1-beta202507271952.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,6 +105,10 @@ Example: 'megalinter-custom-flavor-python-light'
105
105
  if (this.selectedLinters.length === 0) {
106
106
  throw new Error("You must select at least one linter for your custom flavor");
107
107
  }
108
+ this.selectedLintersWithLinks = this.props.selectedLinters.map((linter) => {
109
+ const linterUrl = `https://megalinter.io/latest/descriptors/${linter.toLowerCase()}/`;
110
+ return ` - [${linter}](${linterUrl})`;
111
+ }).join("\n");
108
112
  // Custom flavor author is git username
109
113
  const git = simpleGit();
110
114
  const user = await git.getConfig('user.name');
@@ -112,6 +116,7 @@ Example: 'megalinter-custom-flavor-python-light'
112
116
  // Get remote repo
113
117
  const remote = await git.getRemotes(true);
114
118
  this.customFlavorRepo = remote[0].refs.fetch.replace('https://github.com/', '').replace('.git', '');
119
+ this.customFlavorRepoUrl = remote[0].refs.fetch.replace('.git', '');
115
120
  // Custom flavor docker image version
116
121
  this.customFlavorDockerImageVersion = `ghcr.io/${this.customFlavorRepo}/megalinter-custom-flavor:latest`;
117
122
  }
@@ -153,9 +158,11 @@ Example: 'megalinter-custom-flavor-python-light'
153
158
  this.destinationPath("README.md"),
154
159
  {
155
160
  CUSTOM_FLAVOR_LABEL: this.customFlavorLabel,
156
- CUSTOM_FLAVOR_LINTERS: this.selectedLinters,
161
+ CUSTOM_FLAVOR_LINTERS_WITH_LINKS: this.selectedLintersWithLinks,
157
162
  DOCKER_IMAGE_VERSION: this.customFlavorDockerImageVersion,
158
- CUSTOM_FLAVOR_GITHUB_ACTION: this.customFlavorRepo
163
+ CUSTOM_FLAVOR_GITHUB_ACTION: this.customFlavorRepo,
164
+ CUSTOM_FLAVOR_REPO_URL: this.customFlavorRepoUrl,
165
+ CUSTOM_FLAVOR_AUTHOR: this.customFlavorAuthor,
159
166
  }
160
167
  );
161
168
  }
@@ -1,10 +1,12 @@
1
- # MegaLinter Custom Flavor
1
+ # MegaLinter Custom Flavor: <%= CUSTOM_FLAVOR_LABEL %>
2
2
 
3
- <%= CUSTOM_FLAVOR_LABEL %>
3
+ This custom MegaLinter aims to have an optimized Docker image size.
4
+
5
+ It is built from official MegaLinter images, but is maintained on <%= CUSTOM_FLAVOR_REPO_URL %> by <%= CUSTOM_FLAVOR_AUTHOR %>
4
6
 
5
7
  ## Embedded linters
6
8
 
7
- <%= CUSTOM_FLAVOR_LINTERS %>
9
+ <%= CUSTOM_FLAVOR_LINTERS_WITH_LINKS %>
8
10
 
9
11
  ## How to generate the flavor
10
12
 
@@ -12,9 +14,13 @@ Create a GitHub release on your repo, it will generate and publish your custom f
12
14
 
13
15
  You can also generate a custom flavor using MegaLinter Custom Flavor by pushing on any branch or manually run the workflow `megalinter-custom-flavor-builder.yml`.
14
16
 
17
+ See [full Custom Flavors documentation](https://megalinter.io/beta/custom-flavors/).
18
+
15
19
  ## How to use the custom flavor
16
20
 
17
21
  Follow [MegaLinter installation guide](https://megalinter.io/latest/install-assisted/), and replace related elements in the workflow.
18
22
 
19
23
  - GitHub Action: On MegaLinter step in .github/workflows/mega-linter.yml, define `uses: <%= CUSTOM_FLAVOR_GITHUB_ACTION %>@main`
20
- - Docker image: Replace official MegaLinter image by `<%= DOCKER_IMAGE_VERSION %>`
24
+ - Docker image: Replace official MegaLinter image by `<%= DOCKER_IMAGE_VERSION %>`
25
+
26
+ [![MegaLinter is graciously provided by OX Security](https://raw.githubusercontent.com/oxsecurity/megalinter/main/docs/assets/images/ox-banner.png)](https://www.ox.security/?ref=megalinter)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mega-linter-runner",
3
- "version": "8.8.1-beta202507271215.0",
3
+ "version": "8.8.1-beta202507271952.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/oxsecurity/megalinter.git"