Skip to content

Add fail_level and deduplicate fail_on_error #29

Add fail_level and deduplicate fail_on_error

Add fail_level and deduplicate fail_on_error #29

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test-check:
name: runner / gitleaks (github-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
level: info
test-pr-check:
if: github.event_name == 'pull_request'
name: runner / gitleaks (github-pr-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
level: warning
workdir: ./testdata/
test-pr-review:
if: github.event_name == 'pull_request'
name: runner / gitleaks (github-pr-review)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: github-pr-review
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: error
reviewdog_flags: -filter-mode=file -fail-on-error
continue-on-error: true