Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/acr-image-retag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-dev-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-dev-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-int-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-int-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-nft-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-nft-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-preprod-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-prod-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-prod-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/cd-infrastructure-sandbox-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
9 changes: 4 additions & 5 deletions .azuredevops/pipelines/generate-owasp-zap-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ schedules:
always: true

variables:
- group: global_variable_group
- group: DEV_core_backend
- name: dev_rg
value: rg-cohort-manager-dev-uks
value: rg-cohman-dev-uks

jobs:
- job: owasp_zap_report
Expand All @@ -35,7 +35,8 @@ jobs:
scriptLocation: 'inlineScript'
inlineScript: |
echo "generating report"
az account set --subscription $(DEV_SUBSCRIPTION_ID)

az account set --subscription $(TF_VAR_TARGET_SUBSCRIPTION_ID)

function_list=$(az resource list --resource-group $(dev_rg) --resource-type Microsoft.Web/sites --query "[?kind=='functionapp,linux,container'].name" | sed 's/[][]//g; s/[",]//g' | sed '/^$/d')
for function in $function_list; do
Expand All @@ -55,5 +56,3 @@ jobs:
for function in $function_list; do
cat zap_report_$function
done


36 changes: 36 additions & 0 deletions .azuredevops/pipelines/owasp-zap-report-dev-core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: $(Build.SourceBranchName)-$(Date:yyyyMMdd)_$(Rev:r)
trigger: none
pr: none

schedules:
- cron: "0 0 * * Sun"
displayName: Run every Sunday at 0:00
branches:
include:
- main
always: true

resources:
repositories:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
- name: hostPoolName
value: private-pool-dev-uks
- group: SBRK_core_backend
- name: ENVIRONMENT
value: dev

stages:
- template: ../templates/owasp-zap-report-core-common.yaml
parameters:
hostPoolName: $(hostPoolName)
environment: $(ENVIRONMENT)
slackWebHook: $(SLACK_WEBHOOK_URL_WORKFLOWS)
apiUrl: 'https://dev-uks-retrieve-cohort-distribution-data.azurewebsites.net/api/RetrieveCohortDistributionData'
webUrl: 'https://cohort-dev.non-live.screening.nhs.uk'
28 changes: 28 additions & 0 deletions .azuredevops/pipelines/owasp-zap-report-sandbox-core.yaml
Comment thread
rfk-nc marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: $(Build.SourceBranchName)-$(Date:yyyyMMdd)_$(Rev:r)
trigger: none
pr: none

resources:
repositories:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
- name: hostPoolName
value: private-pool-dev-uks
- group: SBRK_core_backend
- name: ENVIRONMENT
value: sandbox

stages:
- template: ../templates/owasp-zap-report-core-common.yaml
parameters:
hostPoolName: $(hostPoolName)
environment: $(ENVIRONMENT)
slackWebHook: $(SLACK_WEBHOOK_URL_WORKFLOWS)
apiUrl: 'https://sbrk-uks-retrieve-cohort-distribution-data.azurewebsites.net/api/RetrieveCohortDistributionData'
webUrl: 'https://cohort-dev.non-live.screening.nhs.uk'
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/post-deployment-tests-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_backup_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

variables:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_scaling_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_scaling_int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_scaling_nft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_scaling_preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/task_azure_sql_scaling_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: 8d9323116e7e0442e3f89750df39af27a2e1a4a7
ref: 0abead1e42da2bb60cbc85054ac2452746679d29
endpoint: NHSDigital

parameters:
Expand Down
Loading
Loading