Skip to content

Commit

Permalink
fix: set reviewdog's -filter-mode=nofilter
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 13, 2022
1 parent 86e9c9b commit ceced78
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,31 @@ inputs:
runs:
using: composite
steps:
- run: bash ${{ github.action_path }}/main.sh
- name: tfsec (push event)
run: |
tfsec --format=checkstyle . |
reviewdog -f=checkstyle \
-name="tfsec" \
-filter-mode=nofilter \
-reporter=github-check \
-level=warning \
-fail-on-error=1
shell: bash
if: github.event_name != 'pull_request'
working-directory: ${{ inputs.working_directory }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ inputs.github_token }}
- name: tfsec (pull_request event)
run: |
tfsec --format=checkstyle . |
reviewdog -f=checkstyle \
-name="tfsec" \
-filter-mode=nofilter \
-reporter=github-pr-review \
-level=warning \
-fail-on-error=1
shell: bash
if: github.event_name == 'pull_request'
working-directory: ${{ inputs.working_directory }}
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ inputs.github_token }}
EVENT_NAME: ${{ github.event_name }}

0 comments on commit ceced78

Please sign in to comment.