CI: Add image scan
This commit is contained in:
parent
c9e62c83d3
commit
8b67c1dfbc
7 changed files with 84 additions and 15 deletions
20
.github/workflows/setup-cluster.yml
vendored
20
.github/workflows/setup-cluster.yml
vendored
|
@ -15,11 +15,19 @@ on:
|
|||
|
||||
jobs:
|
||||
setup-cluster:
|
||||
name: minikube
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: start minikube
|
||||
id: minikube
|
||||
uses: medyagh/setup-minikube@latest
|
||||
- name: kubectl
|
||||
run: kubectl get pods -A
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Start minikube
|
||||
id: minikube
|
||||
uses: medyagh/setup-minikube@latest
|
||||
- name: kubectl
|
||||
run: kubectl get pods -A -o wide
|
||||
- name: Setup cluster
|
||||
run: |
|
||||
./run.sh
|
||||
- name: kubectl
|
||||
run: |
|
||||
kubectl get pods -A -o wide && \
|
||||
kubectl get helmrelease -A
|
||||
|
|
21
.github/workflows/vulnerability-scan.yml
vendored
Normal file
21
.github/workflows/vulnerability-scan.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Scan
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'ghcr.io/bbusse/gtfso-import'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
Loading…
Add table
Add a link
Reference in a new issue