-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(global): add mega linter #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
bdb7fd4
chore(global): flatten monorepo and ignore legacy ci configs
netanelC b64e298
docs(global): add missing README files for container images
netanelC 387a3c4
refactor: remove helms and order the repo
netanelC 058c08c
docs(sftpgo): add missing README file
netanelC 56c06ee
feat: add sftpgo
netanelC e544c24
feat: add lint
netanelC 136c0a8
ci: pull request workflow
netanelC f4bd240
refactor: use docker hadolint
netanelC 6929d52
ci(global): add commitlint
netanelC 64a4432
feat(global): add release please
netanelC 65a3eab
docs(global): add README
netanelC 233fa6e
chore(global): remove PRD file
netanelC a2f64e0
style: empty line at eof
netanelC edb1275
Merge branch 'initial-repo' into add-lint
netanelC bab4452
refactor: migrate images to a dedicated folder and add script for lint
netanelC 4484d24
ci: set ruff version
netanelC 42dedb2
Merge branch 'master' of https://github.com/MapColonies/shared-images…
netanelC a491b61
style: run prettier
netanelC ed61512
fix: remove root images folders
netanelC f56fee9
Merge branch 'add-lint' of https://github.com/MapColonies/shared-imag…
netanelC 500c5fa
refactor(global): images folder
netanelC b79350f
Merge branch 'add-commitlint' of https://github.com/MapColonies/share…
netanelC e0b4015
Merge branch 'master' of https://github.com/MapColonies/shared-images…
netanelC 7e21f85
ci(global): add cache
netanelC 96122e5
refactor(global): add mega linter
netanelC 61331fb
ci(global): fix step
netanelC d99d602
chore(global): add package-lock to megalinter ignore
netanelC 77e9dc8
ci(global): use docker cache action
netanelC 748ed21
revert(global): enable yaml
netanelC 058cffb
Merge branch 'master' of https://github.com/MapColonies/shared-images…
netanelC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "ignorePaths": ["**/node_modules/**", "**/vscode-extension/**", "**/.git/**", ".vscode", "megalinter", "package-lock.json", "report"], | ||
| "language": "en", | ||
| "noConfigSearch": true, | ||
| "words": ["megalinter", "oxsecurity"], | ||
| "version": "0.2" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Configuration file for MegaLinter | ||
| # | ||
| # See all available variables at https://megalinter.io/latest/config-file/ and in | ||
| # linters documentation | ||
| --- | ||
| # all, none, or list of linter keys | ||
| APPLY_FIXES: none | ||
|
|
||
| DISABLE_LINTERS: | ||
| - PYTHON_PYRIGHT | ||
| - JSON_V8R | ||
| - REPOSITORY_DUSTILOCK | ||
| - REPOSITORY_KINGFISHER | ||
| - REPOSITORY_KICS | ||
| - REPOSITORY_DEVSKIM | ||
| - SPELL_CSPELL | ||
|
|
||
| # Uncomment if you want MegaLinter to detect errors but not block CI to pass | ||
| # DISABLE_ERRORS: true | ||
|
|
||
| SHOW_ELAPSED_TIME: true | ||
| SHOW_SKIPPED_LINTERS: false | ||
| PRINT_ALPACA: false | ||
| FLAVOR_SUGGESTIONS: false | ||
| VALIDATE_ALL_CODEBASE: false | ||
|
|
||
| PYTHON_FLAKE8_ARGUMENTS: | ||
| - --max-line-length=160 | ||
|
|
||
| PYTHON_PYLINT_ARGUMENTS: | ||
| - --disable=unrecognized-option,import-error | ||
|
|
||
| PYTHON_BANDIT_ARGUMENTS: | ||
| - -s ,B104,B310 | ||
|
ronenkapelian marked this conversation as resolved.
|
||
|
|
||
| YAML_YAMLLINT_CONFIG_FILE: .yamllint.yaml | ||
|
ronenkapelian marked this conversation as resolved.
|
||
| JAVASCRIPT_DEFAULT_STYLE: prettier | ||
| FILTER_REGEX_EXCLUDE: (package-lock\.json)$ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ package-lock.json | |
| README.md | ||
| node_modules | ||
| .release-please-manifest.json | ||
| .ruff_cache/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # We rely on external orchestrator probes, so Docker HEALTHCHECK is unnecessary | ||
| DS-0026 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ignore: | | ||
| .github/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,16 @@ | ||
| FROM python:3.9-slim | ||
|
|
||
| RUN groupadd -r appuser && useradd -r -g appuser appuser | ||
|
|
||
| WORKDIR /app | ||
| COPY . /app | ||
|
|
||
| COPY --chown=appuser:appuser . /app | ||
|
|
||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| EXPOSE 8080 | ||
| ENV PYTHONUNBUFFERED=1 | ||
|
|
||
| USER appuser | ||
|
|
||
| CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Flask==2.2.5 | ||
| Flask==3.1.3 | ||
| elasticsearch==8.5.0 | ||
| Werkzeug==3.0.6 | ||
| Werkzeug==3.1.6 | ||
| gunicorn==23.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,5 @@ RUN chgrp -R 0 /site && \ | |
|
|
||
| RUN chgrp -R 0 /dist/backend && \ | ||
| chmod -R g+rwX /dist/backend | ||
|
|
||
| USER 1001 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "Running ${TEXT_FILES_SCRIPTS_ROOT}/subdir_sizes.sh..." | ||
| nohup ${TEXT_FILES_SCRIPTS_ROOT}/subdir_sizes.sh > /dev/stdout 2>&1 & | ||
| nohup "${TEXT_FILES_SCRIPTS_ROOT}"/subdir_sizes.sh >/dev/stdout 2>&1 & | ||
| # ${TEXT_FILES_SCRIPTS_ROOT}/subdir_sizes.sh & | ||
| SUBDIRS_PID="$!" | ||
| echo "SUBDIRS_PID=$SUBDIRS_PID" | ||
|
|
||
|
|
||
| echo "Running node exporter..." | ||
| exec /usr/local/bin/node_exporter "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.