Skip to content

[drive-by] Insecure use of Trusted Publishing when uploading to PyPI from CI/CD #913

Open
@webknjaz

Description

@webknjaz

Currently, https://github.com/oauthlib/oauthlib/blob/master/.github/workflows/python-build.yml builds the dists in the same job as publishing. This gives transitive build deps OIDC privileges, that might lead to impersonation, privilege elevation etc.

TL;DR follow https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Additionally, the if: clause is broken in the publishing job as it is always true due to }} being in the middle of the string. The ${{ ... }} wrapper can just be dropped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy