Skip to content

Commit

Permalink
Trying with app token
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Mar 19, 2024
1 parent 3430f51 commit befc6c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
- uses: reviewdog/action-setup@3f401fe1d58fe77e10d665ab713057375e39b887 # v1.3.0
with:
reviewdog_version: v0.17.2
- uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}


- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
Expand Down Expand Up @@ -63,7 +70,7 @@ jobs:
- name: version is incorrect, posting suggestion
if: ${{ steps.version_test.outputs.status }} == "notok"
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
reviewdog -f=diff -reporter=github-pr-review
- name: version is incorrect, reporting
Expand Down

0 comments on commit befc6c0

Please sign in to comment.