Skip to content

Commit

Permalink
ci: improved megalinter config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Dec 18, 2022
1 parent a9e0764 commit d884bf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ updates:
interval: daily
time: "10:00"
timezone: America/Toronto

- package-ecosystem: npm
open-pull-requests-limit: 10
directory: /action
Expand Down
19 changes: 10 additions & 9 deletions .github/linters/.mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
# Note: this file originates in template-template #
# ----------------------------------------------- #

ENABLE: ACTION,BASH,MAKEFILE,REPOSITORY,TERRAFORM,HTML,ENV,JAVASCRIPT,JSX,EDITORCONFIG,JSON,DOCKERFILE,MARKDOWN,YAML,CSS,OPENAPI,SQL
DISABLE:
- COPYPASTE

DISABLE_LINTERS:
- REPOSITORY_TRIVY
- SPELL_CSPELL
- JSON_PRETTIER
- JAVASCRIPT_PRETTIER
- YAML_PRETTIER
- REPOSITORY_TRIVY
- REPOSITORY_DEVSKIM
- TERRAFORM_CHECKOV
- JAVASCRIPT_PRETTIER

CONFIG_REPORTER: false
FAIL_IF_MISSING_LINTER_IN_FLAVOR: true
FLAVOR_SUGGESTIONS: false
LOG_LEVEL: INFO
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml
PRINT_ALPACA: false
CONFIG_REPORTER: false
SHOW_ELAPSED_TIME: true
FLAVOR_SUGGESTIONS: false
VALIDATE_ALL_CODEBASE: false
IGNORE_GENERATED_FILES: true
FILTER_REGEX_EXCLUDE: (dist/*|README.md|test/fixtures/*|vendor/*|/schemas/*)

MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml
REPOSITORY_CHECKOV_ARGUMENTS: [--skip-path, schemas]
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: ahmadnassri/action-metadata@v2.1.2

- id: image
run: echo "name=$(basename "${GITHUB_REPOSITORY/docker-//}")" >> $GITHUB_OUTPUT
run: echo "name=$(basename "${GITHUB_REPOSITORY/docker-//}")" >> "$GITHUB_OUTPUT"

commit-lint:
timeout-minutes: 5
Expand Down

0 comments on commit d884bf4

Please sign in to comment.