Skip to content

Commit

Permalink
restore tool name argument
Browse files Browse the repository at this point in the history
  • Loading branch information
g-wilson committed Sep 25, 2020
1 parent 24cc804 commit 0b2bec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
tool_name:
description: 'Tool name to use for reviewdog reporter'
default: 'Semgrep'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'
default: 'github-pr-check'
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ semgrep --config="${INPUT_SEMGREP_CONFIG}" --json ${INPUT_SEMGREP_TARGET} \
| jq -r '.results[] | "\(.extra.severity[0:1]):\(.path):\(.start.line) \(.extra.message)"' \
| reviewdog \
-efm="%t:%f:%l %m" \
-name="${INPUT_TOOL_NAME}" \
-reporter="${INPUT_REPORTER:-github-pr-check}" \
-filter-mode="${INPUT_FILTER_MODE}" \
-fail-on-error="${INPUT_FAIL_ON_ERROR}" \
Expand Down

0 comments on commit 0b2bec4

Please sign in to comment.