Skip to content

Commit 97917cb

Browse files
committed
Try use github token. Reorder checkout and installation
1 parent 4e325f6 commit 97917cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pr-compliance-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ jobs:
5050
export DETEKT_VERSION=$(./gradlew --console plain -q printDetektVersion)
5151
export KTLINT_VERSION=$(./gradlew --console plain -q printKtlintVersion)
5252
./scripts/install-format-tools.sh
53-
- name: Setup reviewdog
54-
uses: reviewdog/action-setup@v1
55-
with:
56-
reviewdog_version: latest
5753
- name: 'Checkout PR'
5854
uses: actions/checkout@v4
5955
with:
6056
repository: ${{ github.event.pull_request.head.repo.full_name }}
6157
ref: ${{ github.event.pull_request.head.ref }}
58+
- name: Setup reviewdog
59+
uses: reviewdog/action-setup@v1
60+
with:
61+
reviewdog_version: latest
6262
- name: Run reviewdog
6363
run: reviewdog -tee -reporter=github-pr-review -log-level=debug
6464
env:
65-
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
6666

6767
danger-check:
6868
if: github.event_name == 'pull_request_target'

0 commit comments

Comments
 (0)