-
Notifications
You must be signed in to change notification settings - Fork 59
45 lines (37 loc) · 1.06 KB
/
sec-audit.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
39
40
41
42
43
44
45
name: Security Audit
on:
push:
branches: [master, main, release-*]
tags: ['*']
pull_request:
branches: ['**']
env:
golang-version: 1.18.4
helm-version: v3.12.3
kubescape-version: v2.9.0
jobs:
security-audit:
runs-on: ubuntu-latest
name: Analyse kubernetes manifests
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-go@v3
with:
go-version: ${{ env.golang-version }}
- name: Set up Helm
uses: azure/[email protected]
with:
version: ${{ env.helm-version }}
- name: Download chart dependencies
run: |
helm dep up chart/
- name: Download kubescape
run: |
wget https://raw.githubusercontent.com/armosec/kubescape/master/install.sh
chmod +x install.sh
/bin/bash install.sh -v ${{ env.kubescape-version }}
#- name: Download kubescape
# run: curl -s https://raw.githubusercontent.com/armosec/kubescape/master/install.sh | /bin/bash
- run: make --always-make kubescape