Skip to content

Post coverage comment #35

Post coverage comment

Post coverage comment #35

Triggered via workflow run May 2, 2024 22:57
@soulianesouliane
completed 1dd97ec
Status Failure
Total duration 16s
Artifacts

coverage-comment.yml

on: workflow_run
Run tests & display coverage
10s
Run tests & display coverage
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 notices
Run tests & display coverage
Critical error. This error possibly occurred because the permissions of the workflow are set incorrectly. You can see the correct setting of permissions here: https://github.com/py-cov-action/python-coverage-comment-action#basic-usage Otherwise please look for open issues or open one in https://github.com/py-cov-action/python-coverage-comment-action/ Traceback (most recent call last): File "/workdir/coverage_comment/github_client.py", line 92, in _http response.raise_for_status() File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 761, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/issues/11/comments' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/workdir/coverage_comment/github.py", line 157, in post_comment issue_comments_path.post(body=contents) File "/workdir/coverage_comment/github_client.py", line 29, in __call__ return self._gh._http(self._method, self._path, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workdir/coverage_comment/github_client.py", line 99, in _http raise cls(str(contents)) from exc coverage_comment.github_client.Forbidden: {'message': 'Resource not accessible by integration', 'documentation_url': 'https://docs.github.com/rest/issues/comments#create-an-issue-comment'} The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/workdir/coverage_comment/main.py", line 44, in main exit_code = action( ^^^^^^^ File "/workdir/coverage_comment/main.py", line 105, in action return post_comment( ^^^^^^^^^^^^^ File "/workdir/coverage_comment/main.py", line 317, in post_comment github.post_comment( File "/workdir/coverage_comment/github.py", line 159, in post_comment raise CannotPostComment from exc coverage_comment.github.CannotPostComment
Run tests & display coverage
Starting action
Run tests & display coverage
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit "HTTP/1.1 200 OK"
Run tests & display coverage
Posting comment to PR
Run tests & display coverage
HTTP Request: GET https://api.github.com/user "HTTP/1.1 403 Forbidden"
Run tests & display coverage
Search for PR associated with run id 8930395532
Run tests & display coverage
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/actions/runs/8930395532 "HTTP/1.1 200 OK"
Run tests & display coverage
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/pulls?state=open&head=souliane%3Amain&sort=updated&direction=desc "HTTP/1.1 200 OK"
Run tests & display coverage
PR number: 11
Run tests & display coverage
Download associated artifacts
Run tests & display coverage
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/actions/runs/8930395532/artifacts "HTTP/1.1 200 OK"