Skip to content

fix(ci): syntax issue with permission #108

fix(ci): syntax issue with permission

fix(ci): syntax issue with permission #108

Workflow file for this run

name: Lint Helm
on:
push:
branches: ["main"]
paths:
- 'deploy/helm/**'
- '.github/workflows/lint-helm.yaml'
pull_request:
permissions:
contents: read
jobs:
helm-lint:
name: helm-lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
helm:
- 'deploy/helm/**'
- '.github/workflows/lint-helm.yaml'
- if: steps.filter.outputs.helm == 'true'
name: Run helm lint
run: make helm-lint
- if: steps.filter.outputs.helm == 'true'
name: Run helm unit tests
run: make helm-unittest
- if: steps.filter.outputs.helm == 'true'
name: Run kube-linter
uses: stackrox/kube-linter-action@87802a2f4e01abebb3ee3c67a3002fea71f6eae5 # v1.0.7
with:
directory: deploy/helm
config: deploy/helm/.kube-linter.yaml
format: plain
- if: steps.filter.outputs.helm == 'true'
name: Run kubeconform
uses: aardbol/k8s-lint@4676a66f5a37b93f2cf75ecbe498d770b9d7d2ce # v5.1.0
with:
manifests: deploy/helm/
lintType: kubeconform
kubeconformOpts: -summary -strict -ignore-missing-schemas