-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.7 KB
/
lint.yaml
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
49
50
51
52
53
54
55
56
---
name: Lint
on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:
branches:
- master
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: MegaLinter
uses: oxsecurity/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PRINT_ALPACA: false
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
ENABLE_LINTERS: |-
${{
join(
fromJSON('
[
"ACTION_ACTIONLINT",
"ANSIBLE_ANSIBLE_LINT",
"COPYPASTE_JSCPD",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
"MARKDOWN_MARKDOWNLINT",
"REPOSITORY_GIT_DIFF",
"YAML_PRETTIER",
"YAML_YAMLLINT"
]
'),
','
)
}}
COPYPASTE_JSCPD_CONFIG_FILE: .github/linter/jscpd/jscpd.json
KUBERNETES_DIRECTORY: ''
KUBERNETES_KUBECONFORM_ARGUMENTS: --ignore-missing-schemas
KUBERNETES_KUBECONFORM_FILTER_REGEX_EXCLUDE: "(Chart.yaml|values.yaml)"
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .github/linter/markdownlint/markdownlint.yaml
YAML_YAMLLINT_CONFIG_FILE: .github/linter/yamllint/.yamllint.yaml
YAML_PRETTIER_CONFIG_FILE: .github/linter/prettier/.prettierrc.yaml