Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation (#4003)
Browse files Browse the repository at this point in the history
* [automation] Auto-update linters version, help and documentation

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: nvuillam <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Sep 14, 2024
1 parent d5a24a8 commit 6447bb8
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 43 deletions.
26 changes: 13 additions & 13 deletions .automation/generated/linter-helps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"flake8": "7.1.1",
"gherkin-lint": "0.0.0",
"git_diff": "2.45.2",
"gitleaks": "8.19.0",
"gitleaks": "8.19.1",
"golangci-lint": "1.61.0",
"goodcheck": "3.1.0",
"graphql-schema-linter": "3.0.1",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- [ruff](https://github.com/astral-sh/ruff) from 0.6.4 to **0.6.5** on 2024-09-13
- [gitleaks](https://github.com/gitleaks/gitleaks) from 8.18.4 to **8.19.0** on 2024-09-14
- [trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.82.1 to **3.82.2** on 2024-09-14
- [gitleaks](https://github.com/gitleaks/gitleaks) from 8.19.0 to **8.19.1** on 2024-09-14
<!-- linter-versions-end -->

## [v8.0.0] - 2024-08-19
Expand Down
2 changes: 1 addition & 1 deletion docs/all_linters.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
| [**flake8**](https://github.com/PyCQA/flake8){target=_blank} | 7.1.1 | [MIT](licenses/flake8.md) | [![GitHub stars](https://img.shields.io/github/stars/PyCQA/flake8?cacheSeconds=3600)](https://github.com/PyCQA/flake8){target=_blank} | [PYTHON](descriptors/python_flake8.md) | :white_circle: | [Repository](https://github.com/PyCQA/flake8){target=_blank} |
| [**gherkin-lint**](https://github.com/vsiakka/gherkin-lint){target=_blank} | N/A | [ISC](licenses/gherkin-lint.md) | [![GitHub stars](https://img.shields.io/github/stars/vsiakka/gherkin-lint?cacheSeconds=3600)](https://github.com/vsiakka/gherkin-lint){target=_blank} | [GHERKIN](descriptors/gherkin_gherkin_lint.md) | :white_circle: | [Repository](https://github.com/vsiakka/gherkin-lint){target=_blank} |
| [**git_diff**](https://github.com/git/git){target=_blank} | 2.45.2 | [LGPL-2.1](licenses/git_diff.md) | [![GitHub stars](https://img.shields.io/github/stars/git/git?cacheSeconds=3600)](https://github.com/git/git){target=_blank} | [REPOSITORY](descriptors/repository_git_diff.md) | <!-- --> | [Repository](https://github.com/git/git){target=_blank} |
| [**gitleaks**](https://github.com/gitleaks/gitleaks){target=_blank} | 8.19.0 | [MIT](licenses/gitleaks.md) | [![GitHub stars](https://img.shields.io/github/stars/gitleaks/gitleaks?cacheSeconds=3600)](https://github.com/gitleaks/gitleaks){target=_blank} | [REPOSITORY](descriptors/repository_gitleaks.md) | :white_circle: | [Repository](https://github.com/gitleaks/gitleaks){target=_blank} |
| [**gitleaks**](https://github.com/gitleaks/gitleaks){target=_blank} | 8.19.1 | [MIT](licenses/gitleaks.md) | [![GitHub stars](https://img.shields.io/github/stars/gitleaks/gitleaks?cacheSeconds=3600)](https://github.com/gitleaks/gitleaks){target=_blank} | [REPOSITORY](descriptors/repository_gitleaks.md) | :white_circle: | [Repository](https://github.com/gitleaks/gitleaks){target=_blank} |
| [**golangci-lint**](https://github.com/golangci/golangci-lint){target=_blank} | 1.61.0 | [GPL-3.0](licenses/golangci-lint.md) | [![GitHub stars](https://img.shields.io/github/stars/golangci/golangci-lint?cacheSeconds=3600)](https://github.com/golangci/golangci-lint){target=_blank} | [GO](descriptors/go_golangci_lint.md) | :white_circle: | [Repository](https://github.com/golangci/golangci-lint){target=_blank} |
| [**graphql-schema-linter**](https://github.com/cjoudrey/graphql-schema-linter){target=_blank} | 3.0.1 | [MIT](licenses/graphql-schema-linter.md) | [![GitHub stars](https://img.shields.io/github/stars/cjoudrey/graphql-schema-linter?cacheSeconds=3600)](https://github.com/cjoudrey/graphql-schema-linter){target=_blank} | [GRAPHQL](descriptors/graphql_graphql_schema_linter.md) | :hammer_and_wrench: | [Pull Request](https://github.com/cjoudrey/graphql-schema-linter/pull/272){target=_blank} |
| [**grype**](https://github.com/anchore/grype){target=_blank} | 0.79.5 | [Apache-2.0](licenses/grype.md) | [![GitHub stars](https://img.shields.io/github/stars/anchore/grype?cacheSeconds=3600)](https://github.com/anchore/grype){target=_blank} | [REPOSITORY](descriptors/repository_grype.md) | :white_circle: | [Repository](https://github.com/anchore/grype){target=_blank} |
Expand Down
10 changes: 10 additions & 0 deletions docs/config-precommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@ PRE_COMMANDS:
tag: before_plugins # Tag indicating that the command will be run before loading plugins
```
| Property | Description | Default value |
|------------------------|------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| **command** | Command line to run | Mandatory |
| **cwd** | Directory where to run the command (`workspace` or `root`) | `workspace` |
| **secured_env** | Apply filtering of secured env variables before calling the command (default true)<br/>Be careful if you disable it ! | `true` |
| **continue_if_failed** | If set to `false`, stop MegaLinter process in case of command failure | `true` |
| **venv** | If set, runs the command into the related python venv | <!-- --> |
| **output_variables** | ENV variables to get from output after running the commands, and store in MegaLinter ENV context, so they can be reused in next commands | `[]` |
| **tag** | Tag defining at which commands entry point the command will be run (available tags: `before_plugins`) | <!-- --> |


<!-- config-precommands-section-end -->
2 changes: 1 addition & 1 deletion docs/descriptors/kubernetes_kubescape.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Available Commands:
completion Generate autocompletion script
config Handle cached configurations
delete Delete configurations in Kubescape SaaS version
download Download attack-tracks,controls-inputs,exceptions,control,framework,artifacts
download Download control,framework,artifacts,attack-tracks,controls-inputs,exceptions
fix Fix misconfiguration in files
help Help about any command
list List frameworks/controls will list the supported frameworks and controls
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/markdown_markdown_link_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ markdown-link-check -c .markdown-link-check.json myfile.md
### Help content

```shell
(node:1523) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1524) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Usage: markdown-link-check [options] [filenamesOrUrls...]

Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/repository_gitleaks.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ git fetch --depth=0

## gitleaks documentation

- Version in MegaLinter: **8.19.0**
- Version in MegaLinter: **8.19.1**
- Visit [Official Web Site](https://github.com/gitleaks/gitleaks#readme){target=_blank}
- See [How to configure gitleaks rules](https://github.com/gitleaks/gitleaks#configuration){target=_blank}
- If custom `.gitleaks.toml` config file isn't found, [.gitleaks.toml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.gitleaks.toml){target=_blank} will be used
Expand Down Expand Up @@ -179,7 +179,7 @@ Use "gitleaks [command] --help" for more information about a command.
- Dockerfile commands :
```dockerfile
# renovate: datasource=docker depName=zricethezav/gitleaks
ARG REPOSITORY_GITLEAKS_VERSION=v8.19.0
ARG REPOSITORY_GITLEAKS_VERSION=v8.19.1
FROM zricethezav/gitleaks:${REPOSITORY_GITLEAKS_VERSION} AS gitleaks
COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
```
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/salesforce.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ description: sfdx-scanner-apex, sfdx-scanner-aura, sfdx-scanner-lwc, lightning-f
# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.58.7
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.8.5
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.8.6
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.53.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/salesforce_lightning_flow_scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sf flow:scan
### Help content

```shell
(node:1745) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1746) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Find and fix potential bugs in Salesforce flows.

Expand Down Expand Up @@ -126,7 +126,7 @@ GLOBAL FLAGS
# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.58.7
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.8.5
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.8.6
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.53.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
Expand Down
Loading

0 comments on commit 6447bb8

Please sign in to comment.