Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The argument for -i is not specified #98

Open
mos914 opened this issue Oct 5, 2023 · 0 comments
Open

The argument for -i is not specified #98

mos914 opened this issue Oct 5, 2023 · 0 comments

Comments

@mos914
Copy link

mos914 commented Oct 5, 2023

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/[email protected]
      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" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant