forked from pagopa/aks-microservice-chart-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 834 Bytes
/
check_helm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: check_helm
on:
push:
jobs:
check_helm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup_python
uses: actions/setup-python@v2
- name: setup_pip
run: |
python -m ensurepip --upgrade
- name: setup_checkcov
run: |
python -m pip install -U checkov
- name: setup_helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: run_checkov
run: |
FILE=./util/values.checkov.yaml
if [ -f "${FILE}" ]; then
checkov -d src --var-file "${FILE}" --framework helm
else
echo "${FILE} does not exist."
exit 0
fi