-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (42 loc) · 1.34 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
43
44
45
46
47
48
49
50
name: Code Linter
on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- '!main'
paths:
- 'openshift/manifests/org-ocpdude/**.yaml'
- 'openshift/manifests/org-vault-tec/**.yaml'
- 'openshift/manifests/rbac-example/**.yaml'
- 'openshift/builds/podman/Dockerfile'
- 'openshift/builds/docker/Dockerfile'
jobs:
build:
name: Let's lint it up! 🎸
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Kubernetes-linter
uses: super-linter/super-linter/[email protected]
env:
KUBERNETES_KUBECONFORM_OPTIONS: --ignore-missing-schemas
FILTER_REGEX_INCLUDE: ./openshift/manifests/*/.*.yaml
DEFAULT_BRANCH: main
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker-linter
uses: super-linter/super-linter/[email protected]
env:
HADOLINT_IGNORE: DL3003,DL3004,DL3007,DL3029,DL3041,DL4006
FILTER_REGEX_INCLUDE: ./openshift/builds/*/.*Dockerfile
DEFAULT_BRANCH: main
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}