Skip to content

fix: missing types

fix: missing types #2

Workflow file for this run

name: Zap Scan Node

Check failure on line 1 in .github/workflows/zap-scan-node.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/zap-scan-node.yaml

Invalid workflow file

(Line: 26, Col: 9): Unexpected value 'options'
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