Skip to content

Commit

Permalink
Arguments have to be named inputs
Browse files Browse the repository at this point in the history
Rename args back to inputs

Signed-off-by: Eric Brown <ericwb@users.noreply.github.com>
  • Loading branch information
ericwb committed Mar 10, 2024
1 parent 78a67ce commit 7712288
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
icon: shield
color: yellow

args:
inputs:
path:
description: 'source file(s) or directory(s) to be analyzed'
required: false
Expand All @@ -32,15 +32,15 @@ runs:
- name: Run Precaution analysis
shell: bash
run: |
if [ "$ARG_DISABLE" == "DEFAULT" ]; then
if [ "$INPUT_DISABLE" == "DEFAULT" ]; then
DISABLE=""
else
DISABLE="-s $ARG_DISABLE"
DISABLE="-s $INPUT_DISABLE"
fi
precli --json -o results.sarif -r $ARG_PATH $DISABLE
precli --json -o results.sarif -r $INPUT_PATH $DISABLE
env:
ARG_PATH: ${{ args.path }}
ARG_DISABLE: ${{ args.disable }}
INPUT_PATH: ${{ inputs.path }}
INPUT_DISABLE: ${{ inputs.disable }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
Expand Down

0 comments on commit 7712288

Please sign in to comment.