Skip to content

Commit

Permalink
Merge pull request #204 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: added zap scan
  • Loading branch information
ychung-mot authored Apr 23, 2024
2 parents 7ab930a + 918c5ca commit 44c12a1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,30 @@ jobs:
ENV_NAME=dev \
IMAGE_TAG_FRONTEND=latest \
IMAGE_TAG_BACKEND=latest \
working-directory: ./helm/main
working-directory: ./helm/main

- name: Wait for deployment to be ready
run: |
while [[ "$(oc get deployment strdss-dev -n f4a30d-dev -o jsonpath='{.status.readyReplicas}')" != "1" ]]; do
echo "Waiting for deployment to be ready..."
sleep 10
done
timeout-minutes: 5

zap-scan:
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
contents: read
issues: write

steps:
- uses: hmarr/debug-action@a701ed95a46e6f2fb0df25e1a558c16356fae35a
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
with:
ref: main
- name: ZAP Scan
uses: zaproxy/action-full-scan@c8994d4f913cf872ec9964ac2d998c9bec369060
with:
token: ${{ secrets.GITHUB_TOKEN }}
target: https://dev-strdata.apps.silver.devops.gov.bc.ca/
2 changes: 1 addition & 1 deletion .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ jobs:
ENV_NAME=test \
IMAGE_TAG_FRONTEND=${vtag//v} \
IMAGE_TAG_BACKEND=${vtag//v} \
working-directory: ./helm/main
working-directory: ./helm/main

0 comments on commit 44c12a1

Please sign in to comment.