Skip to content

Commit 86ef4ae

Browse files
authored
Merge pull request #813 from bcgov/yj
chore: zap api
2 parents 4bf1676 + ec5ab2e commit 86ef4ae

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- crunchydb/**
1919
- backup-container/**
2020
- gateway/**
21+
- .github/**
2122

2223
jobs:
2324
test-backend:

.github/workflows/zap-api-scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
type: string
88
description: The URL of the OpenAPI/GraphQL spec
99
default: https://dev.strdata.gov.bc.ca/api/swagger/strdata/swagger.json
10+
auth_header_name:
11+
type: string
12+
description: The name of the authentication header
13+
default: Authorization
14+
auth_header_value:
15+
type: string
16+
description: The value of the authentication header
17+
default: Bearer your_token
1018

1119
jobs:
1220
zap-api-scan:
@@ -15,6 +23,9 @@ jobs:
1523
permissions:
1624
contents: read
1725
issues: write
26+
env:
27+
ZAP_AUTH_HEADER_NAME: ${{ github.event.inputs.auth_header_name }}
28+
ZAP_AUTH_HEADER_VALUE: ${{ github.event.inputs.auth_header_value }}
1829

1930
steps:
2031
- name: Checkout

0 commit comments

Comments
 (0)