-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (57 loc) · 2.02 KB
/
lint.yml
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
57
58
59
60
61
62
63
64
---
name: Lint
on:
push:
pull_request:
jobs:
super-lint:
name: Lint with Super-Linter
runs-on: ubuntu-latest
############################################
# Grant status permission for MULTI_STATUS #
############################################
permissions:
contents: read
packages: read
statuses: write
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
with:
# Make sure the actual branch is checked out when running on PR
# ref: ${{ github.event.pull_request.head.sha }}
# Full git history needed to get proper list of changed files
fetch-depth: 0
# Runs the Super-Linter action
- name: Run Super-Linter on new changes
uses: github/super-linter/slim@v7
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MARKDOWN_CONFIG_FILE: .markdownlint.json
PYTHON_FLAKE8_CONFIG_FILE: .flake8
JSCPD_CONFIG_FILE: .jscpd.json
PYTHON_ISORT_CONFIG_FILE: .isort.cfg
VALIDATE_PYTHON_BLACK: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_HTML: false
VALIDATE_GITLEAKS: false
VALIDATE_BASH_EXEC: false
VALIDATE_CHECKOV: false # activate to lint k8s pods
VALIDATE_SHELL_SHFMT: false
VALIDATE_JSCPD: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_YAML_PRETTIER: false
VALIDATE_PYTHON_PYINK: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_CSS_PRETTIER: false
VALIDATE_DOCKERFILE_HADOLINT: true
# Only check new or edited files
VALIDATE_ALL_CODEBASE: false
# Fail on errors
DISABLE_ERRORS: false
# Skip linting of docs
FILTER_REGEX_EXCLUDE: .*docs/index.md|.*docs/docs/.*|.*ISSUE_TEMPLATE/.*|use-cases/.*|experimental/.*
BASH_SEVERITY: error