-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.09 KB
/
test-zap.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
46
47
48
---
name: Test Zap
on:
push:
branches:
- main
workflow_dispatch:
jobs:
scan:
permissions:
security-events: write
contents: read
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: ZAP Scan
uses: pritchyspritch/action-af@v0.1.1
with:
plan: 'https://raw.githubusercontent.com/pritchyspritch/dast-automation/main/testplan.yml'
cmd_options: '-addoninstall kotlin -loglevel debug'
docker_env_vars: |
$USER
$PASSWORD
env:
USER: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
- name: Upload logs artifact
uses: actions/upload-artifact@v4
with:
name: "logs"
path: "${{ github.workspace }}/home/.ZAP/zap.log"
retention-days: 1
if: ${{ always() }}
- uses: actions/upload-artifact@v4
with:
name: "logs2"
path: "${{ github.workspace }}/req-resp-log.txt"
retention-days: 1
if: ${{ always() }}