-
Notifications
You must be signed in to change notification settings - Fork 123
41 lines (37 loc) · 1.19 KB
/
linter.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
---
name: Lint Codebase
on: # yamllint disable-line rule:truthy
push:
branches: [master, release/**, patch/**]
pull_request:
branches: [master, release/**, patch/**]
permissions:
contents: read
statuses: write
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Lint Code Base
uses: oxsecurity/megalinter@v7
env:
LOG_LEVEL: NOTICE
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# setting this to false means that only changed files will be scanned in each commit
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
# Enable Linters to run
VALIDATE_GITHUB_ACTIONS: true
# VALIDATE_GOOGLE_JAVA_FORMAT: true
JAVA_FILE_NAME: ../../contrib/checkstyle.xml
VALIDATE_DOCKERFILE_HADOLINT: true
DOCKERFILE_HADOLINT_FILE_NAME: ../../contrib/docker/.hadolint.yaml
# VALIDATE_MARKDOWN: true
VALIDATE_XML: true
VALIDATE_YAML: true
FILTER_REGEX_EXCLUDE: .*contrib/helm.*
GITHUB_COMMENT_REPORTER: false