wgtmac commented on PR #20: URL: https://github.com/apache/iceberg-cpp/pull/20#issuecomment-2566081248
> It appears either the token doesn't have comment permissions or the token isn't being passed into the action I have added permission for `pull-requests: write` but still hit the following error: ``` ERROR:CPP Linter:response returned 403 from POST https://api.github.com/repos/apache/iceberg-cpp/issues/20/comments with message: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"403"} Traceback (most recent call last): File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/bin/cpp-linter", line 8, in <module> sys.exit(main()) File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/lib/python3.10/site-packages/cpp_linter/__init__.py", line 81, in main rest_api_client.post_feedback(files=files, args=args, clang_versions=clang_versions) File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/lib/python3.10/site-packages/cpp_linter/rest_api/github_api.py", line 264, in post_feedback self.update_comment( File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/lib/python3.10/site-packages/cpp_linter/rest_api/github_api.py", line [361](https://github.com/apache/iceberg-cpp/actions/runs/12554533849/job/35003344629?pr=20#step:4:369), in update_comment self.api_request(url=comments_url, method=req_meth, data=payload) File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/lib/python3.10/site-packages/cpp_linter/rest_api/__init__.py", line 124, in api_request response.raise_for_status() File "/home/runner/work/_actions/cpp-linter/cpp-linter-action/v2.13.3/venv/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.github.com/repos/apache/iceberg-cpp/issues/20/comments ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org