Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing to PyPI fails with HTTPError: 403 Forbidden #224

Closed
hagenw opened this issue Mar 28, 2024 · 4 comments
Closed

Publishing to PyPI fails with HTTPError: 403 Forbidden #224

hagenw opened this issue Mar 28, 2024 · 4 comments

Comments

@hagenw
Copy link

hagenw commented Mar 28, 2024

Since today this action stopped working for me.

My configuration looks like this:

# ...
jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: release
    permissions:
      contents: write
      id-token: write
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}

# ...

    # PyPI package
    - name: Build Python package
      run: python -m build

    - name: Publish Python package to PyPI
      uses: pypa/gh-action-pypi-publish@release/v1

I have a "release" environment configured on Github, and added the repository as a trusted publisher to PyPI:

image

With the same settings publishing a PyPI package worked on 2024/03/27, but not on 2024/03/28.
The error I'm getting:

image

@hagenw
Copy link
Author

hagenw commented Mar 28, 2024

On https://status.python.org, they write:

image

But I don't have a new project, it's just a release for an already existing and registered project.

@mouday
Copy link

mouday commented Mar 28, 2024

me too. mabbey will ok in the tomarrow.

@webknjaz
Copy link
Member

Looks like this has been addressed already.

@webknjaz
Copy link
Member

@hagenw I also strongly suggest building in a separate job for security reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants