Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#684): add DAST with ZAP #705

Merged
merged 11 commits into from
Mar 15, 2023
43 changes: 43 additions & 0 deletions .github/workflows/minikube-zap-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: DAST with ZAP on minikube

# Controls when the workflow will run
on:
pull_request:
branches: [master]
workflow_dispatch:

permissions:
contents: read
issues: write
bendehaan marked this conversation as resolved.
Show resolved Hide resolved

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-minikube:
name: DAST test with minikube and ZAP
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- uses: eLco/setup-vault@v1
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
minikube-version: 1.29.0
driver: docker
kubernetes-version: v1.25.6
- name: Setup helm
uses: azure/[email protected]
id: install
- name: Setup application
run: |
./k8s-vault-minkube-start.sh
commjoen marked this conversation as resolved.
Show resolved Hide resolved
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
docker_name: "owasp/zap2docker-stable"
target: "https://localhost:8080"
- name: Teardown
run: minikube delete