From 8bd8d28b927b12a04ddccaa5b483e189c970c32a Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Fri, 8 Dec 2023 16:47:29 +0000 Subject: [PATCH] Fix GH_TOKEN missing --- .github/actions/clang_tidy/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/clang_tidy/action.yml b/.github/actions/clang_tidy/action.yml index 8b6e4fd85..93962f8f5 100644 --- a/.github/actions/clang_tidy/action.yml +++ b/.github/actions/clang_tidy/action.yml @@ -25,6 +25,8 @@ runs: if: ${{ steps.run_clang_tidy.outcome != 'success' }} id: create_issue shell: bash + env: + GH_TOKEN: ${{ github.token }} run: | echo -e 'Clang-tidy found issues in the code:\n' > issue.md echo -e "List of the issues found: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}" >> issue.md @@ -35,6 +37,8 @@ runs: - name: Create PR with fixes if: ${{ steps.run_clang_tidy.outcome != 'success' }} uses: peter-evans/create-pull-request@v5 + env: + GH_TOKEN: ${{ github.token }} with: commit-message: '[CI]: clang-tidy auto fixes' branch: 'clang_tidy/autofix'