-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 947 Bytes
/
linter.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
name: Linter
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint:
if: ${{ (github.event.repository.visibility == 'public') && (github.repository_owner == 'intel') }}
name: Run linter
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Print YAML Lint Config
run: cat .github/linters/.yaml-lint.yml
- name: Super-Linter
uses: super-linter/super-linter/slim@v6.8.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_BASH: true
BASH_SEVERITY: error
FILTER_REGEX_EXCLUDE: ".*/templates/.*.yaml"
VALIDATE_YAML: true
VALIDATE_PYTHON_RUFF: true
VALIDATE_DOCKERFILE_HADOLINT: true
GITHUB_TOKEN: ${{ github.token }}
DEFAULT_BRANCH: main