Skip to content

Commit

Permalink
test zap
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed May 27, 2024
1 parent f649a2c commit 6f1d95e
Showing 1 changed file with 67 additions and 66 deletions.
133 changes: 67 additions & 66 deletions .github/workflows/zap-scan-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- dev
- main
- srs-10

workflow_dispatch:
inputs:
Expand All @@ -29,7 +30,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-full-scan@v0.4.0
uses: zaproxy/action-full-scan@v0.10.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -42,7 +43,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,7 +56,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -68,7 +69,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -80,7 +81,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -92,7 +93,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -104,7 +105,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -116,31 +117,31 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_DEV_FORMSFLOW_DATA_ANALYSIS_URL }}
zap_scan_forms-flow-documents_dev:
runs-on: ubuntu-latest
name: Scan the forms-flow-documents-dev
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_DEV_FORMSFLOW_DOCUMENTS_URL }}
# zap_scan_forms-flow-documents_dev:
# runs-on: ubuntu-latest
# name: Scan the forms-flow-documents-dev
# if: ${{ github.event.inputs.environment == 'dev' }}
# steps:
# - name: ZAP Scan
# uses: zaproxy/action-api-scan@v0.6.0
# with:
# allow_issue_writing: false
# token: ${{ secrets.GITHUB_TOKEN }}
# issue_title: 'ZAP Scan Report'
# target: ${{ secrets.ZAP_DEV_FORMSFLOW_DOCUMENTS_URL }}
zap_scan_forms-flow-forms_dev:
runs-on: ubuntu-latest
name: Scan the forms-flow-forms-dev
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -152,7 +153,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'dev' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -164,7 +165,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-full-scan@v0.4.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -177,7 +178,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -190,7 +191,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -203,7 +204,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -215,7 +216,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -227,7 +228,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -239,7 +240,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -251,31 +252,31 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_TEST_FORMSFLOW_DATA_ANALYSIS_URL }}
zap_scan_forms-flow-documents_test:
runs-on: ubuntu-latest
name: Scan the forms-flow-documents-test
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_TEST_FORMSFLOW_DOCUMENTS_URL }}
# zap_scan_forms-flow-documents_test:
# runs-on: ubuntu-latest
# name: Scan the forms-flow-documents-test
# if: ${{ github.event.inputs.environment == 'test' }}
# steps:
# - name: ZAP Scan
# uses: zaproxy/action-api-scan@v0.6.0
# with:
# allow_issue_writing: false
# token: ${{ secrets.GITHUB_TOKEN }}
# issue_title: 'ZAP Scan Report'
# target: ${{ secrets.ZAP_TEST_FORMSFLOW_DOCUMENTS_URL }}
zap_scan_forms-flow-forms_test:
runs-on: ubuntu-latest
name: Scan the forms-flow-forms-test
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -287,7 +288,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'test' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -299,7 +300,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-full-scan@v0.4.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -312,7 +313,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -325,7 +326,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -338,7 +339,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -350,7 +351,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -362,7 +363,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -374,7 +375,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -386,31 +387,31 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_PROD_FORMSFLOW_DATA_ANALYSIS_URL }}
zap_scan_forms-flow-documents_prod:
runs-on: ubuntu-latest
name: Scan the forms-flow-documents-prod
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_PROD_FORMSFLOW_DOCUMENTS_URL }}
# zap_scan_forms-flow-documents_prod:
# runs-on: ubuntu-latest
# name: Scan the forms-flow-documents-prod
# if: ${{ github.event.inputs.environment == 'prod' }}
# steps:
# - name: ZAP Scan
# uses: zaproxy/action-api-scan@v0.6.0
# with:
# allow_issue_writing: false
# token: ${{ secrets.GITHUB_TOKEN }}
# issue_title: 'ZAP Scan Report'
# target: ${{ secrets.ZAP_PROD_FORMSFLOW_DOCUMENTS_URL }}
zap_scan_forms-flow-forms_prod:
runs-on: ubuntu-latest
name: Scan the forms-flow-forms-prod
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -422,7 +423,7 @@ jobs:
if: ${{ github.event.inputs.environment == 'prod' }}
steps:
- name: ZAP Scan
uses: zaproxy/action-api-scan@v0.2.0
uses: zaproxy/action-api-scan@v0.6.0
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6f1d95e

Please sign in to comment.