From 221de36080257ed42b4e6fe2e8fc67a3d0abb562 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Tue, 12 Nov 2024 14:23:12 -0800 Subject: [PATCH] Configure permissions --- .github/workflows/clang-tidy-review.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/clang-tidy-review.yml b/.github/workflows/clang-tidy-review.yml index 8a865818..a3d5172c 100644 --- a/.github/workflows/clang-tidy-review.yml +++ b/.github/workflows/clang-tidy-review.yml @@ -13,6 +13,11 @@ jobs: name: Lint ICU4C C++ executor runs-on: ubuntu-latest + permissions: + contents: read # change to write for thread comments + # metadata: read # for thread comments + pull-requests: write # for pull request reviews + steps: - uses: actions/checkout@v4 @@ -40,6 +45,8 @@ jobs: # split_workflow: true # apt_packages: "libjson-c-dev,libicu-dev" id: linter + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If there are any comments, fail the check - if: steps.linter.outputs.checks-failed > 0 run: exit 1