-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.04 KB
/
reviewdog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ReviewDog
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Use ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.1'
- name: rubocop
uses: reviewdog/action-rubocop@v2
with:
rubocop_version: gemfile
rubocop_extensions: rubocop-performance:gemfile
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
detect-secrets:
runs-on: ubuntu-latest
if: ${{ !contains(github.head_ref, 'dependabot') }}
steps:
- uses: actions/checkout@v3
- name: detect-secrets
uses: reviewdog/action-detect-secrets@master
with:
reporter: github-pr-review
detect_secrets_flags: --all-files --force-use-all-plugins --word-list .github/workflows/detect-secrets-wordlist.txt