Skip to content

Commit 8bbe75c

Browse files
authored
Fix rust setup & disable codecov-cli (#5579)
* [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trvy * Fix cargo install * Fix rust install * [MegaLinter] Apply linters fixes * disable codecov cli * disable errors for lychee * bash * NumProcesses = 2 foe individual linters tests --------- Co-authored-by: nvuillam <[email protected]>
1 parent dec0ac2 commit 8bbe75c

File tree

32 files changed

+127
-95
lines changed

32 files changed

+127
-95
lines changed

.automation/build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,14 @@ def build_dockerfile(
564564
cargo_install_command = (
565565
"RUN curl https://sh.rustup.rs -sSf |"
566566
+ " sh -s -- -y --profile minimal --default-toolchain ${RUST_RUST_VERSION} \\\n"
567-
+ ' && export PATH="/root/.cargo/bin:${PATH}" \\\n'
567+
+ ' && export PATH="/root/.cargo/bin:/root/.cargo/env:${PATH}" \\\n'
568+
+ " && rustup default stable \\\n"
568569
+ f" && {rustup_cargo_cmd} \\\n"
569570
+ " && rm -rf /root/.cargo/registry /root/.cargo/git "
570571
+ "/root/.cache/sccache"
571572
+ (" /root/.rustup" if keep_rustup is False else "")
572573
+ "\n"
573-
+ 'ENV PATH="/root/.cargo/bin:${PATH}"'
574+
+ 'ENV PATH="/root/.cargo/bin:/root/.cargo/env:${PATH}"'
574575
)
575576
replace_in_file(dockerfile, "#CARGO__START", "#CARGO__END", cargo_install_command)
576577
# NPM packages

.automation/generated/linter-helps.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.trivyignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ CVE-2024-24790
2424
CVE-2024-45337
2525
CVE-2024-45338
2626
CVE-2025-22869
27+
CVE-2025-22874
2728
CVE-2025-30204
2829

2930
# go-git

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,11 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin || true && \
482482

483483
#CARGO__START
484484
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_RUST_VERSION} \
485-
&& export PATH="/root/.cargo/bin:${PATH}" \
485+
&& export PATH="/root/.cargo/bin:/root/.cargo/env:${PATH}" \
486+
&& rustup default stable \
486487
&& rustup component add clippy && cargo install --force --locked sarif-fmt@${CARGO_SARIF_FMT_VERSION} shellcheck-sarif@${CARGO_SHELLCHECK_SARIF_VERSION} selene@${CARGO_SELENE_VERSION} stylua@${CARGO_STYLUA_VERSION} \
487488
&& rm -rf /root/.cargo/registry /root/.cargo/git /root/.cache/sccache
488-
ENV PATH="/root/.cargo/bin:${PATH}"
489+
ENV PATH="/root/.cargo/bin:/root/.cargo/env:${PATH}"
489490
#CARGO__END
490491

491492
################################

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
[![MegaLinter](https://github.com/oxsecurity/megalinter/workflows/MegaLinter/badge.svg?branch=main)](https://github.com/oxsecurity/megalinter/actions?query=workflow%3AMegaLinter+branch%3Amain)
2424
[![codecov](https://codecov.io/gh/oxsecurity/megalinter/branch/main/graph/badge.svg)](https://codecov.io/gh/oxsecurity/megalinter)
2525
<!-- gh-dependents-info-used-by-start -->
26-
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=2964&color=informational&logo=slickpic)](https://github.com/oxsecurity/megalinter/blob/main/./docs/used-by-stats.md)<!-- gh-dependents-info-used-by-end -->
26+
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=2967&color=informational&logo=slickpic)](https://github.com/oxsecurity/megalinter/blob/main/./docs/used-by-stats.md)<!-- gh-dependents-info-used-by-end -->
2727
[![Secured with Trivy](https://img.shields.io/badge/Trivy-secured-green?logo=docker)](https://github.com/aquasecurity/trivy)
2828
[![GitHub contributors](https://img.shields.io/github/contributors/oxsecurity/megalinter.svg)](https://github.com/oxsecurity/megalinter/graphs/contributors/)
2929
[![GitHub Sponsors](https://img.shields.io/github/sponsors/nvuillam)](https://github.com/sponsors/nvuillam)

docs/descriptors/kubernetes_kubescape.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Flags:
145145
--server string Backend discovery server URL
146146

147147
Use "kubescape [command] --help" for more information about a command.
148+
{"level":"info","ts":"2025-06-14T08:11:35Z","msg":"Received interrupt signal, exiting..."}
148149
```
149150
150151
### Installation on mega-linter Docker image

docs/descriptors/snakemake_snakemake.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ usage: snakemake [-h] [--dry-run] [--profile PROFILE]
135135
[--filegraph] [--d3dag] [--summary] [--detailed-summary]
136136
[--archive FILE] [--cleanup-metadata FILE [FILE ...]]
137137
[--cleanup-shadow] [--skip-script-cleanup] [--unlock]
138-
[--list-changes {params,input,code}] [--list-input-changes]
138+
[--list-changes {code,input,params}] [--list-input-changes]
139139
[--list-params-changes] [--list-untracked]
140140
[--delete-all-output | --delete-temp-output]
141141
[--keep-incomplete] [--drop-metadata] [--version]
@@ -181,7 +181,7 @@ usage: snakemake [-h] [--dry-run] [--profile PROFILE]
181181
[--scheduler-solver-path SCHEDULER_SOLVER_PATH]
182182
[--deploy-sources QUERY CHECKSUM]
183183
[--target-jobs TARGET_JOBS [TARGET_JOBS ...]]
184-
[--mode {default,subprocess,remote}]
184+
[--mode {remote,default,subprocess}]
185185
[--report-html-path VALUE]
186186
[--report-html-stylesheet-path VALUE]
187187
[targets ...]
@@ -670,7 +670,7 @@ UTILITIES:
670670
(default: False)
671671
--unlock Remove a lock on the working directory. (default:
672672
False)
673-
--list-changes, --lc {params,input,code}
673+
--list-changes, --lc {code,input,params}
674674
List all output files for which the given items (code,
675675
input, params) have changed since creation.
676676
--list-input-changes, --li
@@ -1028,7 +1028,7 @@ INTERNAL:
10281028
--target-jobs TARGET_JOBS [TARGET_JOBS ...]
10291029
Internal use only: Target particular jobs by
10301030
RULE:WILDCARD1=VALUE,WILDCARD2=VALUE,...
1031-
--mode {default,subprocess,remote}
1031+
--mode {remote,default,subprocess}
10321032
Internal use only: Set execution mode of Snakemake.
10331033
(default: default)
10341034

0 commit comments

Comments
 (0)