From c3c54c6caa3c0382880a83b1fc2b7deed47be7a2 Mon Sep 17 00:00:00 2001 From: Sukhamjot-Singh <56192331+Sukhamjot-Singh@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:30:56 +0530 Subject: [PATCH] target url is required in graphql-introspection-enabled (#41) Co-authored-by: Sukhamjot Singh --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 4b412a6..f65c64e 100644 --- a/action.yml +++ b/action.yml @@ -168,6 +168,9 @@ runs: run: | [[ "${{ inputs.step_name }}" != "NULL" ]] || { echo "step name input is empty" ; exit 1; } [[ "${{ inputs.client_scan_token }}" != "NULL" ]] || { echo "client_scan_token input is empty" ; exit 1; } + if [[ "${{ inputs.graphql_introspection_enabled }}" == "true" ]]; then + [[ "${{ inputs.target_url }}" != "NULL" ]] || { echo "target_url is required when graphql_introspection_enabled is true" ; exit 1; } + fi shell: bash - name: Download CLI if: ${{ inputs.step_name == 'init' || inputs.step_name == 'init and run' }}