fix: missing types #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Zap Scan Node | ||
| env: | ||
| BRANCH: ${{ github.ref_name }} | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| env: | ||
| description: 'The openshift environment to scan' | ||
| default: 'dev' | ||
| type: choice | ||
| options: | ||
| - 'dev' | ||
| - 'qa' | ||
| - 'uat' | ||
| - 'efx' | ||
| - 'prod' | ||
| workflow_call: | ||
| inputs: | ||
| env: | ||
| description: 'The openshift environment to scan' | ||
| default: 'dev' | ||
| type: string | ||
| required: true | ||
| options: | ||
| - 'dev' | ||
| - 'qa' | ||
| - 'uat' | ||
| - 'efx' | ||
| - 'prod' | ||
| jobs: | ||
| zap: | ||
| name: Run Zap Scan | ||
| permissions: | ||
| contents: read | ||
| needs: openshift-ci-cd | ||
| runs-on: ubuntu-24.04 | ||
| environment: ${{ inputs.env }} | ||
| steps: | ||
| - name: Check out repository with branch [${{ env.BRANCH }}] | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ env.BRANCH }} | ||
| persist-credentials: false | ||
| - name: ZAP Scan | ||
| uses: zaproxy/action-full-scan@v0.13.0 | ||
| with: | ||
| target: "https://${{ secrets.SITE_URL }}/api" | ||
| artifact_name: ccof_backend_${{ inputs.env }} | ||
| fail_action: true # fail the job if alerts found | ||
| allow_issue_writing: false # don't open/update a GitHub Issue | ||
| rules_file_name: .zap/rules-backend.tsv | ||