Skip to content

Post coverage comment #43

Post coverage comment

Post coverage comment #43

Triggered via workflow run May 6, 2024 11:53
@soulianesouliane
completed 7e56f1e
Status Failure
Total duration 21s
Artifacts

coverage-comment.yml

on: workflow_run
Display coverage (for external PRs)
12s
Display coverage (for external PRs)
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 notices
Display coverage (for external PRs)
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/18/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
Display coverage (for external PRs)
Starting action
Display coverage (for external PRs)
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit "HTTP/1.1 200 OK"
Display coverage (for external PRs)
Posting comment to PR
Display coverage (for external PRs)
HTTP Request: GET https://api.github.com/user "HTTP/1.1 403 Forbidden"
Display coverage (for external PRs)
Search for PR associated with run id 8968609637
Display coverage (for external PRs)
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/actions/runs/8968609637 "HTTP/1.1 200 OK"
Display coverage (for external PRs)
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/pulls?state=open&head=souliane%3Arefactor-get-poetry-deps&sort=updated&direction=desc "HTTP/1.1 200 OK"
Display coverage (for external PRs)
PR number: 18
Display coverage (for external PRs)
Download associated artifacts
Display coverage (for external PRs)
HTTP Request: GET https://api.github.com/repos/ewjoachim/poetry-to-pre-commit/actions/runs/8968609637/artifacts "HTTP/1.1 200 OK"