-
Notifications
You must be signed in to change notification settings - Fork 123
42 lines (38 loc) · 1.28 KB
/
super-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
42
---
name: Lint Codebase
on:
push:
branches: [ master, release/**, patch/** ]
pull_request:
branches: [ master, release/**, patch/** ]
permissions:
contents: read
statuses: write
jobs:
super-linter:
name: Super-Linter
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
with:
# Full git history is needed to get a proper list of changed files within super-linter
fetch-depth: 0
ref: ${{ github.head_ref || github.ref }}
- name: Lint Code Base
uses: github/super-linter/[email protected]
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.*