Skip to content

The argument for -i is not specified #98

Description

@mos914

Description

  • Query ID set in include_query within the with parameter is not being passed as an argument to the command.

Reproduce

actions

  steps:
    - name: kics
      uses: checkmarx/kics-github-action@v1.7.0
      with:
        include_queries: '229588ef-8fde-40c8-8756-f4f2b5825ded'
        path: ./kics

Expected Behavior

  • The following command is executed
 kics -p ./kics -o ./ --report-formats json          -q /app/bin/assets/queries  --ignore-on-exit results     -i 229588ef-8fde-40c8-8756-f4f2b5825ded

Actual Behavior

09:11 - INF : about to scan directory ./kics
09:11 - INF : kics command kics -p ./kics -o ./ --report-formats json          -q /app/bin/assets/queries  --ignore-on-exit results     -i    
Error: flag needs an argument: 'i' in -i

Proposed Modification

[[ ! -z "$INPUT_INCLUDE_QUERIES" ]] && INCLUDE_QUERIES_PARAM="-i $INPUT_INCLUDE_QUERIES" 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions