Skip to content

Code Linter

Code Linter #12

Workflow file for this run

name: Super Linter 🎸
on:
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'
workflow_dispatch:
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:
# FILTER_REGEX_INCLUDE: ./openshift/builds/*/Dockerfile
# DEFAULT_BRANCH: main
# # To report GitHub Actions status checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker-linter
uses: hadolint/[email protected]
with:
dockerfile: |
./openshift/builds/docker/Dockerfile
./openshift/builds/podman/Dockerfile
./openshift/builds/windows/Dockerfile