Skip to content

Add kubelinter scans for all charts #212

Add kubelinter scans for all charts

Add kubelinter scans for all charts #212

Workflow file for this run

name: Kubelinter
on:
push:
branches: [main]
pull_request:
branches: ["**"]
env:
GOPRIVATE: github.com/dell/*
TOKEN: ${{ secrets.GH_DELL_ACCESS }}
jobs:
kube-linter-cosi:
name: COSI
runs-on: ubuntu-latest
strategy:
matrix:
cosi: [cosi]
steps:
- name: Configure git for private modules
run: |
git config --global url."https://csmbot:$TOKEN@github.com".insteadOf "https://github.com"
echo "machine github.com login csmbot password $TOKEN" >> ~/.netrc
- name: Checkout the code
uses: actions/checkout@v3.6.0
- name: Scan COSi chart with kube-linter
uses: stackrox/kube-linter-action@v1.0.4
with:
directory: charts/${{ matrix.cosi }}
config: kubelinter-config-cosi.yaml
kube-linter-csi:
name: CSI
runs-on: ubuntu-latest
strategy:
matrix:
csi: [csi-isilon, csi-powermax, csi-powerstore, csi-unity, csi-vxflexos]
steps:
- name: Configure git for private modules
run: |
git config --global url."https://csmbot:$TOKEN@github.com".insteadOf "https://github.com"
echo "machine github.com login csmbot password $TOKEN" >> ~/.netrc
- name: Checkout the code
uses: actions/checkout@v3.6.0
- name: Scan CSI charts with kube-linter
uses: stackrox/kube-linter-action@v1.0.4
with:
directory: charts/${{ matrix.csi }}
config: kubelinter-config-csi.yaml
kube-linter-modules:
name: CSM Modules
runs-on: ubuntu-latest
strategy:
matrix:
module: [csm-application-mobility, csm-authorization, csm-encryption-rekey-controller, csm-installer, csm-replication, karavi-observability]
steps:
- name: Configure git for private modules
run: |
git config --global url."https://csmbot:$TOKEN@github.com".insteadOf "https://github.com"
echo "machine github.com login csmbot password $TOKEN" >> ~/.netrc
- name: Checkout the code
uses: actions/checkout@v3.6.0
- name: Scan modules charts with kube-linter
uses: stackrox/kube-linter-action@v1.0.4
with:
directory: charts/${{ matrix.module }}
config: kubelinter-config-modules.yaml