Skip to content

Commit

Permalink
Add support for authorization header (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Hepworth authored Sep 19, 2023
1 parent 7a41e8f commit 9c5ba29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/commands/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ description: >
Scan with OWASP Zap and report results to Slack
parameters:
auth_header:
default: ""
type: string
description: "Data content for the Authorization header"

endpoint:
type: string
description: "The endpoint which will be scanned by OWASP Zap"
Expand Down Expand Up @@ -40,9 +45,11 @@ steps:
--network=host \
-v $(pwd)/zap/home:/home/zap/:rw \
-v $(pwd)/zap/wrk:/zap/wrk/:rw \
<<#parameters.auth_header>>-e ZAP_AUTH_HEADER_VALUE=<<parameters.auth_header>><</parameters.auth_header>> \
<< parameters.owasp-zap-image >> \
<< parameters.script >> \
-t "<< parameters.endpoint >>" \
-I \
-J report.json \
-r report.html
Expand Down

0 comments on commit 9c5ba29

Please sign in to comment.