Skip to content

Commit

Permalink
Man 227 zap analysis (#257)
Browse files Browse the repository at this point in the history
* MAN-227 - update zap files

* MAN-227 - update js script back to previous version, due to failure in github action

* MAN-227 - update js script to put variable declaration in for loop

* MAN-227 - update js script back to previous version, due to failure in github action
  • Loading branch information
achimber-moj authored Jan 9, 2025
1 parent 8faf416 commit 2de6fd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .zap/autorun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ env:
contexts:
- name: HMPPSAuth
urls:
- "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk"
- "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk"
includePaths:
- "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk.*"
- "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk.*"
excludePaths:
- "https://sign-in-dev.hmpps.service.justice.gov.uk.*"
authentication:
method: browser
parameters:
loginPageUrl: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth/sign-in?redirect_uri=https://manage-a-supervision-dev.hmpps.service.justice.gov.uk/sign-in/callback"
loginRequestUrl: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth/sign-in?redirect_uri=https://manage-a-supervision-dev.hmpps.service.justice.gov.uk/sign-in/callback"
loginPageUrl: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth/sign-in?redirect_uri=https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk/sign-in/callback"
loginRequestUrl: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth/sign-in?redirect_uri=https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk/sign-in/callback"
verification:
method: "poll"
pollUrl: "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk/"
pollUrl: "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk/"
pollFrequency: 1
pollUnits: "requests"
loggedInRegex: "\\Q 200\\E"
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
parameters:
context: "HMPPSAuth"
user: "TestUser"
url: "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk/case/X756510"
url: "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk/case/X756510"
maxDuration: 5 # minutes
- name: "Add script"
type: script
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
confidences:
- high
sites:
- "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk"
- "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk"
- name: "JSON Report"
type: report
parameters:
Expand All @@ -91,4 +91,4 @@ jobs:
confidences:
- high
sites:
- "https://manage-a-supervision-dev.hmpps.service.justice.gov.uk"
- "https://manage-people-on-probation-dev.hmpps.service.justice.gov.uk"
2 changes: 1 addition & 1 deletion .zap/traverse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function listChildren(node, level) {
let j
var j
for (j = 0; j < node.getChildCount(); j++) {
print(Array(level + 1).join(' ') + node.getChildAt(j).getNodeName())
listChildren(node.getChildAt(j), level + 1)
Expand Down

0 comments on commit 2de6fd9

Please sign in to comment.