From 06b4abce56889702b16083f839bf94d46ef52281 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 7 Feb 2025 16:05:11 +0800 Subject: [PATCH] .github: grant write permissions for PR comments in license check workflow Grant write permissions to the check-license-header workflow to enable commenting on pull requests. This fixes the "Resource not accessible by integration" HTTP error that occurred when the workflow attempted to create comments. The permission is required according to GitHub's API documentation for creating issue comments. see also https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment Signed-off-by: Kefu Chai --- .github/workflows/check-license-header.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check-license-header.yaml b/.github/workflows/check-license-header.yaml index 7a4cd84688..f05f7d1109 100644 --- a/.github/workflows/check-license-header.yaml +++ b/.github/workflows/check-license-header.yaml @@ -14,6 +14,8 @@ jobs: check-license-headers: name: Check License Headers runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Checkout code