-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Description
Looking at: https://github.com/python-gitlab/python-gitlab/actions/runs/18912476877/job/53986769041
The release job is failing to publish the Python packages to GitHub. This is separate from publishing to PyPI, which does work.
The release zip and tarball is published to GitHub.
From the log file:
Run python-semantic-release/publish-action@v10.4.1
/usr/bin/docker run --name e10dbe80e8b2dc45264d5aaa8e6388db389497_3f088c --label e10dbe --workdir /github/workspace --rm -e "INPUT_GITHUB_TOKEN" -e "INPUT_CONFIG_FILE" -e "INPUT_DIRECTORY" -e "INPUT_NO_OPERATION_MODE" -e "INPUT_TAG" -e "INPUT_VERBOSITY" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHU
$> /opt/psr/.venv/bin/semantic-release -v publish
[15:06:04] INFO Loading configuration from pyproject.toml util.py:77
INFO Using group 'main' options, as '(main|master)' config.py:589
matches 'main'
INFO found 75 previous tags algorithm.py:60
INFO Uploading distributions to release publish.py:36
[15:06:05] ERROR error uploading asset github.py:473
dist/python_gitlab-7.0.0-py3-none-any.whl
╭──── Traceback (most recent call last) ─────╮
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:470 in │
│ upload_dists │
│ │
│ 467 │ │ │ f for f in glob.glob(dis │
│ 468 │ │ ): │
│ 469 │ │ │ try: │
│ ❱ 470 │ │ │ │ self.upload_release_ │
│ 471 │ │ │ │ n_succeeded += 1 │
│ 472 │ │ │ except HTTPError: # noq │
│ 473 │ │ │ │ logger.exception("er │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/helpers.py:143 in │
│ _wrapper │
│ │
│ 140 │ │ │ ) │
│ 141 │ │ │ │
│ 142 │ │ │ # Call function │
│ ❱ 143 │ │ │ result = func(*args, **k │
│ 144 │ │ │ │
│ 145 │ │ │ # Log result │
│ 146 │ │ │ logger.debug("%s -> %s", │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:429 in │
│ upload_release_asset │
│ │
│ 426 │ │ ) │
│ 427 │ │ │
│ 428 │ │ with open(file, "rb") as dat │
│ ❱ 429 │ │ │ response = self.session. │
│ 430 │ │ │ │ url, │
│ 431 │ │ │ │ params={"name": os.p │
│ 432 │ │ │ │ headers={ │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:637 in post │
│ │
│ 634 │ │ :rtype: requests.Response │
│ 635 │ │ """ │
│ 636 │ │ │
│ ❱ 637 │ │ return self.request("POST", │
│ 638 │ │
│ 639 │ def put(self, url, data=None, ** │
│ 640 │ │ r"""Sends a PUT request. Ret │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:589 in request │
│ │
│ 586 │ │ │ "allow_redirects": allow │
│ 587 │ │ } │
│ 588 │ │ send_kwargs.update(settings) │
│ ❱ 589 │ │ resp = self.send(prep, **sen │
│ 590 │ │ │
│ 591 │ │ return resp │
│ 592 │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:710 in send │
│ │
│ 707 │ │ r.elapsed = timedelta(second │
│ 708 │ │ │
│ 709 │ │ # Response manipulation hook │
│ ❱ 710 │ │ r = dispatch_hook("response" │
│ 711 │ │ │
│ 712 │ │ # Persist cookies │
│ 713 │ │ if r.history: │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/hooks.py:30 in dispatch_hook │
│ │
│ 27 │ │ if hasattr(hooks, "__call__") │
│ 28 │ │ │ hooks = [hooks] │
│ 29 │ │ for hook in hooks: │
│ ❱ 30 │ │ │ _hook_data = hook(hook_da │
│ 31 │ │ │ if _hook_data is not None │
│ 32 │ │ │ │ hook_data = _hook_dat │
│ 33 │ return hook_data │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/util.py:35 in │
│ <lambda> │
│ │
│ 32 │ """ │
│ 33 │ session = Session() │
│ 34 │ if raise_for_status: │
│ ❱ 35 │ │ session.hooks = {"response": │
│ 36 │ │
│ 37 │ if retry: │
│ 38 │ │ if isinstance(retry, bool): │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/models.py:1026 in │
│ raise_for_status │
│ │
│ 1023 │ │ │ ) │
│ 1024 │ │ │
│ 1025 │ │ if http_error_msg: │
│ ❱ 1026 │ │ │ raise HTTPError(http_er │
│ 1027 │ │
│ 1028 │ def close(self): │
│ 1029 │ │ """Releases the connection │
╰────────────────────────────────────────────╯
HTTPError: 403 Client Error: Forbidden for
url:
https://uploads.github.com/repos/python-gitlab
/python-gitlab/releases/258199418/assets?name=
python_gitlab-7.0.0-py3-none-any.whl
[15:06:06] ERROR error uploading asset github.py:473
dist/python_gitlab-7.0.0-py3-none-any.whl.publ
ish.attestation
╭──── Traceback (most recent call last) ─────╮
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:470 in │
│ upload_dists │
│ │
│ 467 │ │ │ f for f in glob.glob(dis │
│ 468 │ │ ): │
│ 469 │ │ │ try: │
│ ❱ 470 │ │ │ │ self.upload_release_ │
│ 471 │ │ │ │ n_succeeded += 1 │
│ 472 │ │ │ except HTTPError: # noq │
│ 473 │ │ │ │ logger.exception("er │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/helpers.py:143 in │
│ _wrapper │
│ │
│ 140 │ │ │ ) │
│ 141 │ │ │ │
│ 142 │ │ │ # Call function │
│ ❱ 143 │ │ │ result = func(*args, **k │
│ 144 │ │ │ │
│ 145 │ │ │ # Log result │
│ 146 │ │ │ logger.debug("%s -> %s", │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:429 in │
│ upload_release_asset │
│ │
│ 426 │ │ ) │
│ 427 │ │ │
│ 428 │ │ with open(file, "rb") as dat │
│ ❱ 429 │ │ │ response = self.session. │
│ 430 │ │ │ │ url, │
│ 431 │ │ │ │ params={"name": os.p │
│ 432 │ │ │ │ headers={ │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:637 in post │
│ │
│ 634 │ │ :rtype: requests.Response │
│ 635 │ │ """ │
│ 636 │ │ │
│ ❱ 637 │ │ return self.request("POST", │
│ 638 │ │
│ 639 │ def put(self, url, data=None, ** │
│ 640 │ │ r"""Sends a PUT request. Ret │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:589 in request │
│ │
│ 586 │ │ │ "allow_redirects": allow │
│ 587 │ │ } │
│ 588 │ │ send_kwargs.update(settings) │
│ ❱ 589 │ │ resp = self.send(prep, **sen │
│ 590 │ │ │
│ 591 │ │ return resp │
│ 592 │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:710 in send │
│ │
│ 707 │ │ r.elapsed = timedelta(second │
│ 708 │ │ │
│ 709 │ │ # Response manipulation hook │
│ ❱ 710 │ │ r = dispatch_hook("response" │
│ 711 │ │ │
│ 712 │ │ # Persist cookies │
│ 713 │ │ if r.history: │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/hooks.py:30 in dispatch_hook │
│ │
│ 27 │ │ if hasattr(hooks, "__call__") │
│ 28 │ │ │ hooks = [hooks] │
│ 29 │ │ for hook in hooks: │
│ ❱ 30 │ │ │ _hook_data = hook(hook_da │
│ 31 │ │ │ if _hook_data is not None │
│ 32 │ │ │ │ hook_data = _hook_dat │
│ 33 │ return hook_data │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/util.py:35 in │
│ <lambda> │
│ │
│ 32 │ """ │
│ 33 │ session = Session() │
│ 34 │ if raise_for_status: │
│ ❱ 35 │ │ session.hooks = {"response": │
│ 36 │ │
│ 37 │ if retry: │
│ 38 │ │ if isinstance(retry, bool): │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/models.py:1026 in │
│ raise_for_status │
│ │
│ 1023 │ │ │ ) │
│ 1024 │ │ │
│ 1025 │ │ if http_error_msg: │
│ ❱ 1026 │ │ │ raise HTTPError(http_er │
│ 1027 │ │
│ 1028 │ def close(self): │
│ 1029 │ │ """Releases the connection │
╰────────────────────────────────────────────╯
HTTPError: 403 Client Error: Forbidden for
url:
https://uploads.github.com/repos/python-gitlab
/python-gitlab/releases/258199418/assets?name=
python_gitlab-7.0.0-py3-none-any.whl.publish.a
ttestation
ERROR error uploading asset github.py:473
dist/python_gitlab-7.0.0.tar.gz.publish.attest
ation
╭──── Traceback (most recent call last) ─────╮
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:470 in │
│ upload_dists │
│ │
│ 467 │ │ │ f for f in glob.glob(dis │
│ 468 │ │ ): │
│ 469 │ │ │ try: │
│ ❱ 470 │ │ │ │ self.upload_release_ │
│ 471 │ │ │ │ n_succeeded += 1 │
│ 472 │ │ │ except HTTPError: # noq │
│ 473 │ │ │ │ logger.exception("er │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/helpers.py:143 in │
│ _wrapper │
│ │
│ 140 │ │ │ ) │
│ 141 │ │ │ │
│ 142 │ │ │ # Call function │
│ ❱ 143 │ │ │ result = func(*args, **k │
│ 144 │ │ │ │
│ 145 │ │ │ # Log result │
│ 146 │ │ │ logger.debug("%s -> %s", │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:429 in │
│ upload_release_asset │
│ │
│ 426 │ │ ) │
│ 427 │ │ │
│ 428 │ │ with open(file, "rb") as dat │
│ ❱ 429 │ │ │ response = self.session. │
│ 430 │ │ │ │ url, │
│ 431 │ │ │ │ params={"name": os.p │
│ 432 │ │ │ │ headers={ │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:637 in post │
│ │
│ 634 │ │ :rtype: requests.Response │
│ 635 │ │ """ │
│ 636 │ │ │
│ ❱ 637 │ │ return self.request("POST", │
│ 638 │ │
│ 639 │ def put(self, url, data=None, ** │
│ 640 │ │ r"""Sends a PUT request. Ret │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:589 in request │
│ │
│ 586 │ │ │ "allow_redirects": allow │
│ 587 │ │ } │
│ 588 │ │ send_kwargs.update(settings) │
│ ❱ 589 │ │ resp = self.send(prep, **sen │
│ 590 │ │ │
│ 591 │ │ return resp │
│ 592 │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:710 in send │
│ │
│ 707 │ │ r.elapsed = timedelta(second │
│ 708 │ │ │
│ 709 │ │ # Response manipulation hook │
│ ❱ 710 │ │ r = dispatch_hook("response" │
│ 711 │ │ │
│ 712 │ │ # Persist cookies │
│ 713 │ │ if r.history: │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/hooks.py:30 in dispatch_hook │
│ │
│ 27 │ │ if hasattr(hooks, "__call__") │
│ 28 │ │ │ hooks = [hooks] │
│ 29 │ │ for hook in hooks: │
│ ❱ 30 │ │ │ _hook_data = hook(hook_da │
│ 31 │ │ │ if _hook_data is not None │
│ 32 │ │ │ │ hook_data = _hook_dat │
│ 33 │ return hook_data │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/util.py:35 in │
│ <lambda> │
│ │
│ 32 │ """ │
│ 33 │ session = Session() │
│ 34 │ if raise_for_status: │
│ ❱ 35 │ │ session.hooks = {"response": │
│ 36 │ │
│ 37 │ if retry: │
│ 38 │ │ if isinstance(retry, bool): │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/models.py:1026 in │
│ raise_for_status │
│ │
│ 1023 │ │ │ ) │
│ 1024 │ │ │
│ 1025 │ │ if http_error_msg: │
│ ❱ 1026 │ │ │ raise HTTPError(http_er │
│ 1027 │ │
│ 1028 │ def close(self): │
│ 1029 │ │ """Releases the connection │
╰────────────────────────────────────────────╯
HTTPError: 403 Client Error: Forbidden for
url:
https://uploads.github.com/repos/python-gitlab
/python-gitlab/releases/258199418/assets?name=
python_gitlab-7.0.0.tar.gz.publish.attestation
[15:06:07] ERROR error uploading asset github.py:473
dist/python_gitlab-7.0.0.tar.gz
╭──── Traceback (most recent call last) ─────╮
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:470 in │
│ upload_dists │
│ │
│ 467 │ │ │ f for f in glob.glob(dis │
│ 468 │ │ ): │
│ 469 │ │ │ try: │
│ ❱ 470 │ │ │ │ self.upload_release_ │
│ 471 │ │ │ │ n_succeeded += 1 │
│ 472 │ │ │ except HTTPError: # noq │
│ 473 │ │ │ │ logger.exception("er │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/helpers.py:143 in │
│ _wrapper │
│ │
│ 140 │ │ │ ) │
│ 141 │ │ │ │
│ 142 │ │ │ # Call function │
│ ❱ 143 │ │ │ result = func(*args, **k │
│ 144 │ │ │ │
│ 145 │ │ │ # Log result │
│ 146 │ │ │ logger.debug("%s -> %s", │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/github.py:429 in │
│ upload_release_asset │
│ │
│ 426 │ │ ) │
│ 427 │ │ │
│ 428 │ │ with open(file, "rb") as dat │
│ ❱ 429 │ │ │ response = self.session. │
│ 430 │ │ │ │ url, │
│ 431 │ │ │ │ params={"name": os.p │
│ 432 │ │ │ │ headers={ │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:637 in post │
│ │
│ 634 │ │ :rtype: requests.Response │
│ 635 │ │ """ │
│ 636 │ │ │
│ ❱ 637 │ │ return self.request("POST", │
│ 638 │ │
│ 639 │ def put(self, url, data=None, ** │
│ 640 │ │ r"""Sends a PUT request. Ret │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:589 in request │
│ │
│ 586 │ │ │ "allow_redirects": allow │
│ 587 │ │ } │
│ 588 │ │ send_kwargs.update(settings) │
│ ❱ 589 │ │ resp = self.send(prep, **sen │
│ 590 │ │ │
│ 591 │ │ return resp │
│ 592 │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/sessions.py:710 in send │
│ │
│ 707 │ │ r.elapsed = timedelta(second │
│ 708 │ │ │
│ 709 │ │ # Response manipulation hook │
│ ❱ 710 │ │ r = dispatch_hook("response" │
│ 711 │ │ │
│ 712 │ │ # Persist cookies │
│ 713 │ │ if r.history: │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/hooks.py:30 in dispatch_hook │
│ │
│ 27 │ │ if hasattr(hooks, "__call__") │
│ 28 │ │ │ hooks = [hooks] │
│ 29 │ │ for hook in hooks: │
│ ❱ 30 │ │ │ _hook_data = hook(hook_da │
│ 31 │ │ │ if _hook_data is not None │
│ 32 │ │ │ │ hook_data = _hook_dat │
│ 33 │ return hook_data │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/semantic_release/hvcs/util.py:35 in │
│ <lambda> │
│ │
│ 32 │ """ │
│ 33 │ session = Session() │
│ 34 │ if raise_for_status: │
│ ❱ 35 │ │ session.hooks = {"response": │
│ 36 │ │
│ 37 │ if retry: │
│ 38 │ │ if isinstance(retry, bool): │
│ │
│ /opt/psr/.venv/lib/python3.13/site-package │
│ s/requests/models.py:1026 in │
│ raise_for_status │
│ │
│ 1023 │ │ │ ) │
│ 1024 │ │ │
│ 1025 │ │ if http_error_msg: │
│ ❱ 1026 │ │ │ raise HTTPError(http_er │
│ 1027 │ │
│ 1028 │ def close(self): │
│ 1029 │ │ """Releases the connection │
╰────────────────────────────────────────────╯
HTTPError: 403 Client Error: Forbidden for
url:
https://uploads.github.com/repos/python-gitlab
/python-gitlab/releases/258199418/assets?name=
python_gitlab-7.0.0.tar.gz
Metadata
Metadata
Assignees
Labels
No labels