Skip to content

Commit

Permalink
Merge pull request #813 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: zap api
  • Loading branch information
ychung-mot authored Nov 25, 2024
2 parents 4bf1676 + ec5ab2e commit 86ef4ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- crunchydb/**
- backup-container/**
- gateway/**
- .github/**

jobs:
test-backend:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/zap-api-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
type: string
description: The URL of the OpenAPI/GraphQL spec
default: https://dev.strdata.gov.bc.ca/api/swagger/strdata/swagger.json
auth_header_name:
type: string
description: The name of the authentication header
default: Authorization
auth_header_value:
type: string
description: The value of the authentication header
default: Bearer your_token

jobs:
zap-api-scan:
Expand All @@ -15,6 +23,9 @@ jobs:
permissions:
contents: read
issues: write
env:
ZAP_AUTH_HEADER_NAME: ${{ github.event.inputs.auth_header_name }}
ZAP_AUTH_HEADER_VALUE: ${{ github.event.inputs.auth_header_value }}

steps:
- name: Checkout
Expand Down

0 comments on commit 86ef4ae

Please sign in to comment.