-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mega-linter.yml
More file actions
48 lines (39 loc) · 2.18 KB
/
Copy path.mega-linter.yml
File metadata and controls
48 lines (39 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Configuration file for MegaLinter
#
# See all available variables at https://megalinter.io/latest/config-file/ and in
# linters documentation.
#
# This repo runs the MegaLinter "terraform" flavor (see
# .github/workflows/mega-linter.yml), which bundles the linters relevant to an
# Ansible + OpenTofu codebase: ANSIBLE (ansible-lint), TERRAFORM (tofu/terraform
# fmt, tflint, terrascan, terragrunt), YAML, MARKDOWN, BASH, DOCKERFILE and the
# repository-wide secret/security scanners (gitleaks, trivy, checkov, …).
# all, none, or list of linter keys. Formatting/auto-fixable issues are corrected
# and proposed back as a pull request (see APPLY_FIXES_MODE in the workflow).
APPLY_FIXES: all
DISABLE:
- SPELL # Disable checks of spelling mistakes
# - COPYPASTE # Uncomment to disable checks of excessive copy-pastes
DISABLE_LINTERS:
# Redundant on this source-only IaC repo; trivy already covers vuln scanning.
- REPOSITORY_GRYPE
SHOW_ELAPSED_TIME: true
# Two trees that mirror sources we already lint directly:
# collections/ansible_collections/ a symlink to `ansible/`, so the collection
# resolves by FQCN (see ansible/README.md)
# ansible/.galaxy/ where ansible-galaxy installs collections
# and roles, including this one when
# ansible-lint sets up the collection
# Excluding both keeps every finding from being reported twice.
FILTER_REGEX_EXCLUDE: ((^|/)collections/ansible_collections/|(^|/)\.galaxy/)
# Uncomment if you want MegaLinter to detect errors but not block CI to pass
# DISABLE_ERRORS: true
# The Molecule testinfra tests (ansible/molecule/**/tests/*.py) use pytest-style
# fixtures that Bandit flags with false positives; exclude that tree from Bandit.
PYTHON_BANDIT_FILTER_REGEX_EXCLUDE: (^|/)molecule/
# config is created during the megalinter ci run and kingfisher complains about
# credentials found in there
REPOSITORY_KINGFISHER_ARGUMENTS: "--exclude .git/"
# Run zizmor's offline audits only. Its online audits query the GitHub API, which
# fails in CI (401) since MegaLinter doesn't forward GITHUB_TOKEN to the linter.
ACTION_ZIZMOR_ARGUMENTS: "--offline"