Skip to content

Commit

Permalink
fix(ci): use GITHUB_TOKEN instead of secret to allow external PR lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Jul 3, 2024
1 parent a6d6dd1 commit 014456c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
- name: Set environment variables
run: |
echo "REPORTER=${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}" >> $GITHUB_ENV
echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}" >> $GITHUB_ENV
echo "REVIEWDOG_TOKEN=${{ secrets.REVIEWDOG_TOKEN }}" >> $GITHUB_ENV
echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- name: clang-format
uses: DoozyX/clang-format-lint-action@v0.14
Expand All @@ -34,14 +33,14 @@ jobs:
- name: flake8
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: ${{ env.REPORTER }}
filter_mode: nofilter

- name: black
uses: reviewdog/action-black@v3
with:
github_token: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: ${{ env.REPORTER }}
filter_mode: nofilter

0 comments on commit 014456c

Please sign in to comment.