Skip to content

Commit 3541d82

Browse files
Level0 for PRs
1 parent 618712d commit 3541d82

File tree

13 files changed

+35
-5
lines changed

13 files changed

+35
-5
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ runs:
5454
working-directory: .
5555
shell: bash
5656
run: |
57-
make build-json-oas-spec APIM_ENV=dev
57+
if [ -z $PR_NUMBER ]
58+
then
59+
make build-json-oas-spec APIM_ENV=dev
60+
else
61+
make build-json-oas-spec APIM_ENV=dev-pr
62+
fi
5863
5964
- name: Set target
6065
shell: bash

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ set-access: guard-APIM_ENV
5353
envsubst '$${ACCESS}' \
5454
< specification/api/components/x-nhsd-apim/access-template.yml > specification/api/components/x-nhsd-apim/access.yml
5555

56+
set-security: guard-APIM_ENV
57+
@ SECURITY=security-$$APIM_ENV.yml \
58+
envsubst '$${SECURITY}' \
59+
< specification/api/components/security/security-template.yml > specification/api/components/security/security.yml
60+
5661
construct-spec: guard-APIM_ENV
5762
$(MAKE) set-target APIM_ENV=$$APIM_ENV
5863
$(MAKE) set-access APIM_ENV=$$APIM_ENV
64+
$(MAKE) set-security APIM_ENV=$$APIM_ENV
65+
5966

6067

6168
build-json-oas-spec: guard-APIM_ENV
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level0: []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level3: [ ]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level0: []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: $SECURITY
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: security-dev-pr.yml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- title: Application Restricted
2+
grants:
3+
app-level0: []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$ref: access-sandbox.yml
1+
$ref: access-dev-pr.yml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type: external
2+
healthcheck: /_status
3+
url: https://suppliers.dev.nhsnotify.national.nhs.uk
4+
security:
5+
type: apikey
6+
header: Authorization
7+
secret: nhs-notify-supplier-key

0 commit comments

Comments
 (0)