Moving from super to megalinter 🧹 (#414)

* Moving from super to megalinter 🧹

* Removing file selection regex
This commit is contained in:
Tolki authored and GitHub committed 2022-07-28 07:16:48 -04:00
1 parent cdea056ca2
commit cd4128df47
1 file changed
+38 -10
+38 -10
View File
@@ -7,27 +7,55 @@ on: # yamllint disable-line rule:truthy
branches: branches:
- main - main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env: env:
# Currently no way to detect automatically # Currently no way to detect automatically
DEFAULT_BRANCH: main DEFAULT_BRANCH: main
jobs: jobs:
build: build:
name: Lint name: MegaLinter
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Lint
uses: github/super-linter/slim@v4 - name: MegaLinter
uses: oxsecurity/megalinter@v6.1.0
env: env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
DEFAULT_BRANCH: "${{ env.DEFAULT_BRANCH }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
ANSIBLE_CONFIG_FILE: .ansible-lint VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
MARKDOWN_CONFIG_FILE: .markdownlint.yaml ENABLE_LINTERS: |-
TERRAFORM_TFLINT_CONFIG_FILE: .tflint.hcl ${{
YAML_CONFIG_FILE: .yamllint.yaml join(
KUBERNETES_KUBEVAL_OPTIONS: --ignore-missing-schemas fromJSON('
[
"ACTION_ACTIONLINT",
"ANSIBLE_ANSIBLE_LINT",
"COPYPASTE_JSCPD",
"KUBERNETES_KUBEVAL",
"MARKDOWN_MARKDOWNLINT",
"REPOSITORY_GIT_DIFF",
"REPOSITORY_SECRETLINT",
"TERRAFORM_TERRAFORM_FMT",
"YAML_PRETTIER",
"YAML_YAMLLINT"
]
'),
','
)
}}
ANSIBLE_DIRECTORY: provision/ansible
ANSIBLE_ANSIBLE_LINT_CONFIG_FILE: .github/linters/.ansible-lint
KUBERNETES_DIRECTORY: cluster
KUBERNETES_KUBEVAL_ARGUMENTS: --ignore-missing-schemas
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .github/linters/.markdownlint.yaml
MARKDOWN_MARKDOWNLINT_RULES_PATH: .github/
YAML_YAMLLINT_CONFIG_FILE: .github/linters/.yamllint.yaml
YAML_PRETTIER_CONFIG_FILE: .github/linters/.prettierrc.yaml
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "(.*\\.sops\\.ya?ml)"