name: 'Helm: Chart Checks' # DISCLAIMER: This workflow is not maintained by the Prowler team. Refer to contrib/k8s/helm/prowler-app for the source code. on: push: branches: - 'master' - 'v5.*' paths: - 'contrib/k8s/helm/prowler-app/**' pull_request: branches: - 'master' - 'v5.*' paths: - 'contrib/k8s/helm/prowler-app/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: CHART_PATH: contrib/k8s/helm/prowler-app permissions: {} jobs: helm-lint: if: github.repository == 'prowler-cloud/prowler' runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: read steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 with: egress-policy: audit - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - name: Set up Helm uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 - name: Update chart dependencies run: helm dependency update ${{ env.CHART_PATH }} - name: Lint Helm chart run: helm lint ${{ env.CHART_PATH }} - name: Validate Helm chart template rendering run: helm template prowler ${{ env.CHART_PATH }}