Skip to content

Commit 42fde57

Browse files
committed
feat(github): Reenable kubescape
Adopt to current repo structure
1 parent 3b03faa commit 42fde57

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/kubescape.yaml.disabled renamed to .github/workflows/kubescape.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
branches:
77
- master
88
paths:
9-
- mailu/**
9+
- charts/mailu/**
1010
pull_request:
1111
paths:
12-
- mailu/**
12+
- charts/mailu/**
1313

1414
jobs:
1515
kubescape:
@@ -20,22 +20,21 @@ jobs:
2020
security-events: write
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v5
2424

2525
- name: Install Helm
26-
uses: azure/setup-helm@v3
26+
uses: azure/setup-helm@v4.3.0
2727
with:
28-
version: v3.10.0
28+
version: v3.19.0
2929

3030
- name: Add Helm dependency repos
3131
run: |
32-
helm repo add bitnami https://charts.bitnami.com/bitnami
33-
helm repo update
34-
helm dependency build mailu
32+
cd charts/mailu
33+
helm dependency update
3534
3635
- name: Generate k8s manifests
3736
run: |
38-
helm template mailu ./mailu -f mailu/ci/helm-lint-values.yaml > /tmp/mailu-generated.yaml
37+
helm template mailu charts/mailu -f charts/mailu/ci/helm-lint-values.yaml > /tmp/mailu-generated.yaml
3938
4039
- name: Run Kubescape
4140
uses: kubescape/github-action@main
@@ -48,6 +47,6 @@ jobs:
4847
# # Optional: Scan a specific path. Default will scan the whole repository
4948
files: /tmp/mailu-generated.yaml
5049
- name: Upload Kubescape scan results to Github Code Scanning
51-
uses: github/codeql-action/upload-sarif@v2
50+
uses: github/codeql-action/upload-sarif@v3
5251
with:
5352
sarif_file: results.sarif

0 commit comments

Comments
 (0)