From 3198e8ff72afe972321ed6124e501e43a813f376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chastanet?= Date: Thu, 7 Dec 2023 21:59:05 +0100 Subject: [PATCH] fixed megalinter reported issues --- .checkov.yml | 2 ++ .cspell.json | 15 ++++++++++++++- .cspell/bash.txt | 4 ++++ .cspell/loremIpsum.txt | 40 ++++++++++++++++++++++++++++++++++++++++ .lycheeignore | 15 +++++++++++++++ .mega-linter.yml | 8 ++------ kics.config | 2 ++ trivy.yaml | 5 +++++ 8 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 .checkov.yml create mode 100644 .cspell/loremIpsum.txt create mode 100644 .lycheeignore create mode 100644 kics.config create mode 100644 trivy.yaml diff --git a/.checkov.yml b/.checkov.yml new file mode 100644 index 00000000..f0bf6caf --- /dev/null +++ b/.checkov.yml @@ -0,0 +1,2 @@ +skip-path: + - vendor diff --git a/.cspell.json b/.cspell.json index e0c72000..b74bbc80 100644 --- a/.cspell.json +++ b/.cspell.json @@ -27,19 +27,32 @@ "words": ["megalinter", "oxsecurity"], "dictionaryDefinitions": [ {"name": "bashCustom", "path": ".cspell/bash.txt"}, + {"name": "loremIpsum", "path": ".cspell/loremIpsum.txt"}, {"name": "config", "path": ".cspell/config.txt"}, {"name": "softwares", "path": ".cspell/softwares.txt"}, {"name": "readme", "path": ".cspell/readme.txt"}, {"name": "dirColors", "path": ".cspell/dirColors.txt"}, {"name": "plantUml", "path": ".cspell/plantUml.txt"} ], - "dictionaries": ["bash", "bashCustom", "config", "softwares", "plantUml"], + "dictionaries": [ + "bash", + "bashCustom", + "config", + "softwares", + "plantUml", + "loremIpsum" + ], "languageSettings": [ { "languageId": "dirColors", "locale": "*", "dictionaries": ["dirColors"] }, + { + "languageId": "loremIpsum", + "locale": "*", + "dictionaries": ["loremIpsum"] + }, { "languageId": "bashCustom", "locale": "*", diff --git a/.cspell/bash.txt b/.cspell/bash.txt index 9fe0c70f..04d67560 100644 --- a/.cspell/bash.txt +++ b/.cspell/bash.txt @@ -118,3 +118,7 @@ ppassword DELIMS Facadesh Scriptsh +noargs +exitcode +Datash +installsh diff --git a/.cspell/loremIpsum.txt b/.cspell/loremIpsum.txt new file mode 100644 index 00000000..1419caab --- /dev/null +++ b/.cspell/loremIpsum.txt @@ -0,0 +1,40 @@ +Lorem +ipsum +dolor +sit +amet +consectetur +adipiscing +elit +Maecenas +vel +eros +id +ipsum +lobortis +cursus +id +dignissim +turpis +Nam +pretium +placerat +nulla +in +posuere +Mauris +libero +purus +aliquet +et +commodo +quis +semper +sit +amet +sapien +Curabitur +condimentum +finibus +abitur +fini diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 00000000..2b8a17b1 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,15 @@ +http://localhost* +file://pages/Commands.md +s3://s3server/exports +https://github.com/sharkdp/fd/releases/download/v@version@/fd_@version@_amd64.deb* +https://github.com/sharkdp/bat/releases/download/v@version@/bat_@version@_amd64.deb* +https://github.com/koalaman/shellcheck/releases/download/v@version@/shellcheck-v@version@.linux.x86_64.tar.xz* +https://github.com/hadolint/hadolint/releases/download/v@version@/hadolint-Linux-x86_64* +https://github.com/kubernetes-sigs/kind/releases/download/v@version@/kind-linux-amd64* +https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-/* +https://github.com/kubernetes/minikube/releases/download/v@version@/minikube-linux-amd64* +https://github.com/docker/compose/releases/download/v@version@/docker-compose* +https://github.com/plantuml/plantuml/releases/download/v@version@/plantuml-@version@.jar* +https://github.com/docker/docker-credential-helpers/releases/download/v@version@/docker-credential-wincred-v@version@.windows* +https://github.com/Versent/saml2aws/releases/download/v@version@/saml2aws_@version@_linux_amd64.tar.gz +https://github.com/fchastanet/bash-tools/tree/master/src/_binaries* diff --git a/.mega-linter.yml b/.mega-linter.yml index f6b0033e..b1f13524 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -1,6 +1,6 @@ --- # Configuration file for MegaLinter -# See all available variables at https://oxsecurity.github.io/megalinter/configuration/ and in linters documentation +# See all available variables at https://megalinter.io/latest/configuration/ and in linters documentation APPLY_FIXES: all # all, none, or list of linter keys # ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default @@ -95,11 +95,7 @@ JAVASCRIPT_DEFAULT_STYLE: prettier JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js JAVASCRIPT_ES_FILTER_REGEX_EXCLUDE: (report/) -JSON_JSONLINT_FILTER_REGEX_EXCLUDE: | - (?x)( - ^\.vscode/(settings|launch)\.json| - ^conf/\.vscode/settings\.json - ) +JSON_JSONLINT_FILTER_REGEX_EXCLUDE: (.vscode/) MARKDOWN_MARKDOWN_LINK_CHECK_FILTER_REGEX_EXCLUDE: (report) diff --git a/kics.config b/kics.config new file mode 100644 index 00000000..07532ee4 --- /dev/null +++ b/kics.config @@ -0,0 +1,2 @@ +exclude-paths: + - "vendor/" diff --git a/trivy.yaml b/trivy.yaml new file mode 100644 index 00000000..d9f30ab7 --- /dev/null +++ b/trivy.yaml @@ -0,0 +1,5 @@ +scan: + # Same as '--skip-dirs' + # Default is empty + skip-dirs: + - vendor/